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
FieldsFields inherited from class com.refinedmods.refinedstorage.common.support.AbstractBaseContainerMenu
disabledSlot, 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, slots -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractResourceContainerMenu(net.minecraft.world.inventory.MenuType<?> type, int syncId) protectedAbstractResourceContainerMenu(net.minecraft.world.inventory.MenuType<?> type, int syncId, net.minecraft.world.entity.player.Player player) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.inventory.SlotaddSlot(net.minecraft.world.inventory.Slot slot) voidaddToResourceSlotIfNotExisting(net.minecraft.world.item.ItemStack stack) protected final booleanvoidbooleancanTakeItemForPickAll(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot) voidclicked(int id, int dragType, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player p) voidhandleResourceFilterSlotUpdate(int slotIndex, PlatformResourceKey resource) voidhandleResourceSlotAmountChange(int slotIndex, long amount) voidhandleResourceSlotChange(int slotIndex, boolean tryAlternatives) voidhandleResourceSlotUpdate(int slotIndex, ResourceAmount resourceAmount) protected voidvoidsendResourceSlotChange(int slotIndex, boolean tryAlternatives) Methods inherited from class com.refinedmods.refinedstorage.common.support.AbstractBaseContainerMenu
addPlayerInventory, addPlayerInventory, getProperty, handleFilterSlotChange, hasProperty, quickMoveStack, receivePropertyChangeFromClient, registerPropertyMethods 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, 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:
broadcastChangesin classnet.minecraft.world.inventory.AbstractContainerMenu
-
getResourceSlots
-
addSlot
protected net.minecraft.world.inventory.Slot addSlot(net.minecraft.world.inventory.Slot slot) - Overrides:
addSlotin classnet.minecraft.world.inventory.AbstractContainerMenu
-
resetSlots
protected void resetSlots()- Overrides:
resetSlotsin 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:
canTakeItemForPickAllin classAbstractBaseContainerMenu
-
clicked
public void clicked(int id, int dragType, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player p) - Overrides:
clickedin classAbstractBaseContainerMenu
-