Class AnvilMenu


public class AnvilMenu extends ItemCombinerMenu
  • Field Details

  • Constructor Details

  • Method Details

    • createInputSlotDefinitions

      private static ItemCombinerMenuSlotDefinition createInputSlotDefinitions()
    • isValidBlock

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

      protected boolean mayPickup(Player pPlayer, boolean pHasStack)
      Overrides:
      mayPickup in class ItemCombinerMenu
    • onTake

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

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

      protected void createResultInternal()
      Neo: This is the original createResult() method, which is called by the above method (createResult().

      If you would normally override createResult(), you should override this method instead.

    • calculateIncreasedRepairCost

      public static int calculateIncreasedRepairCost(int pOldRepairCost)
    • setItemName

      public boolean setItemName(String pItemName)
    • validateName

      @Nullable private static String validateName(String pItemName)
    • getCost

      public int getCost()
    • setCost

      public void setCost(int value)
      Neo: Sets the cost. Negative values are clamped to zero.