net.minecraft.world.entity.decoration

public abstract class HangingEntity

extends BlockAttachedEntity

All mapped superinterfaces:

SyncedDataHolder, DebugValueSource, Nameable, ItemOwner, SlotProvider, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter

cyi
net.minecraft.world.entity.decoration.HangingEntity
net.minecraft.class_1530
net.minecraft.entity.decoration.AbstractDecorationEntity

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Direction>
b
DATA_DIRECTION
field_60665
FACING
private static final Direction
c
DEFAULT_DIRECTION
field_60666
DEFAULT_FACING

Constructor summary

ModifierConstructor
protected (EntityType<? extends HangingEntity> arg0, Level arg1)
protected (EntityType<? extends HangingEntity> type, Level world, BlockPos pos)

Method summary

Modifier and TypeMethod
protected void
a(ama$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
a(alw<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public Direction
df()
getDirection()
method_5735()
getHorizontalFacing()
protected void
a(iz arg0)
setDirectionRaw(Direction arg0)
method_71770(class_2350 arg0)
setFacingInternal(Direction facing)
protected void
b(iz arg0)
setDirection(Direction arg0)
method_6892(class_2350 arg0)
setFacing(Direction facing)
protected void
e()
recalculateBoundingBox()
method_6895()
updateAttachmentPosition()
protected abstract AABB
a(is arg0, iz arg1)
calculateBoundingBox(BlockPos arg0, Direction arg1)
method_59943(class_2338 arg0, class_2350 arg1)
calculateBoundingBox(BlockPos pos, Direction side)
public boolean
f()
survives()
method_6888()
canStayAttached()
protected AABB
s()
calculateSupportBox()
method_59941()
getAttachmentBox()
protected boolean
a(boolean arg0)
canCoexist(boolean arg0)
method_74095(boolean arg0)
hasNoIntersectingDecoration(boolean skipTypeCheck)
protected AABB
u()
getPopBox()
method_74963()
method_74963()
public abstract void
v()
playPlacementSound()
method_6894()
onPlace()
public ItemEntity
a(axf arg0, dkm arg1, float arg2)
spawnAtLocation(ServerLevel arg0, ItemStack arg1, float arg2)
method_5699(class_3218 arg0, class_1799 arg1, float arg2)
dropStack(ServerWorld arg0, ItemStack arg1, float arg2)
public float
a(efe arg0)
rotate(Rotation arg0)
method_5832(class_2470 arg0)
applyRotation(BlockRotation arg0)
public float
a(edn arg0)
mirror(Mirror arg0)
method_5763(class_2415 arg0)
applyMirror(BlockMirror arg0)