Class CraftingMonitorContainerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.refinedmods.refinedstorage.container.BaseContainerMenu
com.refinedmods.refinedstorage.container.CraftingMonitorContainerMenu
- All Implemented Interfaces:
ICraftingMonitorListener
public class CraftingMonitorContainerMenu
extends BaseContainerMenu
implements ICraftingMonitorListener
-
Field Summary
Fields inherited from class com.refinedmods.refinedstorage.container.BaseContainerMenu
transferManager
Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, containerListeners, lastSlots, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
-
Constructor Summary
ConstructorDescriptionCraftingMonitorContainerMenu
(net.minecraft.world.inventory.MenuType<CraftingMonitorContainerMenu> type, ICraftingMonitor craftingMonitor, CraftingMonitorBlockEntity blockEntity, net.minecraft.world.entity.player.Player player, int windowId) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected int
void
Called when this listener is attached to aICraftingManager
.void
Called when any task changes.net.minecraft.world.item.ItemStack
quickMoveStack
(net.minecraft.world.entity.player.Player player, int index) void
removed
(net.minecraft.world.entity.player.Player player) Methods inherited from class com.refinedmods.refinedstorage.container.BaseContainerMenu
addPlayerInventory, addSlot, canTakeItemForPickAll, clicked, getBlockEntity, getFluidSlots, getPlayer, 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, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Constructor Details
-
CraftingMonitorContainerMenu
public CraftingMonitorContainerMenu(net.minecraft.world.inventory.MenuType<CraftingMonitorContainerMenu> type, ICraftingMonitor craftingMonitor, @Nullable CraftingMonitorBlockEntity blockEntity, net.minecraft.world.entity.player.Player player, int windowId)
-
-
Method Details
-
broadcastChanges
public void broadcastChanges()- Overrides:
broadcastChanges
in classBaseContainerMenu
-
removed
public void removed(net.minecraft.world.entity.player.Player player) - Overrides:
removed
in classBaseContainerMenu
-
getCraftingMonitor
-
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index) - Overrides:
quickMoveStack
in classBaseContainerMenu
-
getDisabledSlotNumber
protected int getDisabledSlotNumber()- Overrides:
getDisabledSlotNumber
in classBaseContainerMenu
-
onAttached
public void onAttached()Description copied from interface:ICraftingMonitorListener
Called when this listener is attached to aICraftingManager
.- Specified by:
onAttached
in interfaceICraftingMonitorListener
-
onChanged
public void onChanged()Description copied from interface:ICraftingMonitorListener
Called when any task changes.- Specified by:
onChanged
in interfaceICraftingMonitorListener
-