Class AnvilContainer


public class AnvilContainer extends Container
Used to determine if rename packets should be sent and stores the expected level cost for AnvilInventoryUpdater
  • Constructor Details

    • AnvilContainer

      public AnvilContainer(String title, int id, int size, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)
  • Method Details

    • getInput

      public GeyserItemStack getInput()
    • getMaterial

      public GeyserItemStack getMaterial()
    • getResult

      public GeyserItemStack getResult()
    • getJavaLevelCost

      public int getJavaLevelCost()
      Stores the level cost received as a window property from Java
    • isUseJavaLevelCost

      public boolean isUseJavaLevelCost()
      A flag to specify whether javaLevelCost can be used as it can be outdated or not sent at all.
    • getNewName

      public String getNewName()
      The new name of the item as received from Bedrock
    • getLastInput

      public GeyserItemStack getLastInput()
    • getLastMaterial

      public GeyserItemStack getLastMaterial()
    • getLastTargetSlot

      public int getLastTargetSlot()
    • setJavaLevelCost

      public void setJavaLevelCost(int javaLevelCost)
      Stores the level cost received as a window property from Java
    • setUseJavaLevelCost

      public void setUseJavaLevelCost(boolean useJavaLevelCost)
      A flag to specify whether javaLevelCost can be used as it can be outdated or not sent at all.
    • setNewName

      public void setNewName(String newName)
      The new name of the item as received from Bedrock
    • setLastInput

      public void setLastInput(GeyserItemStack lastInput)
    • setLastMaterial

      public void setLastMaterial(GeyserItemStack lastMaterial)
    • setLastTargetSlot

      public void setLastTargetSlot(int lastTargetSlot)