Interface BlockDamageSource
-
- All Superinterfaces:
DamageSource
public interface BlockDamageSource extends DamageSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceBlockDamageSource.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 BlockSnapshotblockSnapshot()Gets theBlockSnapshotof the source.static BlockDamageSource.Builderbuilder()Creates a newbuilderfor building aBlockDamageSource.ServerLocationlocation()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 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
-
-