Class AbstractResourceContainerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.refinedmods.refinedstorage.common.support.AbstractBaseContainerMenu
com.refinedmods.refinedstorage.common.support.containermenu.AbstractResourceContainerMenu
- Direct Known Subclasses:
AbstractGridContainerMenu
,AbstractSimpleFilterContainerMenu
,AbstractSingleAmountContainerMenu
,AbstractStorageContainerMenu
,AutocraftingPreviewContainerMenu
,DiskInterfaceContainerMenu
,InterfaceContainerMenu
,ResourceAmountScreen.SingleResourceContainerMenu
,StorageMonitorContainerMenu
-
Field Summary
Fields inherited from class com.refinedmods.refinedstorage.common.support.AbstractBaseContainerMenu
disabledSlot, transferManager
Fields 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
ModifierConstructorDescriptionprotected
AbstractResourceContainerMenu
(net.minecraft.world.inventory.MenuType<?> type, int syncId) protected
AbstractResourceContainerMenu
(net.minecraft.world.inventory.MenuType<?> type, int syncId, net.minecraft.world.entity.player.Player player) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.inventory.Slot
addSlot
(net.minecraft.world.inventory.Slot slot) void
addToResourceSlotIfNotExisting
(net.minecraft.world.item.ItemStack stack) protected final boolean
void
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 p) void
handleResourceFilterSlotUpdate
(int slotIndex, PlatformResourceKey resource) void
handleResourceSlotAmountChange
(int slotIndex, long amount) void
handleResourceSlotChange
(int slotIndex, boolean tryAlternatives) void
handleResourceSlotUpdate
(int slotIndex, ResourceAmount resourceAmount) protected void
void
sendResourceSlotChange
(int slotIndex, boolean tryAlternatives) Methods inherited from class com.refinedmods.refinedstorage.common.support.AbstractBaseContainerMenu
addPlayerInventory, addPlayerInventory, getProperty, handleFilterSlotChange, hasProperty, quickMoveStack, receivePropertyChangeFromClient, registerProperty, stillValid
Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlotListener, 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
-
player
@Nullable protected final net.minecraft.world.entity.player.Player player
-
-
Constructor Details
-
AbstractResourceContainerMenu
protected AbstractResourceContainerMenu(@Nullable net.minecraft.world.inventory.MenuType<?> type, int syncId, net.minecraft.world.entity.player.Player player) -
AbstractResourceContainerMenu
protected AbstractResourceContainerMenu(@Nullable net.minecraft.world.inventory.MenuType<?> type, int syncId)
-
-
Method Details
-
handleResourceSlotUpdate
-
handleResourceFilterSlotUpdate
-
handleResourceSlotChange
public void handleResourceSlotChange(int slotIndex, boolean tryAlternatives) -
sendResourceSlotChange
public void sendResourceSlotChange(int slotIndex, boolean tryAlternatives) -
handleResourceSlotAmountChange
public void handleResourceSlotAmountChange(int slotIndex, long amount) -
broadcastChanges
public void broadcastChanges()- Overrides:
broadcastChanges
in classnet.minecraft.world.inventory.AbstractContainerMenu
-
getResourceSlots
-
addSlot
protected net.minecraft.world.inventory.Slot addSlot(net.minecraft.world.inventory.Slot slot) - Overrides:
addSlot
in classnet.minecraft.world.inventory.AbstractContainerMenu
-
resetSlots
protected void resetSlots()- Overrides:
resetSlots
in classAbstractBaseContainerMenu
-
addToResourceSlotIfNotExisting
public void addToResourceSlotIfNotExisting(net.minecraft.world.item.ItemStack stack) -
areAllResourceSlotsEmpty
protected final boolean areAllResourceSlotsEmpty() -
canTakeItemForPickAll
public boolean canTakeItemForPickAll(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot) - Overrides:
canTakeItemForPickAll
in classAbstractBaseContainerMenu
-
clicked
public void clicked(int id, int dragType, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player p) - Overrides:
clicked
in classAbstractBaseContainerMenu
-