Class AnvilMenu


public class AnvilMenu extends ItemCombinerMenu
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • DEBUG_COST

      private static final boolean DEBUG_COST
      See Also:
      Constant Field Values
    • MAX_NAME_LENGTH

      public static final int MAX_NAME_LENGTH
      See Also:
      Constant Field Values
    • repairItemCountCost

      public int repairItemCountCost
    • itemName

      private String itemName
    • cost

      private final DataSlot cost
    • COST_FAIL

      private static final int COST_FAIL
      See Also:
      Constant Field Values
    • COST_BASE

      private static final int COST_BASE
      See Also:
      Constant Field Values
    • COST_ADDED_BASE

      private static final int COST_ADDED_BASE
      See Also:
      Constant Field Values
    • COST_REPAIR_MATERIAL

      private static final int COST_REPAIR_MATERIAL
      See Also:
      Constant Field Values
    • COST_REPAIR_SACRIFICE

      private static final int COST_REPAIR_SACRIFICE
      See Also:
      Constant Field Values
    • COST_INCOMPATIBLE_PENALTY

      private static final int COST_INCOMPATIBLE_PENALTY
      See Also:
      Constant Field Values
    • COST_RENAME

      private static final int COST_RENAME
      See Also:
      Constant Field Values
  • Constructor Details

  • Method Details

    • isValidBlock

      protected boolean isValidBlock(BlockState p_39019_)
      Specified by:
      isValidBlock in class ItemCombinerMenu
    • mayPickup

      protected boolean mayPickup(Player p_39023_, boolean p_39024_)
      Specified by:
      mayPickup in class ItemCombinerMenu
    • onTake

      protected void onTake(Player p_150474_, ItemStack p_150475_)
      Specified by:
      onTake in class ItemCombinerMenu
    • createResult

      public void createResult()
      Specified by:
      createResult in class ItemCombinerMenu
    • calculateIncreasedRepairCost

      public static int calculateIncreasedRepairCost(int p_39026_)
    • setItemName

      public void setItemName(String p_39021_)
    • getCost

      public int getCost()
    • setMaximumCost

      public void setMaximumCost(int value)