Class TeslaSynthesizerMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
tech.anonymoushacker1279.immersiveweapons.menu.TeslaSynthesizerMenu
All Implemented Interfaces:
net.minecraft.world.inventory.StackedContentsCompatible

public class TeslaSynthesizerMenu extends net.minecraft.world.inventory.AbstractContainerMenu implements net.minecraft.world.inventory.StackedContentsCompatible
  • 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, slots
  • 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
    void
    fillStackedContents(net.minecraft.world.entity.player.StackedContents helper)
     
    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.
    boolean
    isIngredient(net.minecraft.world.item.crafting.RecipeManager recipeManager, net.minecraft.world.item.ItemStack stack)
    Check if the given ItemStack is a valid ingredient for any recipe.
    boolean
    isIngredient(net.minecraft.world.item.crafting.RecipeManager recipeManager, net.minecraft.world.item.ItemStack stack, int slot)
    Check if the given ItemStack is a valid ingredient for the given recipe in the given slot.
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player playerIn)
     

    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
  • 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 playerIn)
      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
    • fillStackedContents

      public void fillStackedContents(net.minecraft.world.entity.player.StackedContents helper)
      Specified by:
      fillStackedContents in interface net.minecraft.world.inventory.StackedContentsCompatible
    • 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
    • isIngredient

      public boolean isIngredient(net.minecraft.world.item.crafting.RecipeManager recipeManager, net.minecraft.world.item.ItemStack stack)
      Check if the given ItemStack is a valid ingredient for any recipe.
      Parameters:
      recipeManager - the RecipeManager instance
      stack - the ItemStack being checked
      Returns:
      boolean
    • isIngredient

      public boolean isIngredient(net.minecraft.world.item.crafting.RecipeManager recipeManager, net.minecraft.world.item.ItemStack stack, int slot)
      Check if the given ItemStack is a valid ingredient for the given recipe in the given slot.
      Parameters:
      recipeManager - the RecipeManager instance
      stack - the ItemStack being checked
      slot - the slot index
    • 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