Interface EntityDamageSource
- All Superinterfaces:
DamageSource
- All Known Subinterfaces:
FallingBlockDamageSource,IndirectEntityDamageSource
- All Known Implementing Classes:
AbstractEntityDamageSource,AbstractIndirectEntityDamageSource
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceEntityDamageSource.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.Builderbuilder()Creates a newEntityDamageSource.Builderfor building anEntityDamageSource.source()Gets theEntitythat 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.Builderfor building anEntityDamageSource.- Returns:
- A new builder
-
source
Entity source()Gets theEntitythat is the source.- Returns:
- The entity source
-