public class ContainerGate extends ContainerBC_Neptune
Modifier and Type | Field and Description |
---|---|
GateLogic |
gate |
static int |
ID_CONNECTION |
static int |
ID_VALID_STATEMENTS |
protected static IdAllocator |
IDS |
java.util.SortedSet<ActionWrapper> |
possibleActions |
GateContext<ActionWrapper> |
possibleActionsContext |
java.util.SortedSet<TriggerWrapper> |
possibleTriggers |
GateContext<TriggerWrapper> |
possibleTriggersContext |
int |
slotHeight |
DEBUG, NET_DATA, NET_SET_PHANTOM, NET_SET_PHANTOM_MULTI, NET_WIDGET, player
Constructor and Description |
---|
ContainerGate(net.minecraft.entity.player.EntityPlayer player,
GateLogic logic) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(net.minecraft.entity.player.EntityPlayer player) |
IdAllocator |
getIdAllocator() |
void |
onContainerClosed(net.minecraft.entity.player.EntityPlayer player) |
void |
readMessage(int id,
PacketBufferBC buffer,
net.minecraftforge.fml.relauncher.Side side,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx) |
void |
setConnected(int index,
boolean to) |
void |
writeMessage(int id,
PacketBufferBC buffer,
net.minecraftforge.fml.relauncher.Side side) |
addFullPlayerInventory, addFullPlayerInventory, addWidget, getWidgets, safeCopy, sendMessage, sendMessage, sendSetPhantomSlot, sendSetPhantomSlot, sendSetPhantomSlots, slotClick, transferStackInSlot
addListener, addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, onCraftMatrixChanged, putStackInSlot, removeListener, resetDrag, retrySlotClick, setAll, setCanCraft, updateProgressBar
protected static final IdAllocator IDS
public static final int ID_CONNECTION
public static final int ID_VALID_STATEMENTS
public final GateLogic gate
public final int slotHeight
public final java.util.SortedSet<TriggerWrapper> possibleTriggers
public final java.util.SortedSet<ActionWrapper> possibleActions
public final GateContext<TriggerWrapper> possibleTriggersContext
public final GateContext<ActionWrapper> possibleActionsContext
public ContainerGate(net.minecraft.entity.player.EntityPlayer player, GateLogic logic)
public IdAllocator getIdAllocator()
getIdAllocator
in class ContainerBC_Neptune
IdAllocator
that allocates all ID's for this class, and its parent classes. All subclasses
should override this if they allocate their own ids after calling
IdAllocator.makeChild(String)
public void onContainerClosed(net.minecraft.entity.player.EntityPlayer player)
onContainerClosed
in class net.minecraft.inventory.Container
public boolean canInteractWith(net.minecraft.entity.player.EntityPlayer player)
canInteractWith
in class net.minecraft.inventory.Container
public void readMessage(int id, PacketBufferBC buffer, net.minecraftforge.fml.relauncher.Side side, net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx) throws java.io.IOException
readMessage
in class ContainerBC_Neptune
java.io.IOException
public void writeMessage(int id, PacketBufferBC buffer, net.minecraftforge.fml.relauncher.Side side)
writeMessage
in class ContainerBC_Neptune
public void setConnected(int index, boolean to)