Interface EntityDamageSource
- All Superinterfaces:
DamageSource
- All Known Subinterfaces:
FallingBlockDamageSource
,IndirectEntityDamageSource
- All Known Implementing Classes:
AbstractEntityDamageSource
,AbstractIndirectEntityDamageSource
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
EntityDamageSource.EntityDamageSourceBuilder<T extends EntityDamageSource,
B extends EntityDamageSource.EntityDamageSourceBuilder<T, B>> Nested classes/interfaces inherited from interface org.spongepowered.api.event.cause.entity.damage.source.DamageSource
DamageSource.DamageSourceBuilder<T extends DamageSource,
B extends DamageSource.DamageSourceBuilder<T, B>>, DamageSource.Factory -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityDamageSource.Builder
builder()
Creates a newEntityDamageSource.Builder
for building anEntityDamageSource
.source()
Gets theEntity
that is the source.Methods inherited from interface org.spongepowered.api.event.cause.entity.damage.source.DamageSource
doesAffectCreative, exhaustion, isAbsolute, isBypassingArmor, isExplosive, isFire, isMagic, isScaledByDifficulty, type
-
Method Details
-
builder
Creates a newEntityDamageSource.Builder
for building anEntityDamageSource
.- Returns:
- A new builder
-
source
Entity source()Gets theEntity
that is the source.- Returns:
- The entity source
-