public static interface BlockDamageSource.Builder extends DamageSource.DamageSourceBuilder<BlockDamageSource,BlockDamageSource.Builder>
| Modifier and Type | Method and Description |
|---|---|
BlockDamageSource.Builder |
block(BlockSnapshot blockState)
Sets the
BlockSnapshot to act as the "damage source". |
BlockDamageSource.Builder |
block(Location<World> location)
Sets the
Location to use as a "source". |
absolute, build, bypassesArmor, creative, exhaustion, explosion, magical, scalesWithDifficulty, typefrom, resetBlockDamageSource.Builder block(Location<World> location)
Location to use as a "source".location - The location of the block as the damage sourceBlockDamageSource.Builder block(BlockSnapshot blockState)
BlockSnapshot to act as the "damage source".blockState - The block snapshot to use as the damage source