-
-
Notifications
You must be signed in to change notification settings - Fork 5
IDistribution
Yeelp edited this page Jan 29, 2024
·
1 revision
An IDistribution is a CraftTweaker representation of the root of DDD's distributions.
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be afe than sorry an add the import
import mods.ddd.distributions.IDistribution;| ZenGetter | Return Type | Notes |
|---|---|---|
| categories | List<IDDDDamageType> | This returns a list of DDD damage types that have defined weights in this distribution, even if the defined weight is zero. |
boolean isDefault();
- Returns
trueif the distribution is a default distribution. Default distributions are given to items with no explicit distributions set in the config. These distributions can not be changed and attempting to do so will cause DDD to throw an exception and the game will likely crash with anUnsupportedOperationException.