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

    Constructors
    Constructor
    Description
    SellItemFactory2(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 emeralds
    SellItemFactory2(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 Type
    Method
    Description
    net.minecraft.world.item.trading.MerchantOffer
    getOffer(net.minecraft.world.entity.Entity entity_1, net.minecraft.util.RandomSource random_1)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 sells
      price - The amount of emeralds the stack costs
      count - The amount of the stack the player get
      maxUses - The number of amount you can trade the spesific stack
      experience - The amount of experience you get from the trade
      multiplier - 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:
      getOffer in interface net.minecraft.world.entity.npc.VillagerTrades.ItemListing