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.class_1540
net.minecraft.entity.FallingBlockEntity

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_36333
LOGGER
private static final BlockState
DEFAULT_BLOCK_STATE
field_57654
DEFAULT_BLOCK_STATE
private static final int
DEFAULT_TIME
field_57655
DEFAULT_TIME
private static final float
DEFAULT_FALL_DAMAGE_PER_DISTANCE
field_57656
DEFAULT_FALL_HURT_AMOUNT
private static final int
DEFAULT_MAX_FALL_DAMAGE
field_57657
DEFAULT_FALL_HURT_MAX
private static final boolean
DEFAULT_DROP_ITEM
field_57658
DEFAULT_DROP_ITEM
private static final boolean
DEFAULT_CANCEL_DROP
field_57659
DEFAULT_DESTROYED_ON_LANDING
private BlockState
blockState
field_7188
blockState
public int
time
field_7192
timeFalling
public boolean
dropItem
field_7193
dropItem
private boolean
cancelDrop
field_7189
destroyedOnLanding
private boolean
hurtEntities
field_7191
hurtEntities
private int
fallDamageMax
field_7190
fallHurtMax
private float
fallDamagePerDistance
field_7187
fallHurtAmount
public NbtCompound
blockData
field_7194
blockEntityData
public boolean
forceTickAfterTeleportToDuplicate
field_52015
shouldDupe
protected static final TrackedData<BlockPos>
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)
method_40005(class_1937 arg0, class_2338 arg1, class_2680 arg2)
spawnFromBlock(World world, BlockPos pos, BlockState state)
public boolean
isAttackable()
method_5732()
isAttackable()
public final boolean
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)
method_6963(class_2338 arg0)
setFallingBlockPos(BlockPos pos)
public BlockPos
getStartPos()
method_6964()
getFallingBlockPos()
protected Entity$MoveEffect
getMovementEmission()
method_33570()
getMoveEffect()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
isPickable()
method_5863()
canHit()
protected double
getDefaultGravity()
method_7490()
getGravity()
public void
tick()
method_5773()
tick()
public void
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)
method_5747(double arg0, float arg1, class_1282 arg2)
handleFallDamage(double arg0, float arg1, DamageSource arg2)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
setHurtsEntities(float damagePerDistance, int damageMax)
method_6965(float arg0, int arg1)
setHurtEntities(float fallHurtAmount, int fallHurtMax)
public void
disableDrop()
method_49181()
setDestroyedOnLanding()
public boolean
displayFireAnimation()
method_5862()
doesRenderOnFire()
public void
fillCrashReportCategory(CrashReportCategory category)
method_5819(class_129 arg0)
populateCrashReport(CrashReportSection arg0)
public BlockState
getBlockState()
method_6962()
getBlockState()
protected Text
getTypeName()
method_23315()
getDefaultName()
public Packet<ClientPlayPacketListener>
getAddEntityPacket(ServerEntity serverEntity)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
public void
recreateFromPacket(ClientboundAddEntityPacket packet)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public Entity
teleport(TeleportTransition transition)
method_5731(class_5454 arg0)
teleportTo(TeleportTarget arg0)
public boolean
canSimulateMovement()
method_66249()
canMoveVoluntarily()
private static void
lambda$causeFallDamage$0(DamageSource arg0, float arg1, Entity arg2)
method_32879(class_1282 arg0, float arg1, class_1297 arg2)
method_32879(DamageSource arg0, float arg1, Entity entity)
private static void
lambda$tick$0(CompoundTag arg0, String arg1, Tag arg2)
method_68272(class_2487 arg0, String arg1, class_2520 arg2)
method_68272(NbtCompound arg0, String arg1, NbtElement arg2)