public class ContainerExaltedCrafter extends ItemInventoryContainer<ExaltedCrafter>
ExaltedCrafter.item, itemIndexguiProviderITEMBOX, offsetX, offsetY| Constructor and Description |
|---|
ContainerExaltedCrafter(net.minecraft.entity.player.EntityPlayer player,
int itemIndex)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCraftingGrid(net.minecraft.entity.player.EntityPlayer player,
NBTCraftingGrid grid) |
void |
balanceGrid()
Balance the crafting grid.
|
void |
clearGrid()
Clear the crafting grid.
|
void |
executePressButton(int buttonId)
Send a packet to the server for pressing a button.
|
java.util.Map<ContainerSection,java.util.List<net.minecraft.inventory.Slot>> |
getContainerSelection() |
protected int |
getSizeInventory() |
protected int |
getSlotRange(int originSlot,
int slotRange,
boolean reverse) |
protected int |
getSlotStart(int originSlot,
int slotStart,
boolean reverse) |
boolean |
isReturnToInnerInventory() |
void |
onCraftMatrixChanged(net.minecraft.inventory.IInventory inventory) |
void |
sendPressButton(int buttonId)
Send a packet to the server for pressing a button.
|
protected void |
setReturnToInnerInventory(boolean returnToInner) |
canInteractWith, createNewSlot, getItem, getItemStackgetGuiProvideraddInventory, addPlayerInventory, addSlotToContainer, getPlayerIInventory, mergeItemStack, slotClick, transferStackInSlotaddCraftingToCrafters, calcRedstoneFromInventory, canDragIntoSlot, detectAndSendChanges, 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, onContainerClosed, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, retrySlotClick, setPlayerIsPresent, updateProgressBarpublic ContainerExaltedCrafter(net.minecraft.entity.player.EntityPlayer player,
int itemIndex)
player - The player.itemIndex - The index of the item in use inside the player inventory.public void sendPressButton(int buttonId)
buttonId - The id of the button.public void executePressButton(int buttonId)
buttonId - The id of the button.public void clearGrid()
public void balanceGrid()
public boolean isReturnToInnerInventory()
protected void setReturnToInnerInventory(boolean returnToInner)
protected int getSlotStart(int originSlot,
int slotStart,
boolean reverse)
getSlotStart in class InventoryContainerprotected int getSlotRange(int originSlot,
int slotRange,
boolean reverse)
getSlotRange in class InventoryContainerprotected void addCraftingGrid(net.minecraft.entity.player.EntityPlayer player,
NBTCraftingGrid grid)
protected int getSizeInventory()
getSizeInventory in class InventoryContainerpublic void onCraftMatrixChanged(net.minecraft.inventory.IInventory inventory)
onCraftMatrixChanged in class net.minecraft.inventory.Containerpublic java.util.Map<ContainerSection,java.util.List<net.minecraft.inventory.Slot>> getContainerSelection()