public interface Robot extends Environment, EnvironmentHost, Rotatable, Tiered, net.minecraft.inventory.ISidedInventory, net.minecraftforge.fluids.IFluidHandler
| Modifier and Type | Method and Description |
|---|---|
int |
componentCount()
The number of built-in components in this robot.
|
int |
containerCount()
The number of hot-swappable component slots in this robot.
|
Environment |
getComponentInSlot(int index)
Get the environment for the component in the specified slot.
|
net.minecraftforge.fluids.IFluidTank |
getFluidTank(int index)
Get the installed fluid tank with the specified index.
|
net.minecraft.item.ItemStack |
getStackInSlot(int index)
Get the item stack in the specified inventory slot.
|
int |
inventorySize()
The size of the internal inventory in this robot, excluding tool and
component slots.
|
Machine |
machine()
The machine currently hosted by this robot.
|
net.minecraft.entity.player.EntityPlayer |
player()
Returns the fake player used to represent the robot as an entity for
certain actions that require one.
|
int |
selectedSlot()
Gets the index of the currently selected slot in the robot's inventory.
|
int |
selectedTank()
Get the index of the currently selected tank.
|
void |
synchronizeSlot(int slot)
Sends the state of the item in the specified slot to the client
if it is an upgrade.
|
int |
tankCount()
The number of tanks currently installed in the robot.
|
node, onConnect, onDisconnect, onMessagemarkChanged, world, xPosition, yPosition, zPositioncanExtractItem, canInsertItem, getAccessibleSlotsFromSideMachine machine()
net.minecraft.entity.player.EntityPlayer player()
int containerCount()
int componentCount()
int inventorySize()
int tankCount()
net.minecraft.item.ItemStack getStackInSlot(int index)
getStackInSlot in interface net.minecraft.inventory.IInventoryindex - the index of the slot from which to get the stack.Environment getComponentInSlot(int index)
index - the index of the slot from which to get the environment.net.minecraftforge.fluids.IFluidTank getFluidTank(int index)
index - the index of the tank to get.int selectedSlot()
int selectedTank()
void synchronizeSlot(int slot)