Class BasicTradeListing

java.lang.Object
com.blamejared.crafttweaker.api.villager.BasicTradeListing
All Implemented Interfaces:
IBasicItemListing, net.minecraft.world.entity.npc.VillagerTrades.ItemListing

@ZenRegister public class BasicTradeListing extends Object implements net.minecraft.world.entity.npc.VillagerTrades.ItemListing, IBasicItemListing
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.world.item.ItemStack
     
    protected final int
     
    protected final net.minecraft.world.item.ItemStack
     
    protected final net.minecraft.world.item.ItemStack
     
    protected final float
     
    protected final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicTradeListing(int emeralds, net.minecraft.world.item.ItemStack forSale, int maxTrades, int xp)
     
    BasicTradeListing(int emeralds, net.minecraft.world.item.ItemStack forSale, int maxTrades, int xp, float mult)
     
    BasicTradeListing(net.minecraft.world.item.ItemStack price, net.minecraft.world.item.ItemStack forSale, int maxTrades, int xp, float priceMult)
     
    BasicTradeListing(net.minecraft.world.item.ItemStack price, net.minecraft.world.item.ItemStack price2, net.minecraft.world.item.ItemStack forSale, int maxTrades, int xp, float priceMult)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
     
    int
     
    net.minecraft.world.item.trading.MerchantOffer
    getOffer(net.minecraft.world.entity.Entity trader, Random rand)
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.world.item.ItemStack
     
    float
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • price

      protected final net.minecraft.world.item.ItemStack price
    • price2

      protected final net.minecraft.world.item.ItemStack price2
    • forSale

      protected final net.minecraft.world.item.ItemStack forSale
    • maxTrades

      protected final int maxTrades
    • xp

      protected final int xp
    • priceMult

      protected final float priceMult
  • Constructor Details

    • BasicTradeListing

      public BasicTradeListing(net.minecraft.world.item.ItemStack price, net.minecraft.world.item.ItemStack price2, net.minecraft.world.item.ItemStack forSale, int maxTrades, int xp, float priceMult)
    • BasicTradeListing

      public BasicTradeListing(net.minecraft.world.item.ItemStack price, net.minecraft.world.item.ItemStack forSale, int maxTrades, int xp, float priceMult)
    • BasicTradeListing

      public BasicTradeListing(int emeralds, net.minecraft.world.item.ItemStack forSale, int maxTrades, int xp, float mult)
    • BasicTradeListing

      public BasicTradeListing(int emeralds, net.minecraft.world.item.ItemStack forSale, int maxTrades, int xp)
  • Method Details

    • getOffer

      @Nullable public net.minecraft.world.item.trading.MerchantOffer getOffer(net.minecraft.world.entity.Entity trader, Random rand)
      Specified by:
      getOffer in interface net.minecraft.world.entity.npc.VillagerTrades.ItemListing
    • getPrice

      public net.minecraft.world.item.ItemStack getPrice()
      Specified by:
      getPrice in interface IBasicItemListing
    • getPrice2

      public net.minecraft.world.item.ItemStack getPrice2()
      Specified by:
      getPrice2 in interface IBasicItemListing
    • getForSale

      public net.minecraft.world.item.ItemStack getForSale()
      Specified by:
      getForSale in interface IBasicItemListing
    • getMaxTrades

      public int getMaxTrades()
      Specified by:
      getMaxTrades in interface IBasicItemListing
    • getXp

      public int getXp()
      Specified by:
      getXp in interface IBasicItemListing
    • getPriceMult

      public float getPriceMult()
      Specified by:
      getPriceMult in interface IBasicItemListing