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
FieldsFields 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
ConstructorsModifierConstructorDescriptionprotected
AbstractBaseContainerMenu
(net.minecraft.world.inventory.MenuType<?> type, int syncId) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
addPlayerInventory
(net.minecraft.world.entity.player.Inventory inventory, int inventoryX, int inventoryY) protected final void
addPlayerInventory
(net.minecraft.world.entity.player.Inventory inventory, int inventoryX, int inventoryY, PlayerInventoryListener listener) boolean
canTakeItemForPickAll
(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot) void
clicked
(int id, int dragType, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player player) <T> ClientProperty
<T> getProperty
(PropertyType<T> type) void
handleFilterSlotChange
(int slotIndex, net.minecraft.world.item.ItemStack stack) <T> boolean
hasProperty
(PropertyType<T> type) net.minecraft.world.item.ItemStack
quickMoveStack
(net.minecraft.world.entity.player.Player player, int index) void
receivePropertyChangeFromClient
(net.minecraft.resources.ResourceLocation id, int newValue) protected <T> void
registerProperty
(Property<T> property) protected void
boolean
stillValid
(net.minecraft.world.entity.player.Player player) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, 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, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, 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.ResourceLocation 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) -
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValid
in classnet.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index) - Specified by:
quickMoveStack
in classnet.minecraft.world.inventory.AbstractContainerMenu
-
clicked
public void clicked(int id, int dragType, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player player) - Overrides:
clicked
in classnet.minecraft.world.inventory.AbstractContainerMenu
-
canTakeItemForPickAll
public boolean canTakeItemForPickAll(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot) - Overrides:
canTakeItemForPickAll
in classnet.minecraft.world.inventory.AbstractContainerMenu
-
handleFilterSlotChange
public void handleFilterSlotChange(int slotIndex, net.minecraft.world.item.ItemStack stack)