Class TradeOfferFactories.SellItemFactory2
java.lang.Object
io.github.vampirestudios.vampirelib.village.TradeOfferFactories.SellItemFactory2
- All Implemented Interfaces:
net.minecraft.world.entity.npc.VillagerTrades.ItemListing
- Enclosing class:
- TradeOfferFactories
public static class TradeOfferFactories.SellItemFactory2
extends Object
implements net.minecraft.world.entity.npc.VillagerTrades.ItemListing
-
Constructor Summary
ConstructorsConstructorDescriptionSellItemFactory2(net.minecraft.world.item.Item sell, int price, int count, int experience) SellItemFactory2(net.minecraft.world.item.Item sell, int price, int count, int maxUses, int experience) SellItemFactory2(net.minecraft.world.item.ItemStack sell, int price, int count, int maxUses, int experience) SellItemFactory2(net.minecraft.world.item.ItemStack sell, int price, int count, int maxUses, int experience, float multiplier) The player buys the spesific stack with the defined price of emeraldsSellItemFactory2(net.minecraft.world.level.block.Block sell, int price, int count, int experience) SellItemFactory2(net.minecraft.world.level.block.Block sell, int price, int count, int maxUses, int experience) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.trading.MerchantOffergetOffer(net.minecraft.world.entity.Entity entity_1, net.minecraft.util.RandomSource random_1)
-
Constructor Details
-
SellItemFactory2
public SellItemFactory2(net.minecraft.world.level.block.Block sell, int price, int count, int experience) -
SellItemFactory2
public SellItemFactory2(net.minecraft.world.level.block.Block sell, int price, int count, int maxUses, int experience) -
SellItemFactory2
public SellItemFactory2(net.minecraft.world.item.Item sell, int price, int count, int experience) -
SellItemFactory2
public SellItemFactory2(net.minecraft.world.item.Item sell, int price, int count, int maxUses, int experience) -
SellItemFactory2
public SellItemFactory2(net.minecraft.world.item.ItemStack sell, int price, int count, int maxUses, int experience) -
SellItemFactory2
public SellItemFactory2(net.minecraft.world.item.ItemStack sell, int price, int count, int maxUses, int experience, float multiplier) The player buys the spesific stack with the defined price of emeralds- Parameters:
sell- The stack the player sellsprice- The amount of emeralds the stack costscount- The amount of the stack the player getmaxUses- The number of amount you can trade the spesific stackexperience- The amount of experience you get from the trademultiplier- Influences by the reputation system, the multiplier says how much up or down the price goes
-
-
Method Details
-
getOffer
public net.minecraft.world.item.trading.MerchantOffer getOffer(net.minecraft.world.entity.Entity entity_1, net.minecraft.util.RandomSource random_1) - Specified by:
getOfferin interfacenet.minecraft.world.entity.npc.VillagerTrades.ItemListing
-