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