Interface BlockDamageSource.Builder
- All Superinterfaces:
AbstractBuilder<BlockDamageSource>
,Builder<BlockDamageSource,
,BlockDamageSource.Builder> CopyableBuilder<BlockDamageSource,
,BlockDamageSource.Builder> DamageSource.DamageSourceBuilder<BlockDamageSource,
,BlockDamageSource.Builder> ResettableBuilder<BlockDamageSource,
BlockDamageSource.Builder>
- Enclosing interface:
- BlockDamageSource
public static interface BlockDamageSource.Builder
extends DamageSource.DamageSourceBuilder<BlockDamageSource,BlockDamageSource.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionblock
(BlockSnapshot blockState) Sets theBlockSnapshot
to act as the "damage source".block
(ServerLocation location) Sets theServerLocation
to use as a "source".Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
Methods inherited from interface org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder
absolute, build, bypassesArmor, creative, exhaustion, explosion, fire, magical, scalesWithDifficulty, type, type
-
Method Details
-
block
Sets theServerLocation
to use as a "source".- Parameters:
location
- The location of the block as the damage source- Returns:
- This builder, for chaining
-
block
Sets theBlockSnapshot
to act as the "damage source".- Parameters:
blockState
- The block snapshot to use as the damage source- Returns:
- This builder, for chaining
-