public class ContainerAlternateGui
extends net.minecraft.inventory.Container
| Constructor and Description |
|---|
ContainerAlternateGui(net.minecraft.entity.player.EntityPlayer entityPlayer,
InventoryAlternateGui inventoryAlternateGui) |
ContainerAlternateGui(net.minecraft.entity.player.EntityPlayer entityPlayer,
InventoryAlternateGui inventoryAlternateGui,
int xSize,
int ySize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInteractWith(net.minecraft.entity.player.EntityPlayer player) |
void |
changeAdvFilterSlots(java.lang.String side)
Sets the advanced filter start point to the correct one and then re-initializes the correct slots.
|
int |
getFilterAdvSlotIdStart() |
InventoryAlternateGui |
getInventoryAlternateGui() |
int |
getNumColumns() |
net.minecraft.entity.player.EntityPlayer |
getPlayer() |
net.minecraft.item.ItemStack |
getStack() |
int |
getWraparoundIndex(int orderNumber)
Gets the index to change the start point to if the advanced filter needs to 'wrap around' (slot 17 -< slot 0)
|
void |
initFilterSlots()
Initializes the advanced filter slots.
|
void |
onContainerClosed(net.minecraft.entity.player.EntityPlayer player) |
void |
removeSlotsInRow(int row)
Remove the items in the specified row (part of the button upgrade).
|
void |
renameBackpack(java.lang.String toName)
Renames the backpack to the string parameter
|
void |
setAdvFilterButtonType(int index,
int typeToSetTo)
Sets the advanced filter button to the type parameter.
|
net.minecraft.item.ItemStack |
slotClick(int slot,
int button,
int flag,
net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
transferStackInSlot(net.minecraft.entity.player.EntityPlayer p,
int i) |
addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, func_94534_d, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, onCraftGuiOpened, onCraftMatrixChanged, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, resetDrag, retrySlotClick, setCanCraft, updateProgressBarpublic ContainerAlternateGui(net.minecraft.entity.player.EntityPlayer entityPlayer,
InventoryAlternateGui inventoryAlternateGui,
int xSize,
int ySize)
public ContainerAlternateGui(net.minecraft.entity.player.EntityPlayer entityPlayer,
InventoryAlternateGui inventoryAlternateGui)
public net.minecraft.entity.player.EntityPlayer getPlayer()
public InventoryAlternateGui getInventoryAlternateGui()
public net.minecraft.item.ItemStack getStack()
public int getFilterAdvSlotIdStart()
public net.minecraft.item.ItemStack transferStackInSlot(net.minecraft.entity.player.EntityPlayer p,
int i)
transferStackInSlot in class net.minecraft.inventory.Containerpublic boolean canInteractWith(net.minecraft.entity.player.EntityPlayer player)
canInteractWith in class net.minecraft.inventory.Containerpublic void onContainerClosed(net.minecraft.entity.player.EntityPlayer player)
onContainerClosed in class net.minecraft.inventory.Containerpublic net.minecraft.item.ItemStack slotClick(int slot,
int button,
int flag,
net.minecraft.entity.player.EntityPlayer player)
slotClick in class net.minecraft.inventory.Containerpublic void renameBackpack(java.lang.String toName)
toName - - the new namepublic void removeSlotsInRow(int row)
row - - the row to clearpublic int getNumColumns()
public void initFilterSlots()
public void changeAdvFilterSlots(java.lang.String side)
side - - the way to move the advanced filter (left or right)public int getWraparoundIndex(int orderNumber)
orderNumber - - the spot to checkpublic void setAdvFilterButtonType(int index,
int typeToSetTo)
index - - the index of the button to altertypeToSetTo - - the new type of the button