Class AbstractBaseContainerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.refinedmods.refinedstorage.common.support.AbstractBaseContainerMenu
- Direct Known Subclasses:
AbstractAutocraftingMonitorContainerMenu, AbstractResourceContainerMenu, AbstractSecurityCardContainerMenu, AutocrafterContainerMenu, AutocrafterManagerContainerMenu, ControllerContainerMenu, NetworkTransmitterContainerMenu, SecurityManagerContainerMenu, WirelessTransmitterContainerMenu
public abstract class AbstractBaseContainerMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable PlayerSlotReferenceprotected final TransferManagerFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractBaseContainerMenu(@Nullable net.minecraft.world.inventory.MenuType<?> type, int syncId) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddPlayerInventory(net.minecraft.world.entity.player.Inventory inventory, int inventoryX, int inventoryY) protected final voidaddPlayerInventory(net.minecraft.world.entity.player.Inventory inventory, int inventoryX, int inventoryY, @Nullable PlayerInventoryListener listener) booleancanTakeItemForPickAll(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot) voidclicked(int slotIndex, int buttonNum, net.minecraft.world.inventory.ContainerInput containerInput, net.minecraft.world.entity.player.Player player) <T> ClientProperty<T> getProperty(PropertyType<T> type) voidhandleFilterSlotChange(int slotIndex, net.minecraft.world.item.ItemStack stack) <T> booleanhasProperty(PropertyType<T> type) net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int index) voidreceivePropertyChangeFromClient(net.minecraft.resources.Identifier id, int newValue) protected <T> voidregisterProperty(Property<T> property) protected voidMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
transferManager
-
disabledSlot
-
-
Constructor Details
-
AbstractBaseContainerMenu
protected AbstractBaseContainerMenu(@Nullable net.minecraft.world.inventory.MenuType<?> type, int syncId)
-
-
Method Details
-
receivePropertyChangeFromClient
public void receivePropertyChangeFromClient(net.minecraft.resources.Identifier id, int newValue) -
resetSlots
protected void resetSlots() -
addPlayerInventory
protected final void addPlayerInventory(net.minecraft.world.entity.player.Inventory inventory, int inventoryX, int inventoryY) -
addPlayerInventory
protected final void addPlayerInventory(net.minecraft.world.entity.player.Inventory inventory, int inventoryX, int inventoryY, @Nullable PlayerInventoryListener listener) -
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
-
clicked
public void clicked(int slotIndex, int buttonNum, net.minecraft.world.inventory.ContainerInput containerInput, net.minecraft.world.entity.player.Player player) - Overrides:
clickedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
canTakeItemForPickAll
public boolean canTakeItemForPickAll(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot) - Overrides:
canTakeItemForPickAllin classnet.minecraft.world.inventory.AbstractContainerMenu
-
handleFilterSlotChange
public void handleFilterSlotChange(int slotIndex, net.minecraft.world.item.ItemStack stack)