net.minecraft.entity

public class FallingBlockEntity

extends Entity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible

net.minecraft.world.entity.item.FallingBlockEntity
net.minecraft.world.entity.item.FallingBlockEntity
net.minecraft.class_1540
net.minecraft.entity.FallingBlockEntity

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_36333
LOGGER
private static final BlockState
DEFAULT_BLOCK_STATE
DEFAULT_BLOCK_STATE
field_57654
DEFAULT_BLOCK_STATE
private static final int
DEFAULT_TIME
DEFAULT_TIME
field_57655
DEFAULT_TIME
private static final float
DEFAULT_FALL_DAMAGE_PER_DISTANCE
DEFAULT_FALL_DAMAGE_PER_DISTANCE
field_57656
DEFAULT_FALL_HURT_AMOUNT
private static final int
DEFAULT_MAX_FALL_DAMAGE
DEFAULT_MAX_FALL_DAMAGE
field_57657
DEFAULT_FALL_HURT_MAX
private static final boolean
DEFAULT_DROP_ITEM
DEFAULT_DROP_ITEM
field_57658
DEFAULT_DROP_ITEM
private static final boolean
DEFAULT_CANCEL_DROP
DEFAULT_CANCEL_DROP
field_57659
DEFAULT_DESTROYED_ON_LANDING
private BlockState
blockState
blockState
field_7188
blockState
public int
time
time
field_7192
timeFalling
public boolean
dropItem
dropItem
field_7193
dropItem
private boolean
cancelDrop
cancelDrop
field_7189
destroyedOnLanding
private boolean
hurtEntities
hurtEntities
field_7191
hurtEntities
private int
fallDamageMax
fallDamageMax
field_7190
fallHurtMax
private float
fallDamagePerDistance
fallDamagePerDistance
field_7187
fallHurtAmount
public NbtCompound
blockData
blockData
field_7194
blockEntityData
public boolean
forceTickAfterTeleportToDuplicate
forceTickAfterTeleportToDuplicate
field_52015
shouldDupe
protected static final TrackedData<BlockPos>
DATA_START_POS
DATA_START_POS
field_7195
BLOCK_POS

Constructor summary

ModifierConstructor
public (EntityType<? extends FallingBlockEntity> type, World level)
private (World world, double x, double y, double z, BlockState blockState)

Method summary

Modifier and TypeMethod
public static FallingBlockEntity
fall(Level level, BlockPos pos, BlockState state)
fall(Level level, BlockPos pos, BlockState state)
method_40005(class_1937 arg0, class_2338 arg1, class_2680 arg2)
spawnFromBlock(World world, BlockPos pos, BlockState state)
public boolean
isAttackable()
isAttackable()
method_5732()
isAttackable()
public final boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public void
setStartPos(BlockPos pos)
setStartPos(BlockPos pos)
method_6963(class_2338 arg0)
setFallingBlockPos(BlockPos pos)
public BlockPos
getStartPos()
getStartPos()
method_6964()
getFallingBlockPos()
protected Entity$MoveEffect
getMovementEmission()
getMovementEmission()
method_33570()
getMoveEffect()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
isPickable()
isPickable()
method_5863()
canHit()
protected double
getDefaultGravity()
getDefaultGravity()
method_7490()
getGravity()
public void
tick()
tick()
method_5773()
tick()
public void
callOnBrokenAfterFall(Block block, BlockPos pos)
callOnBrokenAfterFall(Block block, BlockPos pos)
method_32752(class_2248 arg0, class_2338 arg1)
onDestroyedOnLanding(Block block, BlockPos pos)
public boolean
causeFallDamage(double fallDistance, float damageModifier, DamageSource damageSource)
causeFallDamage(double fallDistance, float damageModifier, DamageSource damageSource)
method_5747(double arg0, float arg1, class_1282 arg2)
handleFallDamage(double arg0, float arg1, DamageSource arg2)
protected void
addAdditionalSaveData(ValueOutput output)
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
setHurtsEntities(float damagePerDistance, int damageMax)
setHurtsEntities(float damagePerDistance, int damageMax)
method_6965(float arg0, int arg1)
setHurtEntities(float fallHurtAmount, int fallHurtMax)
public void
disableDrop()
disableDrop()
method_49181()
setDestroyedOnLanding()
public boolean
displayFireAnimation()
displayFireAnimation()
method_5862()
doesRenderOnFire()
public void
fillCrashReportCategory(CrashReportCategory category)
fillCrashReportCategory(CrashReportCategory category)
method_5819(class_129 arg0)
populateCrashReport(CrashReportSection arg0)
public BlockState
getBlockState()
getBlockState()
method_6962()
getBlockState()
protected Text
getTypeName()
getTypeName()
method_23315()
getDefaultName()
public Packet<ClientPlayPacketListener>
getAddEntityPacket(ServerEntity serverEntity)
getAddEntityPacket(ServerEntity serverEntity)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
public void
recreateFromPacket(ClientboundAddEntityPacket packet)
recreateFromPacket(ClientboundAddEntityPacket packet)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public Entity
teleport(TeleportTransition transition)
teleport(TeleportTransition transition)
method_5731(class_5454 arg0)
teleportTo(TeleportTarget arg0)