Interface FallingBlockDamageSource

All Superinterfaces:
DamageSource, EntityDamageSource

public interface FallingBlockDamageSource extends EntityDamageSource
  • Method Details

    • builder

      Creates a new FallingBlockDamageSource.Builder for constructing a new FallingBlockDamageSource.
      Returns:
      A new builder
    • source

      FallingBlock source()
      Description copied from interface: EntityDamageSource
      Gets the Entity that is the source.
      Specified by:
      source in interface EntityDamageSource
      Returns:
      The entity source
    • fallDamagePerBlock

      default Value.Immutable<Double> fallDamagePerBlock()
      Gets the Value.Immutable for the damage to deal per block the FallingBlock has fallen.
      Returns:
      The immutable value for the damage per block of falling
    • maxFallDamage

      default Value.Immutable<Double> maxFallDamage()
      Gets the maximum damage the FallingBlock can deal to another entity for falling on the entity.
      Returns:
      The maximum damage the block can deal
    • blockState

      default Value.Immutable<BlockState> blockState()
      Gets the BlockState the falling block is representing.
      Returns:
      The falling block's block state
    • canPlaceAsBlock

      default Value.Immutable<Boolean> canPlaceAsBlock()
      Gets whether this falling block will try to place itself where it lands.
      Returns:
      True if this block will attempt to place itself when it lands
    • canDropAsItem

      default Value.Immutable<Boolean> canDropAsItem()
      Gets whether this falling block can drop as an item if it lands in a way that it can not be placed.
      Returns:
      Whether this falling block can drop as an item
    • fallTime

      default Value.Immutable<Ticks> fallTime()
      Gets the time the block has been falling if spawning a entity in air this will need to be set to 1 or it will be instantly removed.
      Returns:
      The time the block has been falling
    • canHurtEntities

      default Value.Immutable<Boolean> canHurtEntities()
      Gets whether this falling block will damage entities where it lands.
      Returns:
      Whether this falling block will damage entities where it lands