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

    Fields
    Modifier and Type
    Field
    Description
     
    private final net.minecraft.world.inventory.ContainerData
     
    private static final int
     
    private final net.minecraft.world.level.Level
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final int
     

    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

    Constructors
    Constructor
    Description
    FreezerMenu(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 Type
    Method
    Description
    private void
    addPlayerHotbar(net.minecraft.world.entity.player.Inventory playerInventory)
     
    private void
    addPlayerInventory(net.minecraft.world.entity.player.Inventory playerInventory)
     
    int
     
    boolean
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player playerIn, int pIndex)
     
    boolean
    stillValid(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • blockEntity

      public final FreezerBlockEntity 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:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in class net.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)