Class ExpandTreasureMapForEmeralds
java.lang.Object
com.blamejared.crafttweaker.natives.villager.trade.type.ExpandTreasureMapForEmeralds
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.entity.npc.VillagerTrades.TreasureMapForEmeraldscreate(int emeraldCost, net.minecraft.resources.ResourceLocation destination, String displayName, net.minecraft.world.level.saveddata.maps.MapDecorationType destinationType, int maxUses, int villagerXp) Creates a new TreasureMapForEmeralds trade
-
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.MapDecorationType destinationType, int maxUses, int villagerXp) Creates a new TreasureMapForEmeralds trade- Parameters:
emeraldCost- How many emeralds should the map costdestination- What should the map lead the player todisplayName- The name of the mapdestinationType- The type of destination tmaxUses- How many times this trade can be usedvillagerXp- How much experience does this trade reward the villager- Returns:
- A new TreasureMapForEmeralds
- DocParam:
- emeraldCost 1, destination invalid input: '<'resource:minecraft:ruined_portal>, displayName "Ruined Portal", destinationType invalid input: '<'constant:minecraft:world/map/decorationtype:mansion>, maxUses 16, villagerXp 2
-