Package net.minecraft.world
Class CompoundContainer
java.lang.Object
net.minecraft.world.CompoundContainer
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.Container
Container.ContainerIterator
-
Field Summary
FieldsFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlaceItem
(int p_18934_, ItemStack p_18935_) void
boolean
int
getItem
(int p_18920_) int
boolean
isEmpty()
removeItem
(int p_18922_, int p_18923_) removeItemNoUpdate
(int p_18932_) void
void
void
boolean
stillValid
(Player p_18930_) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.Container
canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
container1
-
container2
-
-
Constructor Details
-
CompoundContainer
-
-
Method Details
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSize
in interfaceContainer
-
isEmpty
public boolean isEmpty() -
contains
-
getItem
-
removeItem
- Specified by:
removeItem
in interfaceContainer
-
removeItemNoUpdate
- Specified by:
removeItemNoUpdate
in interfaceContainer
-
setItem
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSize
in interfaceContainer
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceContainer
-
stillValid
- Specified by:
stillValid
in interfaceContainer
-
startOpen
-
stopOpen
-
canPlaceItem
- Specified by:
canPlaceItem
in interfaceContainer
-
clearContent
public void clearContent()- Specified by:
clearContent
in interfaceClearable
-