Class MysteriousAltarMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minheur.mhm_bitsnbobs.screen.MysteriousAltarMenu

public class MysteriousAltarMenu 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
    MysteriousAltarMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData)
     
    MysteriousAltarMenu(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
     
    int
     
    boolean
     
    boolean
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player playerIn, int pIndex)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player pPlayer)
     

    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 MysteriousAltarBlockEntity 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

    • MysteriousAltarMenu

      public MysteriousAltarMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData)
    • MysteriousAltarMenu

      public MysteriousAltarMenu(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()
    • hasPower

      public boolean hasPower()
    • getScaledProgress

      public int getScaledProgress()
    • getScaledPower

      public int getScaledPower()
    • 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 pPlayer)
      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)