public class ContainerGateInterface extends BuildCraftContainer
| Modifier and Type | Field and Description |
|---|---|
ActionActiveState[] |
actionsState |
GuiGateInterface |
gateCallback |
| Constructor and Description |
|---|
ContainerGateInterface(net.minecraft.inventory.IInventory playerInventory,
Pipe<?> pipe) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInteractWith(net.minecraft.entity.player.EntityPlayer player) |
void |
detectAndSendChanges() |
java.util.Iterator<IAction> |
getActionIterator(boolean descending) |
ActionActiveState |
getActionState(int i) |
IAction |
getFirstAction() |
ITrigger |
getFirstTrigger() |
net.minecraft.util.ResourceLocation |
getGateGuiFile()
GATE INFORMATION *
|
java.lang.String |
getGateName() |
IAction |
getLastAction() |
ITrigger |
getLastTrigger() |
java.util.Iterator<ITrigger> |
getTriggerIterator(boolean descending) |
ITriggerParameter |
getTriggerParameter(int trigger,
int param) |
boolean |
hasActions()
ACTIONS *
|
boolean |
hasTriggers()
TRIGGERS *
|
void |
init() |
void |
initRequest(RPCMessageInfo info)
Sends gate info to the client
|
void |
markDirty()
Marks client side gate container as needing to be synchronized with the
server.
|
void |
selectionRequest(RPCMessageInfo info) |
void |
setAction(int action,
java.lang.String tag,
boolean notifyServer) |
void |
setActionParameter(int action,
int param,
IActionParameter parameter,
boolean notifyServer) |
void |
setGate(int direction) |
void |
setPotential(java.lang.String[] potentialActions,
java.lang.String[] potentialTriggers) |
void |
setTrigger(int trigger,
java.lang.String tag,
boolean notifyServer) |
void |
setTriggerParameter(int trigger,
int param,
ITriggerParameter parameter,
boolean notifyServer) |
void |
synchronize()
Initializes the list of triggers and actions on the gate and
(re-)requests the current selection on the gate if needed.
|
void |
updateProgressBar(int id,
int state) |
addCraftingToCrafters, addSlot, addWidget, adjustPhantomSlot, fillPhantomSlot, getInventorySize, getWidgets, handleWidgetClientData, sendWidgetDataToClient, shiftItemStack, slotClick, transferStackInSlotaddSlotToContainer, calcRedstoneFromInventory, canDragIntoSlot, enchantItem, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94530_a, func_94532_c, func_94533_d, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, mergeItemStack, onContainerClosed, onCraftMatrixChanged, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, retrySlotClick, setPlayerIsPresentpublic ActionActiveState[] actionsState
public GuiGateInterface gateCallback
public ContainerGateInterface(net.minecraft.inventory.IInventory playerInventory,
Pipe<?> pipe)
public void init()
public boolean canInteractWith(net.minecraft.entity.player.EntityPlayer player)
canInteractWith in class net.minecraft.inventory.Containerpublic void markDirty()
public void synchronize()
public void updateProgressBar(int id,
int state)
updateProgressBar in class net.minecraft.inventory.Containerpublic void detectAndSendChanges()
detectAndSendChanges in class BuildCraftContainerpublic void initRequest(RPCMessageInfo info)
public void setPotential(java.lang.String[] potentialActions,
java.lang.String[] potentialTriggers)
public void setGate(int direction)
public void selectionRequest(RPCMessageInfo info)
public boolean hasTriggers()
public ITrigger getFirstTrigger()
public ITrigger getLastTrigger()
public java.util.Iterator<ITrigger> getTriggerIterator(boolean descending)
public ActionActiveState getActionState(int i)
public void setTrigger(int trigger,
java.lang.String tag,
boolean notifyServer)
public void setTriggerParameter(int trigger,
int param,
ITriggerParameter parameter,
boolean notifyServer)
public ITriggerParameter getTriggerParameter(int trigger, int param)
public boolean hasActions()
public IAction getFirstAction()
public IAction getLastAction()
public java.util.Iterator<IAction> getActionIterator(boolean descending)
public void setAction(int action,
java.lang.String tag,
boolean notifyServer)
public void setActionParameter(int action,
int param,
IActionParameter parameter,
boolean notifyServer)
public net.minecraft.util.ResourceLocation getGateGuiFile()
public java.lang.String getGateName()