java.lang.Object
tech.anonymoushacker1279.immersiveweapons.entity.npc.trades.ItemsForEmeralds
All Implemented Interfaces:
net.minecraft.world.entity.npc.VillagerTrades.ItemListing

public class ItemsForEmeralds extends Object implements net.minecraft.world.entity.npc.VillagerTrades.ItemListing
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemsForEmeralds(net.minecraft.world.item.Item item, int emeraldCost, int itemCount, int maxUses)
     
    ItemsForEmeralds(net.minecraft.world.item.ItemStack itemStack, int emeraldCost, int itemCount, int maxUses)
     
    ItemsForEmeralds(net.minecraft.world.item.ItemStack itemStack, int emeraldCost, int itemCount, int maxUses, int villagerXP, float priceMultiplier)
     
    ItemsForEmeralds(net.minecraft.world.level.block.Block block, int emeraldCost, int itemCount, int maxUses)
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemsForEmeralds

      public ItemsForEmeralds(net.minecraft.world.level.block.Block block, int emeraldCost, int itemCount, int maxUses)
    • ItemsForEmeralds

      public ItemsForEmeralds(net.minecraft.world.item.Item item, int emeraldCost, int itemCount, int maxUses)
    • ItemsForEmeralds

      public ItemsForEmeralds(net.minecraft.world.item.ItemStack itemStack, int emeraldCost, int itemCount, int maxUses)
    • ItemsForEmeralds

      public ItemsForEmeralds(net.minecraft.world.item.ItemStack itemStack, int emeraldCost, int itemCount, int maxUses, int villagerXP, float priceMultiplier)
  • Method Details

    • getOffer

      public net.minecraft.world.item.trading.MerchantOffer getOffer(net.minecraft.world.entity.Entity trader, net.minecraft.util.RandomSource randomSource)
      Specified by:
      getOffer in interface net.minecraft.world.entity.npc.VillagerTrades.ItemListing