Package net.minecraft.entity.decoration
Class DisplayEntity.ItemDisplayEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.decoration.DisplayEntity
net.minecraft.entity.decoration.DisplayEntity.ItemDisplayEntity
- All Implemented Interfaces:
class_12260,ComponentsAccess,DataTracked,ScoreHolder,HeldItemContext,Nameable,DebugTrackable,EntityLike,UniquelyIdentifiable
- Enclosing class:
DisplayEntity
- Mappings:
Namespace Name named net/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntityintermediary net/minecraft/class_8113$class_8122official cfx$g
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.decoration.DisplayEntity
DisplayEntity.AbstractInterpolator<T>, DisplayEntity.BillboardMode, DisplayEntity.BlockDisplayEntity, DisplayEntity.FloatLerper, DisplayEntity.IntLerper, DisplayEntity.ItemDisplayEntity, DisplayEntity.RenderState, DisplayEntity.TextDisplayEntityNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.TrackerNested classes/interfaces inherited from interface net.minecraft.util.HeldItemContext
HeldItemContext.Offset -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TrackedData<ItemStack> private static final TrackedData<Byte> private static final Stringprivate static final Stringprivate final StackReferenceFields inherited from class net.minecraft.entity.decoration.DisplayEntity
BILLBOARD_NBT_KEY, BRIGHTNESS_NBT_KEY, field_42384, GLOW_COLOR_OVERRIDE_NBT_KEY, HEIGHT_NBT_KEY, INTERPOLATION_DURATION_KEY, LOGGER, renderingDataSet, SHADOW_RADIUS_NBT_KEY, SHADOW_STRENGTH_NBT_KEY, START_INTERPOLATION_KEY, TELEPORT_DURATION_KEY, TRANSFORMATION_NBT_KEY, VIEW_RANGE_NBT_KEY, WIDTH_NBT_KEYFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, CUSTOM_NAME_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable DisplayEntity.ItemDisplayEntity.DatagetData()private ItemDisplayContextprivate ItemStack@Nullable StackReferencegetStackReference(int int2) protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.voidonTrackedDataSet(TrackedData<?> data) Called on the client when the tracked data is set.protected voidreadCustomData(ReadView view) protected voidrefreshData(boolean shouldLerp, float lerpProgress) private voidsetItemDisplayContext(ItemDisplayContext context) private voidsetItemStack(ItemStack stack) protected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.decoration.DisplayEntity
canAvoidTraps, damage, getInterpolator, getLerpProgress, getPistonBehavior, getRenderState, getTeamColorValue, getVisibilityBoundingBox, setPosition, shouldRender, shouldRender, tickMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, beforePacketsSent, bypassesLandingEffects, bypassesSteppingEffects, calcDistanceFromBottomCollision, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canActVoluntarily, canAddPassenger, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canHit, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, castComponentValue, changeLookDirection, checkDespawn, clearQueuedCollisionChecks, clientDamage, collides, collidesWith, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, fall, findCollisions, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyYaw, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityPos, getEntityWorld, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGravity, getHandPosOffset, getHeadRotationVector, getHeadYaw, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPickBlockStack, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getSoundCategory, getSplashSound, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getWeaponStack, getWidth, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFall, handleFallDamage, handleFallDamageForPassengers, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isAtCloudHeight, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInSneakingPose, isInSwimmingPose, isInteractable, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartlyTouchingWater, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, registerTracking, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBodyYaw, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, teleportTo, tickBlockCollision, tickBlockCollision, tickHeldLeash, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedAngles, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.class_12260
method_76093Methods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.util.HeldItemContext
getEntityMethods inherited from interface net.minecraft.util.Nameable
getStringifiedNameMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
ITEM_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ITEM_NBT_KEYLnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;ITEM_NBT_KEY:Ljava/lang/String;intermediary field_42421Lnet/minecraft/class_8113$class_8122;field_42421:Ljava/lang/String;official oLcfx$g;o:Ljava/lang/String;
-
ITEM_DISPLAY_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ITEM_DISPLAY_NBT_KEYLnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;ITEM_DISPLAY_NBT_KEY:Ljava/lang/String;intermediary field_42422Lnet/minecraft/class_8113$class_8122;field_42422:Ljava/lang/String;official pLcfx$g;p:Ljava/lang/String;
-
ITEM
- Mappings:
Namespace Name Mixin selector named ITEMLnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;ITEM:Lnet/minecraft/entity/data/TrackedData;intermediary field_42423Lnet/minecraft/class_8113$class_8122;field_42423:Lnet/minecraft/class_2940;official qLcfx$g;q:Lalx;
-
ITEM_DISPLAY
- Mappings:
Namespace Name Mixin selector named ITEM_DISPLAYLnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;ITEM_DISPLAY:Lnet/minecraft/entity/data/TrackedData;intermediary field_42424Lnet/minecraft/class_8113$class_8122;field_42424:Lnet/minecraft/class_2940;official rLcfx$g;r:Lalx;
-
stackReference
- Mappings:
Namespace Name Mixin selector named stackReferenceLnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;stackReference:Lnet/minecraft/inventory/StackReference;intermediary field_42425Lnet/minecraft/class_8113$class_8122;field_42425:Lnet/minecraft/class_5630;official sLcfx$g;s:Lcht;
-
data
- Mappings:
Namespace Name Mixin selector named dataLnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;data:Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity$Data;intermediary field_43187Lnet/minecraft/class_8113$class_8122;field_43187:Lnet/minecraft/class_8113$class_8122$class_8226;official tLcfx$g;t:Lcfx$g$a;
-
-
Constructor Details
-
ItemDisplayEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lcga;<init>(Lcgk;Ldva;)V
-
-
Method Details
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTrackerin classDisplayEntity- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLcga;a(Lamb$a;)V
-
onTrackedDataSet
Called on the client when the tracked data is set.This can be overridden to refresh other fields when the tracked data is set or changed.
- Specified by:
onTrackedDataSetin interfaceDataTracked- Overrides:
onTrackedDataSetin classDisplayEntity- Mappings:
Namespace Name Mixin selector named onTrackedDataSetLnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)Vintermediary method_5674Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)Vofficial aLama;a(Lalx;)V
-
getItemStack
- Mappings:
Namespace Name Mixin selector named getItemStackLnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;getItemStack()Lnet/minecraft/item/ItemStack;intermediary method_48900Lnet/minecraft/class_8113$class_8122;method_48900()Lnet/minecraft/class_1799;official mLcfx$g;m()Ldkg;
-
setItemStack
- Mappings:
Namespace Name Mixin selector named setItemStackLnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;setItemStack(Lnet/minecraft/item/ItemStack;)Vintermediary method_48897Lnet/minecraft/class_8113$class_8122;method_48897(Lnet/minecraft/class_1799;)Vofficial aLcfx$g;a(Ldkg;)V
-
setItemDisplayContext
- Mappings:
Namespace Name Mixin selector named setItemDisplayContextLnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;setItemDisplayContext(Lnet/minecraft/item/ItemDisplayContext;)Vintermediary method_48896Lnet/minecraft/class_8113$class_8122;method_48896(Lnet/minecraft/class_811;)Vofficial aLcfx$g;a(Ldke;)V
-
getItemDisplayContext
- Mappings:
Namespace Name Mixin selector named getItemDisplayContextLnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;getItemDisplayContext()Lnet/minecraft/item/ItemDisplayContext;intermediary method_48901Lnet/minecraft/class_8113$class_8122;method_48901()Lnet/minecraft/class_811;official nLcfx$g;n()Ldke;
-
readCustomData
- Overrides:
readCustomDatain classDisplayEntity- Mappings:
Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLcga;a(Lfmd;)V
-
writeCustomData
- Overrides:
writeCustomDatain classDisplayEntity- Mappings:
Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLcga;a(Lfmf;)V
-
getStackReference
- Specified by:
getStackReferencein interfaceclass_12260- Overrides:
getStackReferencein classEntity- Mappings:
Namespace Name Mixin selector named getStackReferenceLnet/minecraft/class_12260;getStackReference(I)Lnet/minecraft/inventory/StackReference;intermediary method_32318Lnet/minecraft/class_12260;method_32318(I)Lnet/minecraft/class_5630;official a_Lchu;a_(I)Lcht;
-
getData
- Mappings:
Namespace Name Mixin selector named getDataLnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;getData()Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity$Data;intermediary method_49782Lnet/minecraft/class_8113$class_8122;method_49782()Lnet/minecraft/class_8113$class_8122$class_8226;official kLcfx$g;k()Lcfx$g$a;
-
refreshData
protected void refreshData(boolean shouldLerp, float lerpProgress) - Specified by:
refreshDatain classDisplayEntity- Mappings:
Namespace Name Mixin selector named refreshDataLnet/minecraft/entity/decoration/DisplayEntity;refreshData(ZF)Vintermediary method_49776Lnet/minecraft/class_8113;method_49776(ZF)Vofficial aLcfx;a(ZF)V
-