Class VillagerSells
java.lang.Object
net.darkhax.bookshelf.api.entity.merchant.trade.VillagerSells
- All Implemented Interfaces:
net.minecraft.world.entity.npc.VillagerTrades.ItemListing
public class VillagerSells
extends Object
implements net.minecraft.world.entity.npc.VillagerTrades.ItemListing
-
Constructor Summary
ConstructorsConstructorDescriptionVillagerSells(Supplier<net.minecraft.world.item.ItemStack> itemToBuy, int emeraldCost, int maxUses, int villagerXp, float priceMultiplier) -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.entity.npc.VillagerTrades.ItemListingcreate(Supplier<? extends net.minecraft.world.level.ItemLike> stackToBuy, int emeraldCost, int maxUses, int villagerXp, float priceMultiplier) net.minecraft.world.item.trading.MerchantOffergetOffer(net.minecraft.world.entity.Entity villager, net.minecraft.util.RandomSource rng)
-
Constructor Details
-
VillagerSells
public VillagerSells(Supplier<net.minecraft.world.item.ItemStack> itemToBuy, int emeraldCost, int maxUses, int villagerXp, float priceMultiplier)
-
-
Method Details
-
getOffer
public net.minecraft.world.item.trading.MerchantOffer getOffer(net.minecraft.world.entity.Entity villager, net.minecraft.util.RandomSource rng) - Specified by:
getOfferin interfacenet.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)
-