Class SharedEnderChestMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
easton.sharedechest.menu.SharedEnderChestMenu
public class SharedEnderChestMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.Containerfinal net.minecraft.world.ContainerFields 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, SLOT_SIZE, slots, SLOTS_PER_ROW -
Constructor Summary
ConstructorsConstructorDescriptionSharedEnderChestMenu(int syncId, net.minecraft.world.entity.player.Inventory playerInventory) SharedEnderChestMenu(int syncId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.Container inventory) -
Method Summary
Modifier and TypeMethodDescriptionstatic SharedEnderChestMenucreate(int windowId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf buffer) voidcreateSlots(net.minecraft.world.entity.player.Inventory playerInventory) net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int invSlot) voidremoved(net.minecraft.world.entity.player.Player player) booleanstillValid(net.minecraft.world.entity.player.Player player) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
inventory
public net.minecraft.world.Container inventory -
personalInv
public final net.minecraft.world.Container personalInv
-
-
Constructor Details
-
SharedEnderChestMenu
public SharedEnderChestMenu(int syncId, net.minecraft.world.entity.player.Inventory playerInventory) -
SharedEnderChestMenu
public SharedEnderChestMenu(int syncId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.Container inventory)
-
-
Method Details
-
create
public static SharedEnderChestMenu create(int windowId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf buffer) -
createSlots
public void createSlots(net.minecraft.world.entity.player.Inventory playerInventory) -
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int invSlot) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
removed
public void removed(net.minecraft.world.entity.player.Player player) - Overrides:
removedin classnet.minecraft.world.inventory.AbstractContainerMenu
-