Class AbstractSingleAmountContainerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.refinedmods.refinedstorage.common.support.AbstractBaseContainerMenu
com.refinedmods.refinedstorage.common.support.containermenu.AbstractResourceContainerMenu
com.refinedmods.refinedstorage.common.support.containermenu.AbstractSingleAmountContainerMenu
- Direct Known Subclasses:
DetectorContainerMenu
,RegulatorUpgradeContainerMenu
-
Field Summary
Fields inherited from class com.refinedmods.refinedstorage.common.support.containermenu.AbstractResourceContainerMenu
player
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
AbstractSingleAmountContainerMenu
(net.minecraft.world.inventory.MenuType<?> type, int syncId, net.minecraft.world.entity.player.Inventory playerInventory, SingleAmountData singleAmountData, net.minecraft.network.chat.Component filterHelpText) protected
AbstractSingleAmountContainerMenu
(net.minecraft.world.inventory.MenuType<?> type, int syncId, net.minecraft.world.entity.player.Player player, ResourceContainer resourceContainer, net.minecraft.network.chat.Component filterHelpText, SlotReference disabledSlotReference) -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeAmountOnClient
(double newAmount) abstract void
changeAmountOnServer
(double newAmount) double
Methods inherited from class com.refinedmods.refinedstorage.common.support.containermenu.AbstractResourceContainerMenu
addSlot, addToResourceSlotIfNotExisting, areAllResourceSlotsEmpty, broadcastChanges, canTakeItemForPickAll, clicked, getResourceSlots, handleResourceFilterSlotUpdate, handleResourceSlotAmountChange, handleResourceSlotChange, handleResourceSlotUpdate, resetSlots, sendResourceSlotChange
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
-
Constructor Details
-
AbstractSingleAmountContainerMenu
protected AbstractSingleAmountContainerMenu(net.minecraft.world.inventory.MenuType<?> type, int syncId, net.minecraft.world.entity.player.Player player, ResourceContainer resourceContainer, net.minecraft.network.chat.Component filterHelpText, @Nullable SlotReference disabledSlotReference)
-
Method Details
-
getAmount
public double getAmount() -
changeAmountOnClient
public void changeAmountOnClient(double newAmount) -
changeAmountOnServer
public abstract void changeAmountOnServer(double newAmount)
-