net.minecraft.world.entity.decoration

public class Painting

extends HangingEntity implements VariantHolder<Holder<PaintingVariant>>

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, VariantHolder

clw
net.minecraft.world.entity.decoration.Painting
net.minecraft.class_1534
net.minecraft.entity.decoration.painting.PaintingEntity
net.minecraft.world.entity.decoration.EntityPainting

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Holder<PaintingVariant>>
g
DATA_PAINTING_VARIANT_ID
field_38941
VARIANT
public static final com.mojang.serialization.MapCodec<Holder<PaintingVariant>>
d
VARIANT_MAP_CODEC
field_49238
VARIANT_MAP_CODEC
public static final com.mojang.serialization.Codec<Holder<PaintingVariant>>
e
VARIANT_CODEC
field_49239
VARIANT_ENTRY_CODEC
public static final float
f
DEPTH
field_51595
field_51595

Constructor summary

ModifierConstructor
public (EntityType<? extends Painting> arg0, Level arg1)
private (Level world, BlockPos pos)
public (Level world, BlockPos pos, Direction direction, Holder<PaintingVariant> variant)

Method summary

Modifier and TypeMethod
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
a(alc<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public void
b(jq<clx> arg0)
setVariant(Holder<PaintingVariant> arg0)
method_43402(class_6880<class_1535> arg0)
setVariant(RegistryEntry<PaintingVariant> variant)
public Holder<PaintingVariant>
s()
getVariant()
method_43404()
getVariant()
public static Optional<Painting>
a(dhi arg0, jh arg1, jm arg2)
create(Level arg0, BlockPos arg1, Direction arg2)
method_43401(class_1937 arg0, class_2338 arg1, class_2350 arg2)
placePainting(World world, BlockPos pos, Direction facing)
private static int
c(jq<clx> arg0)
variantArea(Holder<PaintingVariant> arg0)
method_43403(class_6880<class_1535> arg0)
getSize(RegistryEntry<PaintingVariant> variant)
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
protected AABB
a(jh arg0, jm arg1)
calculateBoundingBox(BlockPos arg0, Direction arg1)
method_59943(class_2338 arg0, class_2350 arg1)
calculateBoundingBox(BlockPos arg0, Direction arg1)
private double
b(int arg0)
offsetForPaintingSize(int arg0)
method_59946(int arg0)
getOffset(int length)
public void
a(ash arg0, bvk arg1)
dropItem(ServerLevel arg0, Entity arg1)
method_6889(class_3218 arg0, class_1297 arg1)
onBreak(ServerWorld arg0, Entity arg1)
public void
z()
playPlacementSound()
method_6894()
onPlace()
public void
b(double arg0, double arg1, double arg2, float arg3, float arg4)
moveTo(double arg0, double arg1, double arg2, float arg3, float arg4)
method_5808(double arg0, double arg1, double arg2, float arg3, float arg4)
refreshPositionAndAngles(double arg0, double arg1, double arg2, float arg3, float arg4)
public void
a(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
lerpTo(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
method_5759(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
updateTrackedPositionAndAngles(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
public Vec3
dv()
trackingPosition()
method_43390()
getSyncedPos()
public Packet<ClientGamePacketListener>
a(asf arg0)
getAddEntityPacket(ServerEntity arg0)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
public void
a(acs arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public ItemStack
dJ()
getPickResult()
method_31480()
getPickBlockStack()