Class BarterTrade

java.lang.Object
com.hypixel.hytale.builtin.adventure.shop.barter.BarterTrade

public class BarterTrade extends Object
Represents a single barter trade: what the player receives and what they must pay.
  • Field Details

  • Constructor Details

  • Method Details

    • getOutput

      public BarterItemStack getOutput()
      Returns:
      the item stack the player receives from this trade.
    • getInput

      public BarterItemStack[] getInput()
      Returns:
      the item stacks the player must provide to complete this trade.
    • getMaxStock

      public int getMaxStock()
      Returns:
      the maximum stock available for this trade before refresh.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object