public interface ImmutableFallingBlockData extends ImmutableDataManipulator<ImmutableFallingBlockData,FallingBlockData>
ImmutableDataManipulator
for a FallingBlock
with all
relative information associated, such as the BlockState
, the
fallDamagePerBlock()
, etc.Modifier and Type | Method and Description |
---|---|
ImmutableValue<BlockState> |
blockState()
Gets the
BlockState the falling block is representing. |
ImmutableValue<Boolean> |
canDropAsItem()
Gets whether this falling block can drop as an item if it lands in a
way that it can not be placed.
|
ImmutableValue<Boolean> |
canHurtEntities()
Gets whether this falling block will damage entities where it lands.
|
ImmutableValue<Boolean> |
canPlaceAsBlock()
Gets whether this falling block will try to place itself where
it lands.
|
ImmutableValue<Double> |
fallDamagePerBlock()
Gets the
ImmutableValue for the damage to deal per block
the FallingBlock has fallen. |
ImmutableValue<Integer> |
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.
|
ImmutableValue<Double> |
maxFallDamage()
Gets the maximum damage the
FallingBlock can deal to another
entity for falling on the entity. |
asMutable, copy, with, with
getContentVersion, toContainer
ImmutableValue<Double> fallDamagePerBlock()
ImmutableValue
for the damage to deal per block
the FallingBlock
has fallen.ImmutableValue<Double> maxFallDamage()
FallingBlock
can deal to another
entity for falling on the entity.ImmutableValue<BlockState> blockState()
BlockState
the falling block is representing.ImmutableValue<Boolean> canPlaceAsBlock()
ImmutableValue<Boolean> canDropAsItem()
ImmutableValue<Integer> fallTime()
ImmutableValue<Boolean> canHurtEntities()