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

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu

public class BlockEntityMenu<T extends net.minecraft.world.level.block.entity.BlockEntity> extends BlockMenu
A BlockMenu for blocks with block entities.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final T
     

    Fields inherited from class org.moddingx.libx.menu.BlockMenu

    pos

    Fields inherited from class org.moddingx.libx.menu.DefaultMenu

    firstInventorySlot, firstOutputSlot, level, player

    Fields inherited from class org.moddingx.libx.menu.MenuBase

    playerInventory

    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
    BlockEntityMenu(net.minecraft.world.inventory.MenuType<? extends BlockEntityMenu<?>> type, int windowId, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Inventory playerContainer, net.minecraft.world.entity.player.Player player, int firstOutputSlot, int firstInventorySlot)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class org.moddingx.libx.menu.BlockMenu

    createMenuType, createMenuType, getPos, openMenu, stillValid

    Methods inherited from class org.moddingx.libx.menu.DefaultMenu

    getLevel, quickMoveStack

    Methods inherited from class org.moddingx.libx.menu.MenuBase

    addSlotBox, addSlotBox, addSlotRange, addSlotRange, layoutPlayerInventorySlots, moveItemStackTo

    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, 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

    • blockEntity

      protected final T extends net.minecraft.world.level.block.entity.BlockEntity blockEntity
  • Constructor Details

    • BlockEntityMenu

      public BlockEntityMenu(@Nullable net.minecraft.world.inventory.MenuType<? extends BlockEntityMenu<?>> type, int windowId, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Inventory playerContainer, net.minecraft.world.entity.player.Player player, int firstOutputSlot, int firstInventorySlot)
  • Method Details

    • getBlockEntity

      public T getBlockEntity()