-
Nested Class Summary
Nested Classes
-
Method Summary
Gets the
BlockState
the falling block is representing.
Gets whether this falling block can drop as an item if it lands in a
way that it can not be placed.
Gets whether this falling block will damage entities where it lands.
Gets whether this falling block will try to place itself where
it lands.
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.
Gets the maximum damage the
FallingBlock
can deal to another
entity for falling on the entity.
Gets the
Entity
that is the source.
-
Method Details
-
builder
- Returns:
- A new builder
-
-
fallDamagePerBlock
- Returns:
- The immutable value for the damage per block of falling
-
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
Gets the
BlockState
the falling block is representing.
- Returns:
- The falling block's block state
-
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
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
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
Gets whether this falling block will damage entities where it lands.
- Returns:
- Whether this falling block will damage entities where it lands