Interface DamageType
-
- All Superinterfaces:
DefaultedRegistryValue,Nameable
@CatalogedBy(DamageTypes.class) public interface DamageType extends DefaultedRegistryValue, Nameable
ADamageTypeis a type of "grouping" forDamageSources since aDamageSourceinstance can be inherently different from anotherDamageSourceby virtue of theObjectbacking the source. Furthermore, it is impossible to refer toDamageSources statically due to the nature of constructing them. It is possible however, that the parentObjectbeing referred to as the "damage source" can damage anEntitywith varyingDamageTypes depending on the circumstances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDamageType.BuilderA builder to createDamageTypes.
-
Method Summary
Static Methods Modifier and Type Method Description static DamageType.Builderbuilder()Creates a newbuilderto build aDamageType.-
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
-
-
-
Method Detail
-
builder
static DamageType.Builder builder()
Creates a newbuilderto build aDamageType.- Returns:
- A new builder
-
-