public interface FallingBlock extends Entity
Modifier and Type | Method and Description |
---|---|
default Value<BlockState> |
blockState()
Gets the
BlockState the falling block is representing. |
default 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.
|
default Value<Boolean> |
canHurtEntities()
Gets whether this falling block will damage entities where it lands.
|
default Value<Boolean> |
canPlaceAsBlock()
Gets whether this falling block will try to place itself where it lands.
|
default Value<Double> |
fallDamagePerBlock()
Gets the
Value for the damage to deal per block the
FallingBlock has fallen. |
default Value<Integer> |
fallTime()
Gets the time the block has been falling.
|
default FallingBlockData |
getFallingBlockData()
Gets a copy of the currently used
FallingBlockData . |
default Value<Double> |
maxFallDamage()
Gets the maximum damage the
FallingBlock can deal to another
entity for falling on the entity. |
addPassenger, canSee, clearPassengers, createArchetype, createSnapshot, damage, getBaseVehicle, getBoundingBox, getCreator, getNearbyEntities, getNearbyEntities, getNotifier, getPassengers, getRandom, getRotation, getScale, getTransform, getType, getVehicle, getVelocity, gravity, hasPassenger, isLoaded, isOnGround, isRemoved, remove, removePassenger, setCreator, setLocation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotationSafely, setLocationAndRotationSafely, setLocationSafely, setNotifier, setRotation, setScale, setTransform, setTransformSafely, setVehicle, setVelocity, transferToWorld, transferToWorld, transferToWorld, transferToWorld
getUniqueId
getLocation, getWorld
setRawData, validateRawData
getContentVersion, toContainer
getApplicableProperties, getProperty
copyFrom, copyFrom, get, getContainers, getOrCreate, offer, offer, offer, offer, offer, offer, remove, remove, remove, require, supports, transform, tryOffer, tryOffer, tryOffer, tryOffer, undo
copy, get, getKeys, getOrElse, getOrNull, getValue, getValues, require, supports, supports
getTranslation
default FallingBlockData getFallingBlockData()
FallingBlockData
.default Value<Double> fallDamagePerBlock()
Value
for the damage to deal per block the
FallingBlock
has fallen.default Value<Double> maxFallDamage()
FallingBlock
can deal to another
entity for falling on the entity.default Value<BlockState> blockState()
BlockState
the falling block is representing.default Value<Boolean> canPlaceAsBlock()
default Value<Boolean> canDropAsItem()
default Value<Integer> fallTime()