Fallable
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Description
Members
getFallDamageSource(entity as Entity) as DamageSource
Gets the damage source used when this block falls on an entity.
Returns: The damage source used when this block falls on an entity.
Return Type:
DamageSource
onBrokenAfterFall(level as Level, pos as BlockPos, fallingEntity as FallingBlockEntity)
Parameters:
fallingEntity: FallingBlockEntity
Type: FallingBlockEntity
onLand(level as Level, pos as BlockPos, fallingState as BlockState, placeState as BlockState, fallingEntity as FallingBlockEntity)
Parameters:
fallingState: BlockState
Type: BlockState
placeState: BlockState
Type: BlockState
fallingEntity: FallingBlockEntity
Type: FallingBlockEntity