public class RobotRegistry extends net.minecraft.world.WorldSavedData implements IRobotRegistry
| Modifier and Type | Field and Description |
|---|---|
static java.util.HashMap<java.lang.Integer,RobotRegistry> |
registries |
protected net.minecraft.world.World |
world |
| Constructor and Description |
|---|
RobotRegistry(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
EntityRobot |
getLoadedRobot(long id) |
long |
getNextRobotId() |
static RobotRegistry |
getRegistry(net.minecraft.world.World world) |
IDockingStation |
getStation(int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection side) |
java.util.Collection<IDockingStation> |
getStations() |
boolean |
isTaken(ResourceId resourceId) |
void |
killRobot(EntityRobotBase robot) |
void |
onChunkUnload(net.minecraftforge.event.world.ChunkEvent.Unload e) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
registerRobot(EntityRobotBase robot) |
void |
registerStation(IDockingStation station) |
void |
release(IDockingStation station,
long robotId) |
void |
release(ResourceId resourceId) |
void |
releaseResources(EntityRobotBase robot) |
void |
removeStation(IDockingStation station) |
long |
robotIdTaking(ResourceId resourceId) |
EntityRobot |
robotTaking(ResourceId resourceId) |
void |
take(IDockingStation station,
long robotId) |
boolean |
take(ResourceId resourceId,
EntityRobotBase robot) |
boolean |
take(ResourceId resourceId,
long robotId) |
void |
unloadRobot(EntityRobotBase robot) |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
public static java.util.HashMap<java.lang.Integer,RobotRegistry> registries
protected net.minecraft.world.World world
public long getNextRobotId()
getNextRobotId in interface IRobotRegistrypublic void registerRobot(EntityRobotBase robot)
registerRobot in interface IRobotRegistrypublic void killRobot(EntityRobotBase robot)
killRobot in interface IRobotRegistrypublic void unloadRobot(EntityRobotBase robot)
unloadRobot in interface IRobotRegistrypublic EntityRobot getLoadedRobot(long id)
getLoadedRobot in interface IRobotRegistrypublic boolean isTaken(ResourceId resourceId)
isTaken in interface IRobotRegistrypublic long robotIdTaking(ResourceId resourceId)
robotIdTaking in interface IRobotRegistrypublic EntityRobot robotTaking(ResourceId resourceId)
robotTaking in interface IRobotRegistrypublic boolean take(ResourceId resourceId, EntityRobotBase robot)
take in interface IRobotRegistrypublic boolean take(ResourceId resourceId, long robotId)
take in interface IRobotRegistrypublic void release(ResourceId resourceId)
release in interface IRobotRegistrypublic void releaseResources(EntityRobotBase robot)
releaseResources in interface IRobotRegistrypublic IDockingStation getStation(int x, int y, int z, net.minecraftforge.common.util.ForgeDirection side)
getStation in interface IRobotRegistrypublic java.util.Collection<IDockingStation> getStations()
getStations in interface IRobotRegistrypublic void registerStation(IDockingStation station)
registerStation in interface IRobotRegistrypublic void removeStation(IDockingStation station)
removeStation in interface IRobotRegistrypublic void take(IDockingStation station, long robotId)
take in interface IRobotRegistrypublic void release(IDockingStation station, long robotId)
release in interface IRobotRegistrypublic static RobotRegistry getRegistry(net.minecraft.world.World world)
public void writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT in interface IRobotRegistrywriteToNBT in class net.minecraft.world.WorldSavedDatapublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in interface IRobotRegistryreadFromNBT in class net.minecraft.world.WorldSavedDatapublic void onChunkUnload(net.minecraftforge.event.world.ChunkEvent.Unload e)