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
DEFAULT_DISTANCE_BUFFER
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addChestVehicleSaveData
(CompoundTag p_219944_, HolderLookup.Provider p_329733_) 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_) long
default InteractionResult
interactWithContainerVehicle
(Player p_270068_) default boolean
default boolean
isChestVehicleStillValid
(Player p_219955_) default boolean
isEmpty()
boolean
level()
position()
default void
readChestVehicleSaveData
(CompoundTag p_219935_, HolderLookup.Provider p_334732_) 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
(ResourceKey<LootTable> p_327875_) 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, canTakeItem, countItem, getContainerSize, getItem, getMaxStackSize, 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() -
getBoundingBox
AABB getBoundingBox() -
getLootTable
-
setLootTable
-
getLootTableSeed
long getLootTableSeed() -
setLootTableSeed
void setLootTableSeed(long p_219925_) -
getItemStacks
NonNullList<ItemStack> getItemStacks() -
clearItemStacks
void clearItemStacks() -
level
Level level() -
isRemoved
boolean isRemoved() -
isEmpty
default boolean isEmpty() -
addChestVehicleSaveData
-
readChestVehicleSaveData
-
chestVehicleDestroyed
-
interactWithContainerVehicle
-
unpackChestVehicleLootTable
-
clearChestVehicleContent
default void clearChestVehicleContent() -
isChestVehicleEmpty
default boolean isChestVehicleEmpty() -
removeChestVehicleItemNoUpdate
-
getChestVehicleItem
-
removeChestVehicleItem
-
setChestVehicleItem
-
getChestVehicleSlot
-
isChestVehicleStillValid
-