Class TeslaSynthesizerMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
tech.anonymoushacker1279.immersiveweapons.menu.TeslaSynthesizerMenu

public class TeslaSynthesizerMenu extends net.minecraft.world.inventory.AbstractContainerMenu
  • Field Summary

    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, SLOT_SIZE, slots, SLOTS_PER_ROW
  • Constructor Summary

    Constructors
    Constructor
    Description
    TeslaSynthesizerMenu(int id, net.minecraft.world.entity.player.Inventory inventory)
    Constructor for TeslaSynthesizerMenu.
    TeslaSynthesizerMenu(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container, net.minecraft.world.inventory.ContainerData containerData)
    Constructor for TeslaSynthesizerMenu.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the scaled burn time left.
    int
    Get the current progression.
    boolean
    Check if the fuel is currently burning.
    boolean
    isFuel(net.minecraft.world.item.ItemStack stack)
    Check if the given ItemStack is a fuel item.
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     

    Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState

    Methods inherited from class Object

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

    • TeslaSynthesizerMenu

      public TeslaSynthesizerMenu(int id, net.minecraft.world.entity.player.Inventory inventory)
      Constructor for TeslaSynthesizerMenu.
      Parameters:
      id - the ID of the container
      inventory - the Inventory instance
    • TeslaSynthesizerMenu

      public TeslaSynthesizerMenu(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container, net.minecraft.world.inventory.ContainerData containerData)
      Constructor for TeslaSynthesizerMenu.
      Parameters:
      id - the ID of the container
      inventory - the player inventory
      container - the container
      containerData - the container data
  • Method Details

    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in class net.minecraft.world.inventory.AbstractContainerMenu
    • quickMoveStack

      public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
      Specified by:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • isFuel

      public boolean isFuel(net.minecraft.world.item.ItemStack stack)
      Check if the given ItemStack is a fuel item.
      Parameters:
      stack - the ItemStack being checked
      Returns:
      boolean
    • getCookProgressionScaled

      public int getCookProgressionScaled()
      Get the current progression.
      Returns:
      int
    • getBurnLeftScaled

      public int getBurnLeftScaled()
      Get the scaled burn time left.
      Returns:
      int
    • isBurning

      public boolean isBurning()
      Check if the fuel is currently burning.
      Returns:
      boolean