Class AbstractBlockEntityContainer<T extends net.minecraft.world.level.block.entity.BlockEntity>

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
top.girlkisser.lazuli.api.menu.AbstractLazuliContainer
top.girlkisser.lazuli.api.menu.AbstractBlockEntityContainer<T>
Type Parameters:
T - The block entity's that this menu is for.

public abstract class AbstractBlockEntityContainer<T extends net.minecraft.world.level.block.entity.BlockEntity> extends AbstractLazuliContainer
A generic class for containers/menus for a block entity.
  • Nested Class Summary

    Nested classes/interfaces inherited from class top.girlkisser.lazuli.api.menu.AbstractLazuliContainer

    AbstractLazuliContainer.SlotFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.world.level.block.Block
    The container's block.
    final T
    The container block entity.
    final net.minecraft.core.BlockPos
    The container block entity's position.

    Fields inherited from class top.girlkisser.lazuli.api.menu.AbstractLazuliContainer

    playerInventory, slotCount

    Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractBlockEntityContainer(net.minecraft.world.inventory.MenuType<?> menuType, net.minecraft.world.level.block.Block block, int slotCount, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.core.BlockPos pos)
    A generic class for containers/menus for a block entity.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     

    Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • pos

      public final net.minecraft.core.BlockPos pos
      The container block entity's position.
    • blockEntity

      public final T extends net.minecraft.world.level.block.entity.BlockEntity blockEntity
      The container block entity.
    • block

      protected final net.minecraft.world.level.block.Block block
      The container's block.
  • Constructor Details

    • AbstractBlockEntityContainer

      public AbstractBlockEntityContainer(net.minecraft.world.inventory.MenuType<?> menuType, net.minecraft.world.level.block.Block block, int slotCount, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.core.BlockPos pos)
      A generic class for containers/menus for a block entity.
      Parameters:
      menuType - The menu type.
      block - The block.
      slotCount - The amount of slots in the container.
      containerId - The container ID.
      playerInventory - The player's inventory.
      pos - The position of the block.
  • Method Details

    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in class net.minecraft.world.inventory.AbstractContainerMenu