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

    Constructors
    Constructor
    Description
    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
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.trading.MerchantOffer
    getOffer(net.minecraft.world.entity.Entity var1, net.minecraft.util.RandomSource var2)
     

    Methods inherited from class java.lang.Object

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