Changes

Line 49: Line 49:  
Create a new class that extends from the Class you created in the Section above and override the abstract function in there you can begin to create your Lootables.
 
Create a new class that extends from the Class you created in the Section above and override the abstract function in there you can begin to create your Lootables.
   −
=== The LootPool Builder ===
+
===The LootPool Builder===
This is where you actually make a loottable. You start with a <code>LootPool.Builder</code> and add the necessary attributes to it.
+
This is where you actually make a loottable. You start with a an empty<code>LootPool</code>and add the necessary attributes to it.
 
* <code>.name</code> is used for the pool name.
 
* <code>.name</code> is used for the pool name.
 
* <code>.setRolls</code> is used for the amount.
 
* <code>.setRolls</code> is used for the amount.
Line 71: Line 71:  
                 );
 
                 );
 
         LootTable.lootTable().withPool(builder).setParamSet(...);
 
         LootTable.lootTable().withPool(builder).setParamSet(...);
</syntaxhighlight>
+
</syntaxhighlight>[[Category:Data Generation]]
[[Category:Data Generation]]
 
25

edits