public interface Robot extends net.minecraft.inventory.ISidedInventory, Rotatable
| 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.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.
|
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.
|
void |
synchronizeSlot(int slot)
Sends the state of the item in the specified slot to the client
if it is an upgrade.
|
canExtractItem, canInsertItem, getAccessibleSlotsFromSidenet.minecraft.entity.player.EntityPlayer player()
int containerCount()
int componentCount()
int inventorySize()
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.int selectedSlot()
void synchronizeSlot(int slot)