IDistribution - yeelp/Distinct-Damage-Descriptions GitHub Wiki
An IDistribution is a CraftTweaker representation of the root of DDD's distributions.
Importing the package
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;
Methods
ZenGetters
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. |
ZenMethods
boolean isDefault();
- Returns
true
if 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
.