类 InfinityChestMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
committee.nova.mods.avaritia.common.menu.InfinityChestMenu
public class InfinityChestMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
字段概要
字段修饰符和类型字段说明final net.minecraft.core.BlockPosfinal ChestHandlerstatic final intstatic final intfinal net.minecraft.world.level.Levelbooleanbooleanfinal UUIDfinal net.minecraft.world.entity.player.Playerbyte从类继承的字段 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 -
构造器概要
构造器构造器说明InfinityChestMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInv, net.minecraft.network.FriendlyByteBuf extraData) InfinityChestMenu(int containerId, net.minecraft.world.entity.player.Player player, InfinityChestTile blockEntity) -
方法概要
修饰符和类型方法说明voidbooleancanTakeItemForPickAll(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.inventory.Slot slot) voidclicked(int pSlotId, int pButton, net.minecraft.world.inventory.ClickType pClickType, net.minecraft.world.entity.player.Player pPlayer) booleanclickMenuButton(net.minecraft.world.entity.player.Player pPlayer, int pId) voidnextSort()voidvoidvoidvoidvoidvoidvoidvoid@NotNull net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int slotId) voidremoved(net.minecraft.world.entity.player.Player player) voidbooleanstillValid(net.minecraft.world.entity.player.Player player) voidvoid从类继承的方法 net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
字段详细资料
-
CONTAINER_SLOT_START
public static final int CONTAINER_SLOT_START- 另请参阅:
-
CONTAINER_SLOT_SIZE
public static final int CONTAINER_SLOT_SIZE- 另请参阅:
-
chest
-
player
public final net.minecraft.world.entity.player.Player player -
level
public final net.minecraft.world.level.Level level -
blockPos
public final net.minecraft.core.BlockPos blockPos -
chestTile
-
chestContainer
-
LShifting
public boolean LShifting -
owner
-
locked
public boolean locked -
filter
-
sortType
public byte sortType -
channelID
-
-
构造器详细资料
-
InfinityChestMenu
public InfinityChestMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInv, net.minecraft.network.FriendlyByteBuf extraData) -
InfinityChestMenu
public InfinityChestMenu(int containerId, net.minecraft.world.entity.player.Player player, InfinityChestTile blockEntity)
-
-
方法详细资料
-
clickMenuButton
@ParametersAreNonnullByDefault public boolean clickMenuButton(net.minecraft.world.entity.player.Player pPlayer, int pId) - 覆盖:
clickMenuButton在类中net.minecraft.world.inventory.AbstractContainerMenu
-
action
-
onLeftClickDummySlot
-
onRightClickDummySlot
-
onLeftShiftDummySlot
-
onRightShiftDummySlot
-
tryThrowOneFromDummySlot
-
tryThrowStickFromDummySlot
-
onLeftDragDummySlot
-
onRightDragDummySlot
-
onCloneFormDummySlot
-
onDragCloneDummySlot
-
nextSort
public void nextSort() -
reverseSort
public void reverseSort() -
clicked
@ParametersAreNonnullByDefault public void clicked(int pSlotId, int pButton, net.minecraft.world.inventory.ClickType pClickType, net.minecraft.world.entity.player.Player pPlayer) - 覆盖:
clicked在类中net.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
@ParametersAreNonnullByDefault @NotNull public @NotNull net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int slotId) - 指定者:
quickMoveStack在类中net.minecraft.world.inventory.AbstractContainerMenu
-
canTakeItemForPickAll
@ParametersAreNonnullByDefault public boolean canTakeItemForPickAll(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.inventory.Slot slot) - 覆盖:
canTakeItemForPickAll在类中net.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
@ParametersAreNonnullByDefault public boolean stillValid(net.minecraft.world.entity.player.Player player) - 指定者:
stillValid在类中net.minecraft.world.inventory.AbstractContainerMenu
-
removed
@ParametersAreNonnullByDefault public void removed(net.minecraft.world.entity.player.Player player) - 覆盖:
removed在类中net.minecraft.world.inventory.AbstractContainerMenu
-