java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.inventory.VillagerTrade

public class VillagerTrade extends Object
  • Constructor Details

    • VillagerTrade

      public VillagerTrade(@NonNull @NonNull VillagerTrade.ItemCost itemCostA, @NonNull @NonNull ItemStack result, @Nullable VillagerTrade.ItemCost itemCostB, boolean outOfStock, int uses, int maxUses, int xp, int specialPriceDiff, float priceMultiplier, int demand)
  • Method Details

    • getItemCostA

      @NonNull public @NonNull VillagerTrade.ItemCost getItemCostA()
    • getResult

      @NonNull public @NonNull ItemStack getResult()
    • getItemCostB

      public @Nullable VillagerTrade.ItemCost getItemCostB()
    • isOutOfStock

      public boolean isOutOfStock()
    • getUses

      public int getUses()
    • getMaxUses

      public int getMaxUses()
    • getXp

      public int getXp()
    • getSpecialPriceDiff

      public int getSpecialPriceDiff()
    • getPriceMultiplier

      public float getPriceMultiplier()
    • getDemand

      public int getDemand()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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