Class TradeOfferFactories.SellItemFactory
java.lang.Object
io.github.vampirestudios.vampirelib.village.TradeOfferFactories.SellItemFactory
- All Implemented Interfaces:
net.minecraft.world.entity.npc.VillagerTrades.ItemListing
- Enclosing class:
- TradeOfferFactories
public static class TradeOfferFactories.SellItemFactory
extends Object
implements net.minecraft.world.entity.npc.VillagerTrades.ItemListing
-
Constructor Summary
ConstructorsConstructorDescriptionSellItemFactory(net.minecraft.world.level.ItemLike sell, int price, int maxUses, int experience) The player sells the spesific stack for the defined price to get emeralds -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.trading.MerchantOffergetOffer(net.minecraft.world.entity.Entity var1, net.minecraft.util.RandomSource var2)
-
Constructor Details
-
SellItemFactory
public SellItemFactory(net.minecraft.world.level.ItemLike sell, int price, int maxUses, int experience) The player sells the spesific stack for the defined price to get emeralds- Parameters:
sell- The stack the player sellsprice- The amount of emeralds the stack costsmaxUses- The number of amount you can trade the spesific stackexperience- The amount of experience you get from the trade
-
-
Method Details
-
getOffer
public net.minecraft.world.item.trading.MerchantOffer getOffer(net.minecraft.world.entity.Entity var1, net.minecraft.util.RandomSource var2) - Specified by:
getOfferin interfacenet.minecraft.world.entity.npc.VillagerTrades.ItemListing
-