net.minecraft.entity.decoration

public abstract class BlockAttachedEntity

extends Entity

All mapped superinterfaces:

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

net.minecraft.world.entity.decoration.BlockAttachedEntity
net.minecraft.class_9691
net.minecraft.entity.decoration.BlockAttachedEntity

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_51590
LOGGER
private int
checkInterval
field_51591
attachCheckTimer
protected BlockPos
pos
field_51589
attachedBlockPos

Constructor summary

ModifierConstructor
protected (EntityType<? extends BlockAttachedEntity> type, World level)
protected (EntityType<? extends BlockAttachedEntity> type, World world, BlockPos attachedBlockPos)

Method summary

Modifier and TypeMethod
protected abstract void
recalculateBoundingBox()
method_6895()
updateAttachmentPosition()
public void
tick()
method_5773()
tick()
public abstract boolean
survives()
method_6888()
canStayAttached()
public boolean
isPickable()
method_5863()
canHit()
public boolean
skipAttackInteraction(Entity source)
method_5698(class_1297 arg0)
handleAttack(Entity arg0)
public boolean
hurtClient(DamageSource source)
method_5643(class_1282 arg0)
clientDamage(DamageSource arg0)
public 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 boolean
ignoreExplosion(Explosion explosion)
method_5659(class_1927 arg0)
isImmuneToExplosion(Explosion arg0)
public void
move(MoverType moverType, Vec3 delta)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
public void
push(double xa, double ya, double za)
method_5762(double arg0, double arg1, double arg2)
addVelocity(double arg0, double arg1, double 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 abstract void
dropItem(ServerLevel level, Entity causedBy)
method_6889(class_3218 arg0, class_1297 arg1)
onBreak(ServerWorld world, Entity breaker)
protected boolean
repositionEntityAfterLoad()
method_5638()
shouldSetPositionOnLoad()
public void
setPos(double x, double y, double z)
method_5814(double arg0, double arg1, double arg2)
setPosition(double arg0, double arg1, double arg2)
public BlockPos
getPos()
method_59940()
getAttachedBlockPos()
public void
thunderHit(ServerLevel level, LightningBolt lightningBolt)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
public void
refreshDimensions()
method_18382()
calculateDimensions()