net.minecraft.world.entity.decoration

public class ItemFrame

extends HangingEntity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder

cja
net.minecraft.world.entity.decoration.ItemFrame
net.minecraft.class_1533
net.minecraft.entity.decoration.ItemFrameEntity
net.minecraft.src.C_970_
net.minecraft.world.entity.decoration.EntityItemFrame

Field summary

Modifier and TypeField
private static final EntityDataAccessor<ItemStack>
f
DATA_ITEM
field_7130
ITEM_STACK
f_31757_
private static final EntityDataAccessor<Integer>
g
DATA_ROTATION
field_7132
ROTATION
f_31758_
public static final int
e
NUM_ROTATIONS
field_30454
field_30454
f_149619_
private static final float
h
DEPTH
field_51592
field_51592
f_336845_
private static final float
i
WIDTH
field_51593
field_51593
f_337015_
private static final float
j
HEIGHT
field_51594
field_51594
f_336712_
private float
k
dropChance
field_7129
itemDropChance
f_31754_
private boolean
l
fixed
field_22476
fixed
f_31755_

Constructor summary

ModifierConstructor
public (EntityType<? extends ItemFrame> p_31762_, Level arg1)
public (Level world, BlockPos pos, Direction facing)
public (EntityType<? extends ItemFrame> type, Level world, BlockPos pos, Direction facing)

Method summary

Modifier and TypeMethod
protected void
a(aka$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
protected void
a(ji arg0)
setDirection(Direction arg0)
method_6892(class_2350 arg0)
setFacing(Direction arg0)
m_6022_(C_4687_ arg0)
protected AABB
a(jd arg0, ji arg1)
calculateBoundingBox(BlockPos arg0, Direction arg1)
method_59943(class_2338 arg0, class_2350 arg1)
calculateBoundingBox(BlockPos arg0, Direction arg1)
m_338754_(C_4675_ p_343934_, C_4687_ arg1)
public boolean
s()
survives()
method_6888()
canStayAttached()
m_7088_()
public void
a(bts arg0, exc arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
m_6478_(C_531_ p_31782_, C_3046_ arg1)
public void
j(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)
m_5997_(double p_31818_, double arg1, double arg2)
public void
ap()
kill()
method_5768()
kill()
m_6074_()
public boolean
a(brk arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_31777_, float arg1)
public SoundEvent
v()
getRemoveItemSound()
method_34240()
getRemoveItemSound()
m_142544_()
public boolean
a(double arg0)
shouldRenderAtSqrDistance(double arg0)
method_5640(double arg0)
shouldRender(double arg0)
m_6783_(double arg0)
public void
b(bsr arg0)
dropItem(Entity arg0)
method_6889(class_1297 arg0)
onBreak(Entity arg0)
m_31778_(C_507_ arg0)
public SoundEvent
w()
getBreakSound()
method_34241()
getBreakSound()
m_142543_()
public void
C()
playPlacementSound()
method_6894()
onPlace()
m_7084_()
public SoundEvent
x()
getPlaceSound()
method_34242()
getPlaceSound()
m_142541_()
private void
b(bsr arg0, boolean arg1)
dropItem(Entity arg0, boolean arg1)
method_6936(class_1297 arg0, boolean arg1)
dropHeldStack(Entity entity, boolean alwaysDrop)
m_31802_(C_507_ p_31804_, boolean arg1)
private void
d(cuq arg0)
removeFramedMap(ItemStack arg0)
method_6937(class_1799 arg0)
removeFromFrame(ItemStack stack)
m_31810_(C_1391_ arg0)
public ItemStack
D()
getItem()
method_6940()
getHeldItemStack()
m_31822_()
public MapId
a(cuq arg0)
getFramedMapId(ItemStack arg0)
method_43272(class_1799 arg0)
getMapId(ItemStack arg0)
m_218868_(C_1391_ arg0)
public boolean
E()
hasFramedMap()
method_43273()
containsMap()
m_218869_()
public void
c(cuq arg0)
setItem(ItemStack arg0)
method_6935(class_1799 arg0)
setHeldItemStack(ItemStack stack)
m_31805_(C_1391_ arg0)
public void
a(cuq arg0, boolean arg1)
setItem(ItemStack arg0, boolean arg1)
method_6933(class_1799 arg0, boolean arg1)
setHeldItemStack(ItemStack value, boolean update)
m_31789_(C_1391_ p_31791_, boolean arg1)
public SoundEvent
y()
getAddItemSound()
method_34243()
getAddItemSound()
m_142546_()
public SlotAccess
a_(int arg0)
getSlot(int arg0)
method_32318(int arg0)
getStackReference(int arg0)
m_141942_(int arg0)
public void
a(ajw<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
m_7350_(C_5225_<?> arg0)
private void
e(cuq arg0)
onItemChanged(ItemStack arg0)
method_43271(class_1799 arg0)
setAsStackHolder(ItemStack stack)
m_218865_(C_1391_ arg0)
public int
F()
getRotation()
method_6934()
getRotation()
m_31823_()
public void
b(int arg0)
setRotation(int arg0)
method_6939(int arg0)
setRotation(int value)
m_31770_(int arg0)
private void
a(int arg0, boolean arg1)
setRotation(int arg0, boolean arg1)
method_6941(int arg0, boolean arg1)
setRotation(int value, boolean updateComparators)
m_31772_(int p_31774_, boolean arg1)
public void
b(ub arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(ub arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public InteractionResult
a(cmx arg0, bqq arg1)
interact(Player arg0, InteractionHand arg1)
method_5688(class_1657 arg0, class_1268 arg1)
interact(PlayerEntity arg0, Hand arg1)
m_6096_(C_1141_ p_31788_, C_470_ arg1)
public SoundEvent
z()
getRotateItemSound()
method_34244()
getRotateItemSound()
m_142545_()
public int
H()
getAnalogOutput()
method_6938()
getComparatorPower()
m_31824_()
public Packet<ClientGamePacketListener>
a(aqt arg0)
getAddEntityPacket(ServerEntity arg0)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
m_5654_(C_11_ arg0)
public void
a(abv arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
m_141965_(C_5032_ arg0)
public ItemStack
dB()
getPickResult()
method_31480()
getPickBlockStack()
m_142340_()
protected ItemStack
A()
getFrameItemStack()
method_33340()
getAsItemStack()
m_142590_()
public float
dF()
getVisualRotationYInDegrees()
method_43078()
getBodyYaw()
m_213816_()