Interface IndirectEntityDamageSource
- All Superinterfaces:
DamageSource
,EntityDamageSource
- All Known Implementing Classes:
AbstractIndirectEntityDamageSource
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
IndirectEntityDamageSource.AbstractBuilder<T extends IndirectEntityDamageSource,
B extends IndirectEntityDamageSource.AbstractBuilder<T, B>> static interface
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 Nested classes/interfaces inherited from interface org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource
EntityDamageSource.EntityDamageSourceBuilder<T extends EntityDamageSource,
B extends EntityDamageSource.EntityDamageSourceBuilder<T, B>> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a newIndirectEntityDamageSource.Builder
for constructingIndirectEntityDamageSource
s.Gets theEntity
that is indirectly using theEntityDamageSource.source()
to cause damage.Methods inherited from interface org.spongepowered.api.event.cause.entity.damage.source.DamageSource
doesAffectCreative, exhaustion, isAbsolute, isBypassingArmor, isExplosive, isFire, isMagic, isScaledByDifficulty, type
Methods inherited from interface org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource
source
-
Method Details
-
builder
Creates a newIndirectEntityDamageSource.Builder
for constructingIndirectEntityDamageSource
s.- Returns:
- A new builder
-
indirectSource
Entity indirectSource()Gets theEntity
that is indirectly using theEntityDamageSource.source()
to cause damage.- Returns:
- The indirect source
-