Class CompoundContainer
java.lang.Object
net.minecraft.world.CompoundContainer
- All Implemented Interfaces:
Iterable<ItemStack>, Clearable, Container, SlotProvider, ContainerExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface Container
Container.ContainerIterator -
Field Summary
FieldsFields inherited from interface Container
DEFAULT_DISTANCE_BUFFER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceItem(int slot, ItemStack itemStack) voidbooleanintgetItem(int slot) intbooleanisEmpty()removeItem(int slot, int count) removeItemNoUpdate(int slot) voidvoidvoidstartOpen(ContainerUser containerUser) booleanstillValid(Player player) voidstopOpen(ContainerUser containerUser) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Container
canTakeItem, countItem, getEntitiesWithContainerOpen, getMaxStackSize, getSlot, hasAnyMatching, hasAnyOf, iteratorMethods inherited from interface ContainerExtension
onTransfer, setItemMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface SlotProvider
getSlotsFromRange
-
Field Details
-
container1
-
container2
-
-
Constructor Details
-
CompoundContainer
-
-
Method Details
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSizein interfaceContainer
-
isEmpty
-
contains
-
getItem
-
removeItem
- Specified by:
removeItemin interfaceContainer
-
removeItemNoUpdate
- Specified by:
removeItemNoUpdatein interfaceContainer
-
setItem
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSizein interfaceContainer
-
setChanged
public void setChanged()- Specified by:
setChangedin interfaceContainer
-
stillValid
- Specified by:
stillValidin interfaceContainer
-
startOpen
-
stopOpen
-
canPlaceItem
- Specified by:
canPlaceItemin interfaceContainer
-
clearContent
public void clearContent()- Specified by:
clearContentin interfaceClearable
-