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:
DataTracked
,ScoreHolder
,CommandOutput
,Nameable
,EntityLike
- Enclosing class:
DisplayEntity
- Mappings:
Namespace Name named net/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity
intermediary net/minecraft/class_8113$class_8122
official bsq$g
-
Nested Class Summary
Nested 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.TextDisplayEntity
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final TrackedData
<ItemStack> private static final TrackedData
<Byte> private static final String
private static final String
private final StackReference
Fields 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_KEY
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
private ItemStack
getStackReference
(int mappedIndex) Obtains a stack reference to be modified.private ModelTransformationMode
protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.void
onTrackedDataSet
(TrackedData<?> data) Called on the client when the tracked data is set.protected void
Reads custom data fromnbt
.protected void
refreshData
(boolean shouldLerp, float lerpProgress) private void
setItemStack
(ItemStack stack) private void
setTransformationMode
(ModelTransformationMode transformationMode) protected void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.decoration.DisplayEntity
canAvoidTraps, getLerpProgress, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getPistonBehavior, getRenderState, getTeamColorValue, getVisibilityBoundingBox, setPosition, shouldRender, tick, updateTrackedPositionAndAngles
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canHit, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, damage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, fall, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGravity, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getWeaponStack, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interact, interactAt, isAlive, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, move, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
ITEM_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ITEM_NBT_KEY
Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;ITEM_NBT_KEY:Ljava/lang/String;
intermediary field_42421
Lnet/minecraft/class_8113$class_8122;field_42421:Ljava/lang/String;
official p
Lbsq$g;p:Ljava/lang/String;
-
ITEM_DISPLAY_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ITEM_DISPLAY_NBT_KEY
Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;ITEM_DISPLAY_NBT_KEY:Ljava/lang/String;
intermediary field_42422
Lnet/minecraft/class_8113$class_8122;field_42422:Ljava/lang/String;
official q
Lbsq$g;q:Ljava/lang/String;
-
ITEM
- Mappings:
Namespace Name Mixin selector named ITEM
Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;ITEM:Lnet/minecraft/entity/data/TrackedData;
intermediary field_42423
Lnet/minecraft/class_8113$class_8122;field_42423:Lnet/minecraft/class_2940;
official r
Lbsq$g;r:Lajw;
-
ITEM_DISPLAY
- Mappings:
Namespace Name Mixin selector named ITEM_DISPLAY
Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;ITEM_DISPLAY:Lnet/minecraft/entity/data/TrackedData;
intermediary field_42424
Lnet/minecraft/class_8113$class_8122;field_42424:Lnet/minecraft/class_2940;
official s
Lbsq$g;s:Lajw;
-
stackReference
- Mappings:
Namespace Name Mixin selector named stackReference
Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;stackReference:Lnet/minecraft/inventory/StackReference;
intermediary field_42425
Lnet/minecraft/class_8113$class_8122;field_42425:Lnet/minecraft/class_5630;
official t
Lbsq$g;t:Lbug;
-
data
- Mappings:
Namespace Name Mixin selector named data
Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;data:Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity$Data;
intermediary field_43187
Lnet/minecraft/class_8113$class_8122;field_43187:Lnet/minecraft/class_8113$class_8122$class_8226;
official u
Lbsq$g;u:Lbsq$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;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbsr;<init>(Lbsx;Ldcw;)V
-
-
Method Details
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in 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 initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbsr;a(Laka$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:
onTrackedDataSet
in interfaceDataTracked
- Overrides:
onTrackedDataSet
in classDisplayEntity
- Mappings:
Namespace Name Mixin selector named onTrackedDataSet
Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
intermediary method_5674
Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
official a
Lajz;a(Lajw;)V
-
getItemStack
- Mappings:
Namespace Name Mixin selector named getItemStack
Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;getItemStack()Lnet/minecraft/item/ItemStack;
intermediary method_48900
Lnet/minecraft/class_8113$class_8122;method_48900()Lnet/minecraft/class_1799;
official t
Lbsq$g;t()Lcuq;
-
setItemStack
- Mappings:
Namespace Name Mixin selector named setItemStack
Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;setItemStack(Lnet/minecraft/item/ItemStack;)V
intermediary method_48897
Lnet/minecraft/class_8113$class_8122;method_48897(Lnet/minecraft/class_1799;)V
official a
Lbsq$g;a(Lcuq;)V
-
setTransformationMode
- Mappings:
Namespace Name Mixin selector named setTransformationMode
Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;setTransformationMode(Lnet/minecraft/client/render/model/json/ModelTransformationMode;)V
intermediary method_48896
Lnet/minecraft/class_8113$class_8122;method_48896(Lnet/minecraft/class_811;)V
official a
Lbsq$g;a(Lcun;)V
-
getTransformationMode
- Mappings:
Namespace Name Mixin selector named getTransformationMode
Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;getTransformationMode()Lnet/minecraft/client/render/model/json/ModelTransformationMode;
intermediary method_48901
Lnet/minecraft/class_8113$class_8122;method_48901()Lnet/minecraft/class_811;
official v
Lbsq$g;v()Lcun;
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbt
in classDisplayEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbsr;a(Lub;)V
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbt
in classDisplayEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbsr;b(Lub;)V
-
getStackReference
Obtains a stack reference to be modified. Used by commands like/loot
or/item
.- Overrides:
getStackReference
in classEntity
- Parameters:
mappedIndex
- the mapped index as given by the item slot argument- See Also:
- Mappings:
Namespace Name Mixin selector named getStackReference
Lnet/minecraft/entity/Entity;getStackReference(I)Lnet/minecraft/inventory/StackReference;
intermediary method_32318
Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;
official a_
Lbsr;a_(I)Lbug;
-
getData
- Mappings:
Namespace Name Mixin selector named getData
Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity;getData()Lnet/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity$Data;
intermediary method_49782
Lnet/minecraft/class_8113$class_8122;method_49782()Lnet/minecraft/class_8113$class_8122$class_8226;
official s
Lbsq$g;s()Lbsq$g$a;
-
refreshData
protected void refreshData(boolean shouldLerp, float lerpProgress) - Specified by:
refreshData
in classDisplayEntity
- Mappings:
Namespace Name Mixin selector named refreshData
Lnet/minecraft/entity/decoration/DisplayEntity;refreshData(ZF)V
intermediary method_49776
Lnet/minecraft/class_8113;method_49776(ZF)V
official a
Lbsq;a(ZF)V
-