net.minecraft.world.entity.decoration

public class Painting

extends HangingEntity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter

cmi
net.minecraft.world.entity.decoration.Painting
net.minecraft.class_1534
net.minecraft.entity.decoration.painting.PaintingEntity

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Holder<PaintingVariant>>
e
DATA_PAINTING_VARIANT_ID
field_38941
VARIANT
private static final com.mojang.serialization.Codec<Holder<PaintingVariant>>
f
VARIANT_CODEC
field_49239
VARIANT_ENTRY_CODEC
public static final float
d
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(akk$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
a(akg<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
private void
b(js<cmj> arg0)
setVariant(Holder<PaintingVariant> arg0)
method_43402(class_6880<class_1535> arg0)
setVariant(RegistryEntry<PaintingVariant> variant)
public Holder<PaintingVariant>
m()
getVariant()
method_43404()
method_43404()
public <T> T
a(kw<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
a(kr arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_66649(class_9473 arg0)
method_66649(ComponentsAccess arg0)
protected <T> boolean
d(kw<T> arg0, T arg1)
applyImplicitComponent(DataComponentType<T> arg0, T arg1)
method_66654(class_9331<T> arg0, T arg1)
method_66654(ComponentType<T> arg0, T arg1)
public static Optional<Painting>
a(dhp arg0, jj arg1, jo 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(js<cmj> arg0)
variantArea(Holder<PaintingVariant> arg0)
method_43403(class_6880<class_1535> arg0)
getSize(RegistryEntry<PaintingVariant> variant)
public void
b(tw arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tw arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
protected AABB
a(jj arg0, jo 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(arn arg0, bvs arg1)
dropItem(ServerLevel arg0, Entity arg1)
method_6889(class_3218 arg0, class_1297 arg1)
onBreak(ServerWorld arg0, Entity arg1)
public void
v()
playPlacementSound()
method_6894()
onPlace()
public void
b(double arg0, double arg1, double arg2, float arg3, float arg4)
snapTo(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 Vec3
du()
trackingPosition()
method_43390()
getSyncedPos()
public Packet<ClientGamePacketListener>
a(arl arg0)
getAddEntityPacket(ServerEntity arg0)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
public void
a(abs arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public ItemStack
dI()
getPickResult()
method_31480()
getPickBlockStack()