TreasureMapForEmeralds
Link to treasuremapforemeralds
Импорт класса
Link to импорт-класса
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.villager.trade.type.TreasureMapForEmeralds;
Implemented Interfaces
Link to implemented-interfaces
TreasureMapForEmeralds implements the following interfaces. That means all methods defined in these interfaces are also available in TreasureMapForEmeralds
Static Methods
Link to static-methods
Name: create
Creates a new TreasureMapForEmeralds trade
Returns: A new TreasureMapForEmeralds
Return Type: TreasureMapForEmeralds
ZenScript Copy// TreasureMapForEmeralds.create(emeraldCost as int, destination as ResourceLocation, displayName as string, destinationType as MapDecorationType, maxUses as int, villagerXp as int) as TreasureMapForEmeralds
TreasureMapForEmeralds.create(1, <resource:minecraft:ruined_portal>, "Ruined Portal", <constant:minecraft:world/map/decorationtype:mansion>, 16, 2);
Параметр | Тип | Описание |
---|---|---|
Параметр emeraldCost | Тип int | Описание How many emeralds should the map cost |
Параметр destination | Тип ResourceLocation | Описание What should the map lead the player to |
Параметр displayName | Тип string | Описание The name of the map |
Параметр destinationType | Тип MapDecorationType | Описание The type of destination t |
Параметр maxUses | Тип int | Описание How many times this trade can be used |
Параметр villagerXp | Тип int | Описание How much experience does this trade reward the villager |