net.minecraft.entity.decoration

public class ItemFrameEntity

extends AbstractDecorationEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible

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

Field summary

Modifier and TypeField
private static final TrackedData<ItemStack>
DATA_ITEM
field_7130
ITEM_STACK
private static final TrackedData<Integer>
DATA_ROTATION
field_7132
ROTATION
public static final int
NUM_ROTATIONS
field_30454
field_30454
private static final float
DEPTH
field_51592
field_51592
private static final float
WIDTH
field_51593
field_51593
private static final float
HEIGHT
field_51594
field_51594
private static final byte
DEFAULT_ROTATION
field_57650
DEFAULT_ITEM_ROTATION
private static final float
DEFAULT_DROP_CHANCE
field_57651
DEFAULT_ITEM_DROP_CHANCE
private static final boolean
DEFAULT_INVISIBLE
field_57652
DEFAULT_INVISIBLE
private static final boolean
DEFAULT_FIXED
field_57653
DEFAULT_FIXED
private float
dropChance
field_7129
itemDropChance
private boolean
fixed
field_22476
fixed

Constructor summary

ModifierConstructor
public (EntityType<? extends ItemFrameEntity> type, World level)
public (World world, BlockPos pos, Direction facing)
public (EntityType<? extends ItemFrameEntity> type, World world, BlockPos pos, Direction facing)

Method summary

Modifier and TypeMethod
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
setDirection(Direction direction)
method_6892(class_2350 arg0)
setFacing(Direction arg0)
protected final void
recalculateBoundingBox()
method_6895()
updateAttachmentPosition()
protected Box
calculateBoundingBox(BlockPos blockPos, Direction direction)
method_59943(class_2338 arg0, class_2350 arg1)
calculateBoundingBox(BlockPos arg0, Direction arg1)
protected Box
getPopBox()
method_74963()
calculatePopOffCheckBoundingBox()
private Box
createBoundingBox(BlockPos blockPos, Direction direction, boolean hasFramedMap)
method_74964(class_2338 arg0, class_2350 arg1, boolean arg2)
calculateBoundingBox(BlockPos pos, Direction side, boolean map)
public boolean
survives()
method_6888()
canStayAttached()
public void
move(MoverType moverType, Vec3 delta)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
public void
push(double xa, double ya, double za)
method_5762(double arg0, double arg1, double arg2)
addVelocity(double arg0, double arg1, double arg2)
public void
kill(ServerLevel level)
method_5768(class_3218 arg0)
kill(ServerWorld arg0)
private boolean
shouldDamageDropItem(DamageSource source)
method_64458(class_1282 arg0)
shouldDropHeldStackWhenDamaged(DamageSource damageSource)
private static boolean
canHurtWhenFixed(DamageSource source)
method_64459(class_1282 arg0)
canDamageWhenFixed(DamageSource damageSource)
public boolean
hurtClient(DamageSource source)
method_5643(class_1282 arg0)
clientDamage(DamageSource arg0)
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public SoundEvent
getRemoveItemSound()
method_34240()
getRemoveItemSound()
public boolean
shouldRenderAtSqrDistance(double distance)
method_5640(double arg0)
shouldRender(double arg0)
public void
dropItem(ServerLevel level, Entity causedBy)
method_6889(class_3218 arg0, class_1297 arg1)
onBreak(ServerWorld arg0, Entity arg1)
public SoundEvent
getBreakSound()
method_34241()
getBreakSound()
public void
playPlacementSound()
method_6894()
onPlace()
public SoundEvent
getPlaceSound()
method_34242()
getPlaceSound()
private void
dropItem(ServerLevel level, Entity causedBy, boolean withFrame)
method_6936(class_3218 arg0, class_1297 arg1, boolean arg2)
dropHeldStack(ServerWorld world, Entity entity, boolean dropSelf)
private void
removeFramedMap(ItemStack itemStack)
method_6937(class_1799 arg0)
removeFromFrame(ItemStack stack)
public ItemStack
getItem()
method_6940()
getHeldItemStack()
public MapIdComponent
getFramedMapId(ItemStack itemStack)
method_43272(class_1799 arg0)
getMapId(ItemStack stack)
public boolean
hasFramedMap()
method_43273()
containsMap()
public void
setItem(ItemStack itemStack)
method_6935(class_1799 arg0)
setHeldItemStack(ItemStack stack)
public void
setItem(ItemStack itemStack, boolean updateNeighbours)
method_6933(class_1799 arg0, boolean arg1)
setHeldItemStack(ItemStack value, boolean update)
public SoundEvent
getAddItemSound()
method_34243()
getAddItemSound()
public StackReference
getSlot(int slot)
method_32318(int arg0)
getStackReference(int arg0)
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
private void
onItemChanged(ItemStack item)
method_43271(class_1799 arg0)
setAsStackHolder(ItemStack arg0)
public int
getRotation()
method_6934()
getRotation()
public void
setRotation(int rotation)
method_6939(int arg0)
setRotation(int value)
private void
setRotation(int rotation, boolean updateNeighbours)
method_6941(int arg0, boolean arg1)
setRotation(int value, boolean updateComparators)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public ActionResult
interact(Player player, InteractionHand hand, Vec3 location)
method_5688(class_1657 arg0, class_1268 arg1, class_243 arg2)
interact(PlayerEntity arg0, Hand arg1, Vec3d arg2)
public SoundEvent
getRotateItemSound()
method_34244()
getRotateItemSound()
public int
getAnalogOutput()
method_6938()
getComparatorPower()
public Packet<ClientPlayPacketListener>
getAddEntityPacket(ServerEntity serverEntity)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
public void
recreateFromPacket(ClientboundAddEntityPacket packet)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public ItemStack
getPickResult()
method_31480()
getPickBlockStack()
protected ItemStack
getFrameItemStack()
method_33340()
getAsItemStack()
private ItemStack
getFrameItemStackWithData()
method_1_6811()
method_1_6811()
public float
getVisualRotationYInDegrees()
method_73188()
getBodyYaw()