public class RobotRegistry extends net.minecraft.world.WorldSavedData implements IRobotRegistry
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap<StationIndex,DockingStation> |
stations |
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() |
DockingStation |
getStation(int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection side) |
java.util.Collection<DockingStation> |
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(DockingStation station) |
void |
release(DockingStation station,
long robotId) |
void |
release(ResourceId resourceId) |
void |
releaseResources(EntityRobotBase robot) |
void |
removeStation(DockingStation station) |
long |
robotIdTaking(ResourceId resourceId) |
EntityRobot |
robotTaking(ResourceId resourceId) |
void |
take(DockingStation 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarkDirtyprotected net.minecraft.world.World world
protected java.util.HashMap<StationIndex,DockingStation> stations
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 DockingStation getStation(int x, int y, int z, net.minecraftforge.common.util.ForgeDirection side)
getStation in interface IRobotRegistrypublic java.util.Collection<DockingStation> getStations()
getStations in interface IRobotRegistrypublic void registerStation(DockingStation station)
registerStation in interface IRobotRegistrypublic void removeStation(DockingStation station)
removeStation in interface IRobotRegistrypublic void take(DockingStation station, long robotId)
take in interface IRobotRegistrypublic void release(DockingStation station, long robotId)
release in interface IRobotRegistrypublic 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)