net.minecraft.world.entity.decoration

public class Painting

extends HangingEntity implements VariantHolder<Holder<PaintingVariant>>

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, VariantHolder

cje
net.minecraft.world.entity.decoration.Painting
net.minecraft.class_1534
net.minecraft.entity.decoration.painting.PaintingEntity
net.minecraft.src.C_974_
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
f_218870_
private static final ResourceKey<PaintingVariant>
h
DEFAULT_VARIANT
field_38942
DEFAULT_VARIANT
f_218871_
public static final com.mojang.serialization.MapCodec<Holder<PaintingVariant>>
e
VARIANT_MAP_CODEC
field_49238
VARIANT_MAP_CODEC
f_314801_
public static final com.mojang.serialization.Codec<Holder<PaintingVariant>>
f
VARIANT_CODEC
field_49239
VARIANT_ENTRY_CODEC
f_316802_

Constructor summary

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

Method summary

Modifier and TypeMethod
private static Holder<PaintingVariant>
s()
getDefaultVariant()
method_43405()
getDefaultVariant()
m_218902_()
protected void
a(ako$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public void
a(akk<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
m_7350_(C_5225_<?> arg0)
public void
b(ji<cjf> arg0)
setVariant(Holder<PaintingVariant> arg0)
method_43402(class_6880<class_1535> arg0)
setVariant(RegistryEntry<PaintingVariant> variant)
m_28464_(C_203228_<C_213053_> arg0)
public Holder<PaintingVariant>
p()
getVariant()
method_43404()
getVariant()
m_28554_()
public static Optional<Painting>
a(dca arg0, iz arg1, je 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)
m_218887_(C_1596_ p_218888_, C_4675_ p_218889_, C_4687_ p_218890_)
private static int
c(ji<cjf> arg0)
variantArea(Holder<PaintingVariant> arg0)
method_43403(class_6880<class_1535> arg0)
getSize(RegistryEntry<PaintingVariant> variant)
m_218898_(C_203228_<C_213053_> p_218899_)
public void
b(us arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(us arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public static void
a(us arg0, ji<cjf> arg1)
storeVariant(CompoundTag arg0, Holder<PaintingVariant> arg1)
method_48928(class_2487 arg0, class_6880<class_1535> arg1)
writeVariantToNbt(NbtCompound nbt, RegistryEntry<PaintingVariant> variant)
m_269220_(C_4917_ p_270928_, C_203228_<C_213053_> p_270667_)
public int
A()
getWidth()
method_6897()
getWidthPixels()
m_7076_()
public int
B()
getHeight()
method_6891()
getHeightPixels()
m_7068_()
public void
b(bsw arg0)
dropItem(Entity arg0)
method_6889(class_1297 arg0)
onBreak(Entity arg0)
m_5553_(C_507_ arg0)
public void
C()
playPlacementSound()
method_6894()
onPlace()
m_7084_()
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)
m_7678_(double p_31930_, double p_31932_, 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)
m_6453_(double p_31918_, double p_31920_, double p_31922_, float arg3, float arg4, int arg5)
public Vec3
do()
trackingPosition()
method_43390()
getSyncedPos()
m_213870_()
public Packet<ClientGamePacketListener>
dl()
getAddEntityPacket()
method_18002()
createSpawnPacket()
m_5654_()
public void
a(acj arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
m_141965_(C_5032_ arg0)
public ItemStack
dC()
getPickResult()
method_31480()
getPickBlockStack()
m_142340_()