Package com.hbm_m.inventory.menu
Class MachineCrucibleMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.hbm_m.inventory.menu.MachineCrucibleMenu
public class MachineCrucibleMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intMachine input slots 0..8 (3×3 grid).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
ConstructorsConstructorDescriptionMachineCrucibleMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.FriendlyByteBuf extraData) MachineCrucibleMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.level.block.entity.BlockEntity entity, net.minecraft.world.inventory.ContainerData data) -
Method Summary
Modifier and TypeMethodDescriptionvoidclicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player player) intgetHeat()intintintintМаксимальное время процесса (TU), для шкалы прогресса.intintШирина полоски нагрева (0..33 px).intВысота индикатора жидкости (0..101 px).intШирина полоски прогресса (0..33 px).net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int index) booleanstillValid(net.minecraft.world.entity.player.Player player) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, 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
-
Field Details
-
MACHINE_SLOTS
public static final int MACHINE_SLOTSMachine input slots 0..8 (3×3 grid).- See Also:
-
IDX_PROGRESS
public static final int IDX_PROGRESS- See Also:
-
IDX_PROCESS_TIME
public static final int IDX_PROCESS_TIME- See Also:
-
IDX_HEAT
public static final int IDX_HEAT- See Also:
-
IDX_MAX_HEAT
public static final int IDX_MAX_HEAT- See Also:
-
IDX_LIQUID
public static final int IDX_LIQUID- See Also:
-
IDX_LIQUID_CAP
public static final int IDX_LIQUID_CAP- See Also:
-
blockEntity
-
-
Constructor Details
-
MachineCrucibleMenu
public MachineCrucibleMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.FriendlyByteBuf extraData) -
MachineCrucibleMenu
public MachineCrucibleMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.level.block.entity.BlockEntity entity, net.minecraft.world.inventory.ContainerData data)
-
-
Method Details
-
clicked
public void clicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player player) - Overrides:
clickedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
getProgress
public int getProgress() -
getProcessTime
public int getProcessTime()Максимальное время процесса (TU), для шкалы прогресса. -
getHeat
public int getHeat() -
getMaxHeat
public int getMaxHeat() -
getLiquidStored
public int getLiquidStored() -
getLiquidCap
public int getLiquidCap() -
getScaledProgress
public int getScaledProgress()Ширина полоски прогресса (0..33 px). -
getScaledHeat
public int getScaledHeat()Ширина полоски нагрева (0..33 px). -
getScaledLiquidHeight
public int getScaledLiquidHeight()Высота индикатора жидкости (0..101 px).
-