Class PDLAbstractContainerMenu<T extends ContainerBlockEntity>

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.portingdeadmods.portingdeadlibs.api.gui.menus.PDLAbstractContainerMenu<T>

public abstract class PDLAbstractContainerMenu<T extends ContainerBlockEntity> extends net.minecraft.world.inventory.AbstractContainerMenu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final T
     
    protected final @NotNull net.minecraft.world.entity.player.Inventory
     

    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
    PDLAbstractContainerMenu(net.minecraft.world.inventory.MenuType<?> menuType, int containerId, @NotNull net.minecraft.world.entity.player.Inventory inv, T blockEntity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    protected void
    addPlayerHotbar(net.minecraft.world.entity.player.Inventory playerInventory)
     
    protected void
    addPlayerHotbar(net.minecraft.world.entity.player.Inventory playerInventory, int y)
     
    protected void
    addPlayerInventory(net.minecraft.world.entity.player.Inventory playerInventory)
     
    protected void
    addPlayerInventory(net.minecraft.world.entity.player.Inventory playerInventory, int y)
     
     
    net.minecraft.core.NonNullList<FluidReferenceSlot>
     
    @NotNull net.minecraft.world.entity.player.Inventory
     
    net.minecraft.core.NonNullList<ItemReferenceSlot>
     
    protected abstract int
     
    static boolean
    mergeItemStack(List<net.minecraft.world.inventory.Slot> slots, net.minecraft.world.item.ItemStack stack, int startIndex, int endIndex, boolean reverseDirection)
     
    protected boolean
    moveItemStackTo(net.minecraft.world.item.ItemStack stack, int startIndex, int endIndex, boolean reverseDirection)
     
    protected boolean
    performMerge(int index, net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     
    protected boolean
    supportsShiftClick(net.minecraft.world.entity.player.Player player, int index)
     

    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

      @NotNull public final T extends ContainerBlockEntity blockEntity
    • inv

      @NotNull protected final @NotNull net.minecraft.world.entity.player.Inventory inv
  • Constructor Details

    • PDLAbstractContainerMenu

      public PDLAbstractContainerMenu(net.minecraft.world.inventory.MenuType<?> menuType, int containerId, @NotNull @NotNull net.minecraft.world.entity.player.Inventory inv, @NotNull T blockEntity)
  • Method Details

    • getBlockEntity

      @NotNull public T getBlockEntity()
    • addPlayerInventory

      protected void addPlayerInventory(net.minecraft.world.entity.player.Inventory playerInventory)
    • addPlayerHotbar

      protected void addPlayerHotbar(net.minecraft.world.entity.player.Inventory playerInventory)
    • addPlayerInventory

      protected void addPlayerInventory(net.minecraft.world.entity.player.Inventory playerInventory, int y)
    • addPlayerHotbar

      protected void addPlayerHotbar(net.minecraft.world.entity.player.Inventory playerInventory, int y)
    • addItemReferenceSlot

      protected void addItemReferenceSlot(ItemReferenceSlot slot)
    • addFluidReferenceSlot

      protected void addFluidReferenceSlot(FluidReferenceSlot slot)
    • stillValid

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

      protected boolean supportsShiftClick(net.minecraft.world.entity.player.Player player, int index)
    • getMergeableSlotCount

      protected abstract int getMergeableSlotCount()
    • quickMoveStack

      public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
      Specified by:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • performMerge

      protected boolean performMerge(int index, net.minecraft.world.item.ItemStack stack)
    • moveItemStackTo

      protected boolean moveItemStackTo(net.minecraft.world.item.ItemStack stack, int startIndex, int endIndex, boolean reverseDirection)
      Overrides:
      moveItemStackTo in class net.minecraft.world.inventory.AbstractContainerMenu
    • mergeItemStack

      public static boolean mergeItemStack(List<net.minecraft.world.inventory.Slot> slots, net.minecraft.world.item.ItemStack stack, int startIndex, int endIndex, boolean reverseDirection)
    • getInv

      @NotNull public @NotNull net.minecraft.world.entity.player.Inventory getInv()
    • getItemReferenceSlots

      public net.minecraft.core.NonNullList<ItemReferenceSlot> getItemReferenceSlots()
    • getFluidReferenceSlots

      public net.minecraft.core.NonNullList<FluidReferenceSlot> getFluidReferenceSlots()