Interface DamageType
-
- All Superinterfaces:
DefaultedRegistryValue
,Nameable
@CatalogedBy(DamageTypes.class) public interface DamageType extends DefaultedRegistryValue, Nameable
ADamageType
is a type of "grouping" forDamageSource
s since aDamageSource
instance can be inherently different from anotherDamageSource
by virtue of theObject
backing the source. Furthermore, it is impossible to refer toDamageSource
s statically due to the nature of constructing them. It is possible however, that the parentObject
being referred to as the "damage source" can damage anEntity
with varyingDamageType
s depending on the circumstances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
DamageType.Builder
A builder to createDamageType
s.
-
Method Summary
Static Methods Modifier and Type Method Description static DamageType.Builder
builder()
Creates a newbuilder
to build aDamageType
.-
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
-
-
-
Method Detail
-
builder
static DamageType.Builder builder()
Creates a newbuilder
to build aDamageType
.- Returns:
- A new builder
-
-