Interface BlockDamageSource
-
- All Superinterfaces:
DamageSource
public interface BlockDamageSource extends DamageSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BlockDamageSource.Builder
-
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 BlockSnapshot
blockSnapshot()
Gets theBlockSnapshot
of the source.static BlockDamageSource.Builder
builder()
Creates a newbuilder
for building aBlockDamageSource
.ServerLocation
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 Detail
-
builder
static BlockDamageSource.Builder 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
-
-