Class ExpandTreasureMapForEmeralds

java.lang.Object
com.blamejared.crafttweaker.natives.villager.trade.type.ExpandTreasureMapForEmeralds

@ZenRegister public class ExpandTreasureMapForEmeralds extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.entity.npc.VillagerTrades.TreasureMapForEmeralds
    create(int emeraldCost, net.minecraft.resources.ResourceLocation destination, String displayName, net.minecraft.world.level.saveddata.maps.MapDecoration.Type destinationType, int maxUses, int villagerXp)
    Creates a new TreasureMapForEmeralds trade

    Methods inherited from class java.lang.Object

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

    • ExpandTreasureMapForEmeralds

      public ExpandTreasureMapForEmeralds()
  • Method Details

    • create

      public static net.minecraft.world.entity.npc.VillagerTrades.TreasureMapForEmeralds create(int emeraldCost, net.minecraft.resources.ResourceLocation destination, String displayName, net.minecraft.world.level.saveddata.maps.MapDecoration.Type destinationType, int maxUses, int villagerXp)
      Creates a new TreasureMapForEmeralds trade
      Parameters:
      emeraldCost - How many emeralds should the map cost
      destination - What should the map lead the player to
      displayName - The name of the map
      destinationType - The type of destination t
      maxUses - How many times this trade can be used
      villagerXp - How much experience does this trade reward the villager
      Returns:
      A new TreasureMapForEmeralds
      DocParam:
      emeraldCost 1, destination <resource:minecraft:ruined_portal>, displayName "Ruined Portal", destinationType <constant:minecraft:world/map/decorationtype:mansion>, maxUses 16, villagerXp 2