Package com.hbm_m.armormod.menu
Class ArmorTableMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.hbm_m.armormod.menu.ArmorTableMenu
public class ArmorTableMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intКак в 1.7.10ContainerArmorTable: слоты модов 0..8, центральная броня — 9.static final intstatic final intstatic final intstatic final intstatic final intFields 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
ConstructorsConstructorDescriptionArmorTableMenu(int pContainerId, net.minecraft.world.entity.player.Inventory pPlayerInventory, net.minecraft.core.BlockPos pPos) ArmorTableMenu(int pContainerId, net.minecraft.world.entity.player.Inventory pPlayerInventory, net.minecraft.network.FriendlyByteBuf extraData) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player pPlayer, int pIndex) voidremoved(net.minecraft.world.entity.player.Player pPlayer) booleanstillValid(net.minecraft.world.entity.player.Player pPlayer) 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, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
MOD_SLOTS
public static final int MOD_SLOTSКак в 1.7.10ContainerArmorTable: слоты модов 0..8, центральная броня — 9.- See Also:
-
SLOT_ARMOR_IN
public static final int SLOT_ARMOR_IN- See Also:
-
SLOT_ARMOR_SIDE_HELMET
public static final int SLOT_ARMOR_SIDE_HELMET- See Also:
-
SLOT_ARMOR_SIDE_CHEST
public static final int SLOT_ARMOR_SIDE_CHEST- See Also:
-
SLOT_ARMOR_SIDE_LEGS
public static final int SLOT_ARMOR_SIDE_LEGS- See Also:
-
SLOT_ARMOR_SIDE_BOOTS
public static final int SLOT_ARMOR_SIDE_BOOTS- See Also:
-
-
Constructor Details
-
ArmorTableMenu
public ArmorTableMenu(int pContainerId, net.minecraft.world.entity.player.Inventory pPlayerInventory, net.minecraft.core.BlockPos pPos) -
ArmorTableMenu
public ArmorTableMenu(int pContainerId, net.minecraft.world.entity.player.Inventory pPlayerInventory, net.minecraft.network.FriendlyByteBuf extraData)
-
-
Method Details
-
removed
public void removed(net.minecraft.world.entity.player.Player pPlayer) - Overrides:
removedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player pPlayer, int pIndex) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player pPlayer) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-