Interface ContainerEntity
- All Superinterfaces:
Clearable
,Container
,MenuConstructor
,MenuProvider
- All Known Implementing Classes:
AbstractMinecartContainer
,ChestBoat
,MinecartChest
,MinecartHopper
-
Field Summary
Fields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addChestVehicleSaveData
(CompoundTag p_219944_) default void
chestVehicleDestroyed
(DamageSource p_219928_, Level p_219929_, Entity p_219930_) default void
void
default ItemStack
getChestVehicleItem
(int p_219948_) default SlotAccess
getChestVehicleSlot
(int p_219952_) getLevel()
long
default InteractionResult
interactWithChestVehicle
(BiConsumer<GameEvent, Entity> p_219932_, Player p_219933_) default boolean
default boolean
isChestVehicleStillValid
(Player p_219955_) default boolean
isEmpty()
boolean
position()
default void
readChestVehicleSaveData
(CompoundTag p_219935_) default ItemStack
removeChestVehicleItem
(int p_219937_, int p_219938_) default ItemStack
removeChestVehicleItemNoUpdate
(int p_219946_) default void
setChestVehicleItem
(int p_219941_, ItemStack p_219942_) void
setLootTable
(ResourceLocation p_219926_) void
setLootTableSeed
(long p_219925_) default void
unpackChestVehicleLootTable
(Player p_219950_) Methods inherited from interface net.minecraft.world.Clearable
clearContent
Methods inherited from interface net.minecraft.world.Container
canPlaceItem, countItem, getContainerSize, getItem, getMaxStackSize, hasAnyMatching, hasAnyOf, removeItem, removeItemNoUpdate, setChanged, setItem, startOpen, stillValid, stopOpen
Methods inherited from interface net.minecraft.world.inventory.MenuConstructor
createMenu
Methods inherited from interface net.minecraft.world.MenuProvider
getDisplayName
-
Method Details
-
position
Vec3 position() -
getLootTable
-
setLootTable
-
getLootTableSeed
long getLootTableSeed() -
setLootTableSeed
void setLootTableSeed(long p_219925_) -
getItemStacks
NonNullList<ItemStack> getItemStacks() -
clearItemStacks
void clearItemStacks() -
getLevel
Level getLevel() -
isRemoved
boolean isRemoved() -
isEmpty
default boolean isEmpty() -
addChestVehicleSaveData
-
readChestVehicleSaveData
-
chestVehicleDestroyed
-
interactWithChestVehicle
default InteractionResult interactWithChestVehicle(BiConsumer<GameEvent, Entity> p_219932_, Player p_219933_) -
unpackChestVehicleLootTable
-
clearChestVehicleContent
default void clearChestVehicleContent() -
isChestVehicleEmpty
default boolean isChestVehicleEmpty() -
removeChestVehicleItemNoUpdate
-
getChestVehicleItem
-
removeChestVehicleItem
-
setChestVehicleItem
-
getChestVehicleSlot
-
isChestVehicleStillValid
-