Package net.minheur.mhm_bitsnbobs.screen
Class FreezerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minheur.mhm_bitsnbobs.screen.FreezerMenu
public class FreezerMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal FreezerBlockEntityprivate final net.minecraft.world.inventory.ContainerDataprivate static final intprivate final net.minecraft.world.level.Levelprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intFields 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
ConstructorsConstructorDescriptionFreezerMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData) FreezerMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.level.block.entity.BlockEntity entity, net.minecraft.world.inventory.ContainerData data) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddPlayerHotbar(net.minecraft.world.entity.player.Inventory playerInventory) private voidaddPlayerInventory(net.minecraft.world.entity.player.Inventory playerInventory) intbooleannet.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player playerIn, int pIndex) 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, clicked, 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
-
blockEntity
-
level
private final net.minecraft.world.level.Level level -
data
private final net.minecraft.world.inventory.ContainerData data -
HOTBAR_SLOT_COUNT
private static final int HOTBAR_SLOT_COUNT- See Also:
-
PLAYER_INVENTORY_ROW_COUNT
private static final int PLAYER_INVENTORY_ROW_COUNT- See Also:
-
PLAYER_INVENTORY_COLUMN_COUNT
private static final int PLAYER_INVENTORY_COLUMN_COUNT- See Also:
-
PLAYER_INVENTORY_SLOT_COUNT
private static final int PLAYER_INVENTORY_SLOT_COUNT- See Also:
-
VANILLA_SLOT_COUNT
private static final int VANILLA_SLOT_COUNT- See Also:
-
VANILLA_FIRST_SLOT_INDEX
private static final int VANILLA_FIRST_SLOT_INDEX- See Also:
-
TE_INVENTORY_FIRST_SLOT_INDEX
private static final int TE_INVENTORY_FIRST_SLOT_INDEX- See Also:
-
TE_INVENTORY_SLOT_COUNT
private static final int TE_INVENTORY_SLOT_COUNT- See Also:
-
-
Constructor Details
-
FreezerMenu
public FreezerMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData) -
FreezerMenu
public FreezerMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.level.block.entity.BlockEntity entity, net.minecraft.world.inventory.ContainerData data)
-
-
Method Details
-
isCrafting
public boolean isCrafting() -
getScaledProgress
public int getScaledProgress() -
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player playerIn, int pIndex) - 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
-
addPlayerInventory
private void addPlayerInventory(net.minecraft.world.entity.player.Inventory playerInventory) -
addPlayerHotbar
private void addPlayerHotbar(net.minecraft.world.entity.player.Inventory playerInventory)
-