LootManager
Link to lootmanager
The main entry point for everything loot related.
This entry point can be obtained via the loot
global in scripts and allows you to manipulate everything related to loot or query loot tables.
Other mods may also expand the current possibilities, so check their documentation to see what additional entry points are available.
导入类
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.loot.LootManager;
名称 | 类型 | 可获得 | 可设置 | 描述 |
---|---|---|---|---|
名称 modifiers | 类型 LootModifierManager | 可获得 true | 可设置 false | 描述 Gets the loot modifiers manager. Refer to LootModifierManager for additional info. |