java.lang.Object
net.darkhax.bookshelf.api.entity.merchant.trade.VillagerBuys
All Implemented Interfaces:
net.minecraft.world.entity.npc.VillagerTrades.ItemListing

public class VillagerBuys extends Object implements net.minecraft.world.entity.npc.VillagerTrades.ItemListing
  • Constructor Summary

    Constructors
    Constructor
    Description
    VillagerBuys(Supplier<net.minecraft.world.item.ItemStack> stackToSell, int emeraldCost, int maxUses, int villagerXp, float priceMultiplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.entity.npc.VillagerTrades.ItemListing
    create(Supplier<? extends net.minecraft.world.level.ItemLike> stackToBuy, int emeraldCost, int maxUses, int villagerXp, float priceMultiplier)
     
    net.minecraft.world.item.trading.MerchantOffer
    getOffer(net.minecraft.world.entity.Entity entity, net.minecraft.util.RandomSource random)
     

    Methods inherited from class java.lang.Object

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

    • VillagerBuys

      public VillagerBuys(Supplier<net.minecraft.world.item.ItemStack> stackToSell, int emeraldCost, int maxUses, int villagerXp, float priceMultiplier)
  • Method Details

    • getOffer

      public net.minecraft.world.item.trading.MerchantOffer getOffer(net.minecraft.world.entity.Entity entity, net.minecraft.util.RandomSource random)
      Specified by:
      getOffer in interface net.minecraft.world.entity.npc.VillagerTrades.ItemListing
    • create

      public static net.minecraft.world.entity.npc.VillagerTrades.ItemListing create(Supplier<? extends net.minecraft.world.level.ItemLike> stackToBuy, int emeraldCost, int maxUses, int villagerXp, float priceMultiplier)