Interface DamageType
- All Superinterfaces:
DefaultedRegistryValue
,Nameable
@CatalogedBy(DamageTypes.class)
public interface DamageType
extends DefaultedRegistryValue, Nameable
A
DamageType
is a type of "grouping" for DamageSource
s since
a DamageSource
instance can be inherently different from another
DamageSource
by virtue of the Object
backing the source.
Furthermore, it is impossible to refer to DamageSource
s statically
due to the nature of constructing them. It is possible however, that the
parent Object
being referred to as the "damage source" can damage
an Entity
with varying DamageType
s depending on the
circumstances.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DamageType.Builder
builder()
Creates a newbuilder
to build aDamageType
.Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
builder
Creates a newbuilder
to build aDamageType
.- Returns:
- A new builder
-