Interface BlockDamageSource.Builder
-
- All Superinterfaces:
Buildable.Builder<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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockDamageSource.Builder
block(BlockSnapshot blockState)
Sets theBlockSnapshot
to act as the "damage source".BlockDamageSource.Builder
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 Detail
-
block
BlockDamageSource.Builder block(ServerLocation location)
Sets theServerLocation
to use as a "source".- Parameters:
location
- The location of the block as the damage source- Returns:
- This builder, for chaining
-
block
BlockDamageSource.Builder block(BlockSnapshot blockState)
Sets theBlockSnapshot
to act as the "damage source".- Parameters:
blockState
- The block snapshot to use as the damage source- Returns:
- This builder, for chaining
-
-