|
| static JEntry | getLootTableEntry () |
| | Get a loot table entry which can result in an artifact enchantment. More...
|
| |
| static void | register (String name, ArtifactEnchantment enchantment) |
| | Register an enchantment and add a book with the enchantment to the evenbetterarcheology tab and the loot table. More...
|
| |
| static ArrayList< LootEntryInsert > | getArtifactEnchantmentEntries () |
| | Get a list with all artifact enchantment entries that should be added to the loot table The enchantment level is determined by the power distribution with a power of 4. More...
|
| |
|
| static final Identifier | LOOT_TABLE_ID = EvenBetterArcheology.DATA.getSimpleID("artifact_enchantments") |
| | The identifier of the loot table for artifact enchantments. More...
|
| |
◆ getArtifactEnchantmentEntries()
| static ArrayList< LootEntryInsert > de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantmentRegistry.getArtifactEnchantmentEntries |
( |
| ) |
|
|
static |
Get a list with all artifact enchantment entries that should be added to the loot table The enchantment level is determined by the power distribution with a power of 4.
This is registered as a provider for the loot table insert manager. This will cause the loot table to be rebuilt every time the loot tables are built.
- Returns
- a list with all artifact enchantment entries
◆ getLootTableEntry()
| static JEntry de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantmentRegistry.getLootTableEntry |
( |
| ) |
|
|
static |
Get a loot table entry which can result in an artifact enchantment.
- Returns
- a loot table entry
◆ register()
| static void de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantmentRegistry.register |
( |
String |
name, |
|
|
ArtifactEnchantment |
enchantment |
|
) |
| |
|
static |
Register an enchantment and add a book with the enchantment to the evenbetterarcheology tab and the loot table.
- Parameters
-
| name | the name of the enchantment |
| enchantment | the enchantment |
◆ LOOT_TABLE_ID
| final Identifier de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantmentRegistry.LOOT_TABLE_ID = EvenBetterArcheology.DATA.getSimpleID("artifact_enchantments") |
|
static |
The identifier of the loot table for artifact enchantments.
This table produces one enchanted book with one of the registered artifact enchantments. The enchantment level is determined by the power distribution with a power of 4. All enchantments should have a weight of 100 when you sum all the weights of their levels. All enchantments have a quality of level-1.
- See also
- PowerDistribution::GetDistribution(int, int)
The documentation for this class was generated from the following file: