Interface FallingBlockDamageSource

    • Method Detail

      • 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
      • 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