public class ContainerLocalMenu extends InventoryBasic implements ILockableContainer
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,java.lang.Integer> |
dataValues |
private java.lang.String |
guiID |
Constructor and Description |
---|
ContainerLocalMenu(java.lang.String id,
ITextComponent title,
int slotCount) |
Modifier and Type | Method and Description |
---|---|
Container |
createContainer(InventoryPlayer playerInventory,
EntityPlayer playerIn) |
int |
getField(int id) |
int |
getFieldCount() |
java.lang.String |
getGuiID() |
LockCode |
getLockCode() |
boolean |
isLocked() |
void |
setField(int id,
int value) |
void |
setLockCode(LockCode code) |
addInventoryChangeListener, addItem, clear, closeInventory, decrStackSize, getDisplayName, getInventoryStackLimit, getName, getSizeInventory, getStackInSlot, hasCustomName, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeInventoryChangeListener, removeStackFromSlot, setCustomName, setInventorySlotContents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, closeInventory, decrStackSize, getInventoryStackLimit, getSizeInventory, getStackInSlot, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setInventorySlotContents
getDisplayName, getName, hasCustomName
private final java.lang.String guiID
private final java.util.Map<java.lang.Integer,java.lang.Integer> dataValues
public ContainerLocalMenu(java.lang.String id, ITextComponent title, int slotCount)
public int getField(int id)
getField
in interface IInventory
getField
in class InventoryBasic
public void setField(int id, int value)
setField
in interface IInventory
setField
in class InventoryBasic
public int getFieldCount()
getFieldCount
in interface IInventory
getFieldCount
in class InventoryBasic
public boolean isLocked()
isLocked
in interface ILockableContainer
public void setLockCode(LockCode code)
setLockCode
in interface ILockableContainer
public LockCode getLockCode()
getLockCode
in interface ILockableContainer
public java.lang.String getGuiID()
getGuiID
in interface IInteractionObject
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
createContainer
in interface IInteractionObject