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
playerFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractSingleAmountContainerMenu(net.minecraft.world.inventory.MenuType<?> type, int syncId, net.minecraft.world.entity.player.Inventory playerInventory, SingleAmountData singleAmountData, net.minecraft.network.chat.Component filterHelpText) protectedAbstractSingleAmountContainerMenu(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 TypeMethodDescriptionvoidchangeAmountOnClient(double newAmount) abstract voidchangeAmountOnServer(double newAmount) doubledoubleMethods inherited from class com.refinedmods.refinedstorage.common.support.containermenu.AbstractResourceContainerMenu
addSlot, addToResourceSlotIfNotExisting, areAllResourceSlotsEmpty, broadcastChanges, canTakeItemForPickAll, clicked, getResourceSlots, handleResourceFilterSlotUpdate, handleResourceSlotAmountChange, handleResourceSlotChange, handleResourceSlotUpdate, resetSlots, sendResourceSlotChangeMethods 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
-
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
-
getMinAmount
public double getMinAmount() -
getAmount
public double getAmount() -
changeAmountOnClient
public void changeAmountOnClient(double newAmount) -
changeAmountOnServer
public abstract void changeAmountOnServer(double newAmount)
-