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
FieldsModifier and TypeFieldDescriptionfinal Tprotected final @NotNull net.minecraft.world.entity.player.InventoryFields 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
ConstructorsConstructorDescriptionPDLAbstractContainerMenu(net.minecraft.world.inventory.MenuType<?> menuType, int containerId, @NotNull net.minecraft.world.entity.player.Inventory inv, T blockEntity) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidaddPlayerHotbar(net.minecraft.world.entity.player.Inventory playerInventory) protected voidaddPlayerHotbar(net.minecraft.world.entity.player.Inventory playerInventory, int y) protected voidaddPlayerInventory(net.minecraft.world.entity.player.Inventory playerInventory) protected voidaddPlayerInventory(net.minecraft.world.entity.player.Inventory playerInventory, int y) net.minecraft.core.NonNullList<FluidReferenceSlot> @NotNull net.minecraft.world.entity.player.InventorygetInv()net.minecraft.core.NonNullList<ItemReferenceSlot> protected abstract intstatic booleanmergeItemStack(List<net.minecraft.world.inventory.Slot> slots, net.minecraft.world.item.ItemStack stack, int startIndex, int endIndex, boolean reverseDirection) protected booleanmoveItemStackTo(net.minecraft.world.item.ItemStack stack, int startIndex, int endIndex, boolean reverseDirection) protected booleanperformMerge(int index, net.minecraft.world.item.ItemStack stack) net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int index) booleanstillValid(net.minecraft.world.entity.player.Player player) protected booleansupportsShiftClick(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
-
Field Details
-
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
-
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) -
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.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:
quickMoveStackin classnet.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:
moveItemStackToin classnet.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
-
getFluidReferenceSlots
-