net.minecraft.world.entity.decoration

public class ItemFrame

extends HangingEntity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder

clu
net.minecraft.world.entity.decoration.ItemFrame
net.minecraft.class_1533
net.minecraft.entity.decoration.ItemFrameEntity
net.minecraft.world.entity.decoration.EntityItemFrame

Field summary

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

Constructor summary

ModifierConstructor
public (EntityType<? extends ItemFrame> arg0, 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(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
a(jm arg0)
setDirection(Direction arg0)
method_6892(class_2350 arg0)
setFacing(Direction 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)
public boolean
m()
survives()
method_6888()
canStayAttached()
public void
a(bwk arg0, fby arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d 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)
public void
c(ash arg0)
kill(ServerLevel arg0)
method_5768(class_3218 arg0)
kill(ServerWorld arg0)
private boolean
a(bua arg0)
shouldDamageDropItem(DamageSource arg0)
method_64458(class_1282 arg0)
shouldDropHeldStackWhenDamaged(DamageSource damageSource)
private static boolean
e(bua arg0)
canHurtWhenFixed(DamageSource arg0)
method_64459(class_1282 arg0)
canDamageWhenFixed(DamageSource damageSource)
public boolean
b(bua arg0)
hurtClient(DamageSource arg0)
method_5643(class_1282 arg0)
clientDamage(DamageSource arg0)
public boolean
a(ash arg0, bua arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public SoundEvent
s()
getRemoveItemSound()
method_34240()
getRemoveItemSound()
public boolean
a(double arg0)
shouldRenderAtSqrDistance(double arg0)
method_5640(double arg0)
shouldRender(double arg0)
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 SoundEvent
t()
getBreakSound()
method_34241()
getBreakSound()
public void
z()
playPlacementSound()
method_6894()
onPlace()
public SoundEvent
u()
getPlaceSound()
method_34242()
getPlaceSound()
private void
a(ash arg0, bvk arg1, boolean arg2)
dropItem(ServerLevel arg0, Entity arg1, boolean arg2)
method_6936(class_3218 arg0, class_1297 arg1, boolean arg2)
dropHeldStack(ServerWorld world, Entity entity, boolean dropSelf)
private void
c(cxp arg0)
removeFramedMap(ItemStack arg0)
method_6937(class_1799 arg0)
removeFromFrame(ItemStack stack)
public ItemStack
A()
getItem()
method_6940()
getHeldItemStack()
public MapId
a(cxp arg0)
getFramedMapId(ItemStack arg0)
method_43272(class_1799 arg0)
getMapId(ItemStack stack)
public boolean
B()
hasFramedMap()
method_43273()
containsMap()
public void
b(cxp arg0)
setItem(ItemStack arg0)
method_6935(class_1799 arg0)
setHeldItemStack(ItemStack stack)
public void
a(cxp arg0, boolean arg1)
setItem(ItemStack arg0, boolean arg1)
method_6933(class_1799 arg0, boolean arg1)
setHeldItemStack(ItemStack value, boolean update)
public SoundEvent
v()
getAddItemSound()
method_34243()
getAddItemSound()
public SlotAccess
a_(int arg0)
getSlot(int arg0)
method_32318(int arg0)
getStackReference(int arg0)
public void
a(alc<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
private void
d(cxp arg0)
onItemChanged(ItemStack arg0)
method_43271(class_1799 arg0)
setAsStackHolder(ItemStack stack)
public int
C()
getRotation()
method_6934()
getRotation()
public void
b(int arg0)
setRotation(int arg0)
method_6939(int arg0)
setRotation(int value)
private void
a(int arg0, boolean arg1)
setRotation(int arg0, boolean arg1)
method_6941(int arg0, boolean arg1)
setRotation(int value, boolean updateComparators)
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)
public InteractionResult
a(cpx arg0, bti arg1)
interact(Player arg0, InteractionHand arg1)
method_5688(class_1657 arg0, class_1268 arg1)
interact(PlayerEntity arg0, Hand arg1)
public SoundEvent
w()
getRotateItemSound()
method_34244()
getRotateItemSound()
public int
D()
getAnalogOutput()
method_6938()
getComparatorPower()
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()
protected ItemStack
x()
getFrameItemStack()
method_33340()
getAsItemStack()
public float
dN()
getVisualRotationYInDegrees()
method_43078()
getBodyYaw()