public interface FallingBlockData extends DataManipulator<FallingBlockData,ImmutableFallingBlockData>
FallingBlock
.Modifier and Type | Method and Description |
---|---|
Value<BlockState> |
blockState()
Gets the
BlockState the falling block is representing. |
Value<Boolean> |
canDropAsItem()
Gets whether this falling block can drop as an item if it lands in a
way that it can not be placed.
|
Value<Boolean> |
canHurtEntities()
Gets whether this falling block will damage entities where it lands.
|
Value<Boolean> |
canPlaceAsBlock()
Gets whether this falling block will try to place itself where
it lands.
|
Value<Double> |
fallDamagePerBlock()
Gets the
Value for the damage to deal per block
the FallingBlock has fallen. |
Value<Integer> |
fallTime()
Gets the number of ticks the block has been falling for.
|
Value<Double> |
maxFallDamage()
Gets the maximum damage the
FallingBlock can deal to another
entity for falling on the entity. |
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
Value<Double> fallDamagePerBlock()
Value
for the damage to deal per block
the FallingBlock
has fallen.Keys.FALL_DAMAGE_PER_BLOCK
Value<Double> maxFallDamage()
FallingBlock
can deal to another
entity for falling on the entity.Keys.MAX_FALL_DAMAGE
Value<BlockState> blockState()
BlockState
the falling block is representing.Keys.FALLING_BLOCK_STATE
Value<Boolean> canPlaceAsBlock()
Keys.CAN_PLACE_AS_BLOCK
Value<Boolean> canDropAsItem()
Keys.CAN_DROP_AS_ITEM
Value<Integer> fallTime()
Keys.FALL_TIME
Value<Boolean> canHurtEntities()
Keys.FALLING_BLOCK_CAN_HURT_ENTITIES