Class AutocraftingStorageMonitorContainerMenu
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.autocrafting.preview.AutocraftingPreviewContainerMenu
com.refinedmods.refinedstorage.common.storagemonitor.AutocraftingStorageMonitorContainerMenu
- All Implemented Interfaces:
PreviewProvider,CancelablePreviewProvider
public class AutocraftingStorageMonitorContainerMenu
extends AutocraftingPreviewContainerMenu
implements CancelablePreviewProvider
-
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
ConstructorsConstructorDescriptionAutocraftingStorageMonitorContainerMenu(int syncId, PlatformResourceKey resource) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()getMaxAmount(ResourceKey resource, CancellationToken cancellationToken) getPreview(ResourceKey resource, long amount, CancellationToken cancellationToken) getTreePreview(ResourceKey resource, long amount, CancellationToken cancellationToken) startTask(ResourceKey resource, long amount, Actor actor, boolean notify, CancellationToken cancellationToken) booleanstillValid(net.minecraft.world.entity.player.Player player) Methods inherited from class com.refinedmods.refinedstorage.common.autocrafting.preview.AutocraftingPreviewContainerMenu
maxAmountResponseReceived, previewResponseReceived, previewResponseReceived, responseReceivedMethods 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, suppressRemoteUpdates, transferState
-
Constructor Details
-
AutocraftingStorageMonitorContainerMenu
-
-
Method Details
-
getPreview
public CompletableFuture<Optional<Preview>> getPreview(ResourceKey resource, long amount, CancellationToken cancellationToken) - Specified by:
getPreviewin interfacePreviewProvider
-
getTreePreview
public CompletableFuture<Optional<TreePreview>> getTreePreview(ResourceKey resource, long amount, CancellationToken cancellationToken) - Specified by:
getTreePreviewin interfacePreviewProvider
-
getMaxAmount
public CompletableFuture<Long> getMaxAmount(ResourceKey resource, CancellationToken cancellationToken) - Specified by:
getMaxAmountin interfacePreviewProvider
-
startTask
public Optional<TaskId> startTask(ResourceKey resource, long amount, Actor actor, boolean notify, CancellationToken cancellationToken) - Specified by:
startTaskin interfacePreviewProvider
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Overrides:
stillValidin classAutocraftingPreviewContainerMenu
-
cancel
public void cancel()- Specified by:
cancelin interfaceCancelablePreviewProvider
-