Interface EntityDamageSource
-
- All Superinterfaces:
DamageSource
- All Known Subinterfaces:
FallingBlockDamageSource
,IndirectEntityDamageSource
- All Known Implementing Classes:
AbstractEntityDamageSource
,AbstractIndirectEntityDamageSource
public interface EntityDamageSource extends DamageSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
EntityDamageSource.Builder
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
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static EntityDamageSource.Builder
builder()
Creates a newEntityDamageSource.Builder
for building anEntityDamageSource
.Entity
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 Detail
-
builder
static EntityDamageSource.Builder builder()
Creates a newEntityDamageSource.Builder
for building anEntityDamageSource
.- Returns:
- A new builder
-
-