类 BaseMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
committee.nova.mods.avaritia.api.common.menu.BaseMenu
- 所有已实现的接口:
IDataReceiver
- 直接已知子类:
BaseTileMenu,NeutronRingMenu
public abstract class BaseMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
implements IDataReceiver
-
字段概要
字段修饰符和类型字段说明final net.minecraft.world.level.Levelfinal net.minecraft.world.entity.player.Player从类继承的字段 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 -
构造器概要
构造器限定符构造器说明protectedBaseMenu(net.minecraft.world.inventory.MenuType<?> menu, int id, net.minecraft.world.entity.player.Inventory playerInventory) -
方法概要
修饰符和类型方法说明protected voidcreateInventorySlots(net.minecraft.world.entity.player.Inventory pInventory) protected voidcreateInventorySlots(net.minecraft.world.entity.player.Inventory pInventory, int xOffset, int yOffset) @NotNull net.minecraft.world.item.ItemStackquickMoveStack(@NotNull net.minecraft.world.entity.player.Player player, int slot) voidreceive(net.minecraft.nbt.CompoundTag tag) voidsendMessage(net.minecraft.nbt.CompoundTag compound) booleanstillValid(@NotNull net.minecraft.world.entity.player.Player player) 从类继承的方法 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
-
字段详细资料
-
level
public final net.minecraft.world.level.Level level -
player
public final net.minecraft.world.entity.player.Player player
-
-
构造器详细资料
-
BaseMenu
protected BaseMenu(net.minecraft.world.inventory.MenuType<?> menu, int id, net.minecraft.world.entity.player.Inventory playerInventory)
-
-
方法详细资料
-
quickMoveStack
@NotNull public @NotNull net.minecraft.world.item.ItemStack quickMoveStack(@NotNull @NotNull net.minecraft.world.entity.player.Player player, int slot) - 指定者:
quickMoveStack在类中net.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player) - 指定者:
stillValid在类中net.minecraft.world.inventory.AbstractContainerMenu
-
sendMessage
public void sendMessage(net.minecraft.nbt.CompoundTag compound) -
receive
public void receive(net.minecraft.nbt.CompoundTag tag) - 指定者:
receive在接口中IDataReceiver
-
createInventorySlots
protected void createInventorySlots(net.minecraft.world.entity.player.Inventory pInventory) -
createInventorySlots
protected void createInventorySlots(net.minecraft.world.entity.player.Inventory pInventory, int xOffset, int yOffset)
-