Interface ContainerEntity

All Superinterfaces:
Clearable, Container, MenuConstructor, MenuProvider
All Known Implementing Classes:
AbstractMinecartContainer, ChestBoat, MinecartChest, MinecartHopper

public interface ContainerEntity extends Container, MenuProvider
  • Method Details

    • position

      Vec3 position()
    • getBoundingBox

      AABB getBoundingBox()
    • getLootTable

      @Nullable ResourceKey<LootTable> getLootTable()
    • setLootTable

      void setLootTable(@Nullable ResourceKey<LootTable> p_327875_)
    • 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()
      Specified by:
      isEmpty in interface Container
    • addChestVehicleSaveData

      default void addChestVehicleSaveData(CompoundTag p_219944_, HolderLookup.Provider p_329733_)
    • readChestVehicleSaveData

      default void readChestVehicleSaveData(CompoundTag p_219935_, HolderLookup.Provider p_334732_)
    • chestVehicleDestroyed

      default void chestVehicleDestroyed(DamageSource p_219928_, Level p_219929_, Entity p_219930_)
    • interactWithContainerVehicle

      default InteractionResult interactWithContainerVehicle(Player p_270068_)
    • unpackChestVehicleLootTable

      default void unpackChestVehicleLootTable(@Nullable Player p_219950_)
    • clearChestVehicleContent

      default void clearChestVehicleContent()
    • isChestVehicleEmpty

      default boolean isChestVehicleEmpty()
    • removeChestVehicleItemNoUpdate

      default ItemStack removeChestVehicleItemNoUpdate(int p_219946_)
    • getChestVehicleItem

      default ItemStack getChestVehicleItem(int p_219948_)
    • removeChestVehicleItem

      default ItemStack removeChestVehicleItem(int p_219937_, int p_219938_)
    • setChestVehicleItem

      default void setChestVehicleItem(int p_219941_, ItemStack p_219942_)
    • getChestVehicleSlot

      default SlotAccess getChestVehicleSlot(int p_219952_)
    • isChestVehicleStillValid

      default boolean isChestVehicleStillValid(Player p_219955_)