public abstract class BuildCraftContainer
extends net.minecraft.inventory.Container
| Constructor and Description |
|---|
BuildCraftContainer(int inventorySize) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCraftingToCrafters(net.minecraft.inventory.ICrafting player) |
void |
addSlot(net.minecraft.inventory.Slot slot) |
void |
addWidget(Widget widget) |
protected void |
adjustPhantomSlot(net.minecraft.inventory.Slot slot,
int mouseButton,
int modifier) |
void |
detectAndSendChanges() |
protected void |
fillPhantomSlot(net.minecraft.inventory.Slot slot,
net.minecraft.item.ItemStack stackHeld,
int mouseButton,
int modifier) |
int |
getInventorySize() |
java.util.List<Widget> |
getWidgets() |
void |
handleWidgetClientData(int widgetId,
io.netty.buffer.ByteBuf data) |
void |
sendWidgetDataToClient(Widget widget,
net.minecraft.inventory.ICrafting player,
byte[] data) |
protected boolean |
shiftItemStack(net.minecraft.item.ItemStack stackToShift,
int start,
int end) |
net.minecraft.item.ItemStack |
slotClick(int slotNum,
int mouseButton,
int modifier,
net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
transferStackInSlot(net.minecraft.entity.player.EntityPlayer player,
int slotIndex) |
addSlotToContainer, calcRedstoneFromInventory, canDragIntoSlot, canInteractWith, 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, setPlayerIsPresent, updateProgressBarpublic java.util.List<Widget> getWidgets()
public void addSlot(net.minecraft.inventory.Slot slot)
public void addWidget(Widget widget)
public void sendWidgetDataToClient(Widget widget, net.minecraft.inventory.ICrafting player, byte[] data)
public void handleWidgetClientData(int widgetId,
io.netty.buffer.ByteBuf data)
public void addCraftingToCrafters(net.minecraft.inventory.ICrafting player)
addCraftingToCrafters in class net.minecraft.inventory.Containerpublic void detectAndSendChanges()
detectAndSendChanges in class net.minecraft.inventory.Containerpublic net.minecraft.item.ItemStack slotClick(int slotNum,
int mouseButton,
int modifier,
net.minecraft.entity.player.EntityPlayer player)
slotClick in class net.minecraft.inventory.Containerprotected void adjustPhantomSlot(net.minecraft.inventory.Slot slot,
int mouseButton,
int modifier)
protected void fillPhantomSlot(net.minecraft.inventory.Slot slot,
net.minecraft.item.ItemStack stackHeld,
int mouseButton,
int modifier)
protected boolean shiftItemStack(net.minecraft.item.ItemStack stackToShift,
int start,
int end)
public net.minecraft.item.ItemStack transferStackInSlot(net.minecraft.entity.player.EntityPlayer player,
int slotIndex)
transferStackInSlot in class net.minecraft.inventory.Containerpublic int getInventorySize()