Class ItemContainer
java.lang.Object
de.ellpeck.rockbottom.api.gui.container.ItemContainer
- All Implemented Interfaces:
Iterable<SlotContainer>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlayerInventory(AbstractPlayerEntity player, int x, int y) voidaddPlayerInventory(AbstractPlayerEntity player, int x, int y, ItemContainer.ISlotCallback callback) voidaddSlot(SlotContainer slot) voidaddSlotGrid(IInventory inventory, int start, int end, int xStart, int yStart, int width) voidaddSlotGrid(IInventory inventory, int start, int end, int xStart, int yStart, int width, ItemContainer.ISlotCallback callback) intgetIdForSlot(SlotContainer slot) intgetIndexForInvSlot(IInventory inv, int id) abstract ResourceNamegetName()getSlot(int id) intiterator()voidonClosed()voidonOpened()booleanremoveSlot(SlotContainer slot) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
player
-
holdingInst
-
-
Constructor Details
-
ItemContainer
-
-
Method Details
-
getSlot
-
getIdForSlot
-
getContainedInventories
-
getSlotAmount
public int getSlotAmount() -
addSlot
-
removeSlot
-
getIndexForInvSlot
-
addSlotGrid
public void addSlotGrid(IInventory inventory, int start, int end, int xStart, int yStart, int width) -
addSlotGrid
public void addSlotGrid(IInventory inventory, int start, int end, int xStart, int yStart, int width, ItemContainer.ISlotCallback callback) -
addPlayerInventory
-
addPlayerInventory
public void addPlayerInventory(AbstractPlayerEntity player, int x, int y, ItemContainer.ISlotCallback callback) -
onOpened
public void onOpened() -
onClosed
public void onClosed() -
iterator
- Specified by:
iteratorin interfaceIterable<SlotContainer>
-
getName
-