Interface BlockDamageSource
- All Superinterfaces:
DamageSource
-
Nested Class Summary
Nested ClassesNested 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 TypeMethodDescriptionGets theBlockSnapshotof the source.static BlockDamageSource.Builderbuilder()Creates a newbuilderfor building aBlockDamageSource.location()Gets the location of theBlockSnapshot.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 newbuilderfor building aBlockDamageSource.- Returns:
- A new builder
-
location
ServerLocation location()Gets the location of theBlockSnapshot.- Returns:
- The location of the block
-
blockSnapshot
BlockSnapshot blockSnapshot()Gets theBlockSnapshotof the source.- Returns:
- The block snapshot of the source
-