net.minecraft.world.entity.decoration

public abstract class HangingEntity

extends Entity

All mapped superinterfaces:

Nameable, CommandSource

bco
net.minecraft.world.entity.decoration.HangingEntity
net.minecraft.class_1530
net.minecraft.entity.decoration.AbstractDecorationEntity
net.minecraft.entity.item.HangingEntity
net.minecraft.server.v1_16_R3.EntityHanging

Field summary

Modifier and TypeField
protected static final Predicate<Entity>
b
HANGING_ENTITY
field_7098
PREDICATE
field_184524_c
private int
e
checkInterval
field_7097
obstructionCheckCounter
field_70520_f
protected BlockPos
c
pos
field_7100
attachmentPos
field_174861_a
blockPosition
protected Direction
d
direction
field_7099
facing
field_174860_b
direction

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
e()
defineSynchedData()
method_5693()
initDataTracker()
func_70088_a()
initDatawatcher()
protected void
a(gc arg0)
setDirection(Direction arg0)
method_6892(class_2350 arg0)
setFacing(Direction facing)
func_174859_a(Direction arg0)
setDirection(EnumDirection arg0)
protected void
g()
recalculateBoundingBox()
method_6895()
updateAttachmentPosition()
func_174856_o()
updateBoundingBox()
private double
a(int arg0)
offs(int arg0)
method_6893(int arg0)
method_6893(int arg0)
func_190202_a(int arg0)
public void
j()
tick()
method_5773()
tick()
func_70071_h_()
tick()
public boolean
h()
survives()
method_6888()
canStayAttached()
func_70518_d()
survives()
public boolean
aT()
isPickable()
method_5863()
collides()
func_70067_L()
isInteractable()
public boolean
t(aqa arg0)
skipAttackInteraction(Entity arg0)
method_5698(class_1297 arg0)
handleAttack(Entity arg0)
func_85031_j(Entity arg0)
public Direction
bZ()
getDirection()
method_5735()
getHorizontalFacing()
func_174811_aO()
getDirection()
public boolean
a(apk arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
func_70097_a(DamageSource arg0, float arg1)
damageEntity(DamageSource arg0, float arg1)
public void
a(aqr arg0, dcn arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
func_213315_a(MoverType arg0, Vector3d arg1)
move(EnumMoveType arg0, Vec3D arg1)
public void
i(double arg0, double arg1, double arg2)
push(double arg0, double arg1, double arg2)
method_5762(double arg0, double arg1, double arg2)
addVelocity(double arg0, double arg1, double arg2)
func_70024_g(double arg0, double arg1, double arg2)
public void
b(md arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
func_213281_b(CompoundNBT arg0)
saveData(NBTTagCompound arg0)
public void
a(md arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
func_70037_a(CompoundNBT arg0)
loadData(NBTTagCompound arg0)
public abstract int
i()
getWidth()
method_6897()
getWidthPixels()
func_82329_d()
getHangingWidth()
public abstract int
k()
getHeight()
method_6891()
getHeightPixels()
func_82330_g()
getHangingHeight()
public abstract void
a(aqa arg0)
dropItem(Entity arg0)
method_6889(class_1297 arg0)
onBreak(Entity entity)
func_110128_b(Entity arg0)
public abstract void
m()
playPlacementSound()
method_6894()
onPlace()
func_184523_o()
playPlaceSound()
public ItemEntity
a(bmb arg0, float arg1)
spawnAtLocation(ItemStack arg0, float arg1)
method_5699(class_1799 arg0, float arg1)
dropStack(ItemStack arg0, float arg1)
func_70099_a(ItemStack arg0, float arg1)
protected boolean
aV()
repositionEntityAfterLoad()
method_5638()
shouldSetPositionOnLoad()
func_142008_O()
public void
d(double arg0, double arg1, double arg2)
setPos(double arg0, double arg1, double arg2)
method_5814(double arg0, double arg1, double arg2)
setPosition(double arg0, double arg1, double arg2)
func_70107_b(double arg0, double arg1, double arg2)
setPosition(double arg0, double arg1, double arg2)
public BlockPos
n()
getPos()
method_6896()
getDecorationBlockPos()
func_174857_n()
getBlockPosition()
public float
a(bzm arg0)
rotate(Rotation arg0)
method_5832(class_2470 arg0)
applyRotation(BlockRotation arg0)
func_184229_a(Rotation arg0)
public float
a(byg arg0)
mirror(Mirror arg0)
method_5763(class_2415 arg0)
applyMirror(BlockMirror arg0)
func_184217_a(Mirror arg0)
public void
a(aag arg0, aql arg1)
thunderHit(ServerLevel arg0, LightningBolt arg1)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
func_241841_a(ServerWorld arg0, LightningBoltEntity arg1)
onLightningStrike(WorldServer arg0, EntityLightning arg1)
public void
x_()
refreshDimensions()
method_18382()
calculateDimensions()
func_213323_x_()
updateSize()