Class DisplayEntity
- All Implemented Interfaces:
ScoreHolder
,CommandOutput
,Nameable
,EntityLike
- Direct Known Subclasses:
DisplayEntity.BlockDisplayEntity
,DisplayEntity.ItemDisplayEntity
,DisplayEntity.TextDisplayEntity
- Mappings:
Namespace Name official blu
intermediary net/minecraft/class_8113
named net/minecraft/entity/decoration/DisplayEntity
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
private static final record
private static final record
static enum
static class
static interface
private static final record
private static class
static interface
private static final record
static class
static final record
static class
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final TrackedData<Byte>
static final String
private static final TrackedData<Integer>
static final String
private static final float
private static final float
private static final int
static final int
private static final TrackedData<Integer>
static final String
private static final TrackedData<Float>
static final String
private static final TrackedData<Integer>
static final String
private int
private boolean
private long
private static final TrackedData<Quaternionf>
private float
(package private) static final Logger
private static final IntSet
protected boolean
private @Nullable DisplayEntity.RenderState
private static final TrackedData<Quaternionf>
private static final TrackedData<Vector3f>
private static final TrackedData<Float>
static final String
private static final TrackedData<Float>
static final String
private static final TrackedData<Integer>
static final String
private boolean
private static final TrackedData<Integer>
static final String
static final String
private static final TrackedData<Vector3f>
private static final TrackedData<Float>
static final String
private Box
private static final TrackedData<Float>
static final String
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_29991, field_44870, field_44871, field_44872, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, 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 TypeMethodDescriptionboolean
Returns whether the entity cannot trigger pressure plates or tripwires.private DisplayEntity.RenderState
private DisplayEntity.BillboardMode
private int
private @Nullable Brightness
private float
private float
private int
private int
private DisplayEntity.RenderState
getLerpedRenderState
(DisplayEntity.RenderState state, float lerpProgress) float
getLerpProgress
(float delta) float
double
double
float
double
Returns the behavior of the piston for this entity.private float
private float
private int
int
Returns the team color value, or0xFFFFFF
if the entity is not in a team or the color is not set.private int
private static AffineTransformation
getTransformation
(DataTracker dataTracker) private float
protected void
Initializes data tracker.void
onTrackedDataSet
(TrackedData<?> data) Called on the client when the tracked data is set.protected void
Reads custom data fromnbt
.protected abstract void
refreshData
(boolean shouldLerp, float lerpProgress) private void
setBillboardMode
(DisplayEntity.BillboardMode billboardMode) private void
setBrightness
(@Nullable Brightness brightness) private void
setDisplayHeight
(float height) private void
setDisplayWidth
(float width) private void
setGlowColorOverride
(int glowColorOverride) private void
setInterpolationDuration
(int interpolationDuration) void
setPosition
(double x, double y, double z) Sets the position and refreshes the bounding box.private void
setShadowRadius
(float shadowRadius) private void
setShadowStrength
(float shadowStrength) private void
setStartInterpolation
(int startInterpolation) private void
setTeleportDuration
(int teleportDuration) private void
setTransformation
(AffineTransformation transformation) private void
setViewRange
(float viewRange) boolean
shouldRender
(double distance) void
tick()
Ticks this entity.void
updateTrackedPositionAndAngles
(double x, double y, double z, float yaw, float pitch, int interpolationSteps) private void
protected void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canHit, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, 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, equipStack, extinguish, extinguishWithSound, fall, getAir, getArmorItems, 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, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandItems, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMoveEffect, getMovementDirection, getName, getNameForScoreboard, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRidingOffset, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeleportTarget, getTrackedPosition, getType, getUnscaledRidingOffset, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getWidth, getWorld, 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, limitFallDistance, lookAt, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setStepHeight, 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, teleport, tickInVoid, tickPortal, tickPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, 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
-
LOGGER
- Mappings:
Namespace Name Mixin selector official p
Lblu;p:Lorg/slf4j/Logger;
intermediary field_42397
Lnet/minecraft/class_8113;field_42397:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/entity/decoration/DisplayEntity;LOGGER:Lorg/slf4j/Logger;
-
field_42384
public static final int field_42384- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lblu;b:I
intermediary field_42384
Lnet/minecraft/class_8113;field_42384:I
named field_42384
Lnet/minecraft/entity/decoration/DisplayEntity;field_42384:I
-
START_INTERPOLATION
- Mappings:
Namespace Name Mixin selector official q
Lblu;q:Lagm;
intermediary field_45112
Lnet/minecraft/class_8113;field_45112:Lnet/minecraft/class_2940;
named START_INTERPOLATION
Lnet/minecraft/entity/decoration/DisplayEntity;START_INTERPOLATION:Lnet/minecraft/entity/data/TrackedData;
-
INTERPOLATION_DURATION
- Mappings:
Namespace Name Mixin selector official r
Lblu;r:Lagm;
intermediary field_45113
Lnet/minecraft/class_8113;field_45113:Lnet/minecraft/class_2940;
named INTERPOLATION_DURATION
Lnet/minecraft/entity/decoration/DisplayEntity;INTERPOLATION_DURATION:Lnet/minecraft/entity/data/TrackedData;
-
TELEPORT_DURATION
- Mappings:
Namespace Name Mixin selector official s
Lblu;s:Lagm;
intermediary field_45114
Lnet/minecraft/class_8113;field_45114:Lnet/minecraft/class_2940;
named TELEPORT_DURATION
Lnet/minecraft/entity/decoration/DisplayEntity;TELEPORT_DURATION:Lnet/minecraft/entity/data/TrackedData;
-
TRANSLATION
- Mappings:
Namespace Name Mixin selector official t
Lblu;t:Lagm;
intermediary field_42401
Lnet/minecraft/class_8113;field_42401:Lnet/minecraft/class_2940;
named TRANSLATION
Lnet/minecraft/entity/decoration/DisplayEntity;TRANSLATION:Lnet/minecraft/entity/data/TrackedData;
-
SCALE
- Mappings:
Namespace Name Mixin selector official u
Lblu;u:Lagm;
intermediary field_42402
Lnet/minecraft/class_8113;field_42402:Lnet/minecraft/class_2940;
named SCALE
Lnet/minecraft/entity/decoration/DisplayEntity;SCALE:Lnet/minecraft/entity/data/TrackedData;
-
LEFT_ROTATION
- Mappings:
Namespace Name Mixin selector official v
Lblu;v:Lagm;
intermediary field_42403
Lnet/minecraft/class_8113;field_42403:Lnet/minecraft/class_2940;
named LEFT_ROTATION
Lnet/minecraft/entity/decoration/DisplayEntity;LEFT_ROTATION:Lnet/minecraft/entity/data/TrackedData;
-
RIGHT_ROTATION
- Mappings:
Namespace Name Mixin selector official aE
Lblu;aE:Lagm;
intermediary field_42367
Lnet/minecraft/class_8113;field_42367:Lnet/minecraft/class_2940;
named RIGHT_ROTATION
Lnet/minecraft/entity/decoration/DisplayEntity;RIGHT_ROTATION:Lnet/minecraft/entity/data/TrackedData;
-
BILLBOARD
- Mappings:
Namespace Name Mixin selector official aF
Lblu;aF:Lagm;
intermediary field_42368
Lnet/minecraft/class_8113;field_42368:Lnet/minecraft/class_2940;
named BILLBOARD
Lnet/minecraft/entity/decoration/DisplayEntity;BILLBOARD:Lnet/minecraft/entity/data/TrackedData;
-
BRIGHTNESS
- Mappings:
Namespace Name Mixin selector official aG
Lblu;aG:Lagm;
intermediary field_42369
Lnet/minecraft/class_8113;field_42369:Lnet/minecraft/class_2940;
named BRIGHTNESS
Lnet/minecraft/entity/decoration/DisplayEntity;BRIGHTNESS:Lnet/minecraft/entity/data/TrackedData;
-
VIEW_RANGE
- Mappings:
Namespace Name Mixin selector official aH
Lblu;aH:Lagm;
intermediary field_42370
Lnet/minecraft/class_8113;field_42370:Lnet/minecraft/class_2940;
named VIEW_RANGE
Lnet/minecraft/entity/decoration/DisplayEntity;VIEW_RANGE:Lnet/minecraft/entity/data/TrackedData;
-
SHADOW_RADIUS
- Mappings:
Namespace Name Mixin selector official aI
Lblu;aI:Lagm;
intermediary field_42371
Lnet/minecraft/class_8113;field_42371:Lnet/minecraft/class_2940;
named SHADOW_RADIUS
Lnet/minecraft/entity/decoration/DisplayEntity;SHADOW_RADIUS:Lnet/minecraft/entity/data/TrackedData;
-
SHADOW_STRENGTH
- Mappings:
Namespace Name Mixin selector official aJ
Lblu;aJ:Lagm;
intermediary field_42372
Lnet/minecraft/class_8113;field_42372:Lnet/minecraft/class_2940;
named SHADOW_STRENGTH
Lnet/minecraft/entity/decoration/DisplayEntity;SHADOW_STRENGTH:Lnet/minecraft/entity/data/TrackedData;
-
WIDTH
- Mappings:
Namespace Name Mixin selector official aK
Lblu;aK:Lagm;
intermediary field_42373
Lnet/minecraft/class_8113;field_42373:Lnet/minecraft/class_2940;
named WIDTH
Lnet/minecraft/entity/decoration/DisplayEntity;WIDTH:Lnet/minecraft/entity/data/TrackedData;
-
HEIGHT
- Mappings:
Namespace Name Mixin selector official aL
Lblu;aL:Lagm;
intermediary field_42374
Lnet/minecraft/class_8113;field_42374:Lnet/minecraft/class_2940;
named HEIGHT
Lnet/minecraft/entity/decoration/DisplayEntity;HEIGHT:Lnet/minecraft/entity/data/TrackedData;
-
GLOW_COLOR_OVERRIDE
- Mappings:
Namespace Name Mixin selector official aM
Lblu;aM:Lagm;
intermediary field_42375
Lnet/minecraft/class_8113;field_42375:Lnet/minecraft/class_2940;
named GLOW_COLOR_OVERRIDE
Lnet/minecraft/entity/decoration/DisplayEntity;GLOW_COLOR_OVERRIDE:Lnet/minecraft/entity/data/TrackedData;
-
RENDERING_DATA_IDS
- Mappings:
Namespace Name Mixin selector official aN
Lblu;aN:Lit/unimi/dsi/fastutil/ints/IntSet;
intermediary field_43180
Lnet/minecraft/class_8113;field_43180:Lit/unimi/dsi/fastutil/ints/IntSet;
named RENDERING_DATA_IDS
Lnet/minecraft/entity/decoration/DisplayEntity;RENDERING_DATA_IDS:Lit/unimi/dsi/fastutil/ints/IntSet;
-
field_42376
private static final float field_42376- See Also:
- Mappings:
Namespace Name Mixin selector official aO
Lblu;aO:F
intermediary field_42376
Lnet/minecraft/class_8113;field_42376:F
named field_42376
Lnet/minecraft/entity/decoration/DisplayEntity;field_42376:F
-
field_42377
private static final float field_42377- See Also:
- Mappings:
Namespace Name Mixin selector official aP
Lblu;aP:F
intermediary field_42377
Lnet/minecraft/class_8113;field_42377:F
named field_42377
Lnet/minecraft/entity/decoration/DisplayEntity;field_42377:F
-
field_42378
private static final int field_42378- See Also:
- Mappings:
Namespace Name Mixin selector official aQ
Lblu;aQ:I
intermediary field_42378
Lnet/minecraft/class_8113;field_42378:I
named field_42378
Lnet/minecraft/entity/decoration/DisplayEntity;field_42378:I
-
TELEPORT_DURATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lblu;c:Ljava/lang/String;
intermediary field_45109
Lnet/minecraft/class_8113;field_45109:Ljava/lang/String;
named TELEPORT_DURATION_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;TELEPORT_DURATION_KEY:Ljava/lang/String;
-
INTERPOLATION_DURATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lblu;d:Ljava/lang/String;
intermediary field_45110
Lnet/minecraft/class_8113;field_45110:Ljava/lang/String;
named INTERPOLATION_DURATION_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;INTERPOLATION_DURATION_KEY:Ljava/lang/String;
-
START_INTERPOLATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lblu;e:Ljava/lang/String;
intermediary field_45111
Lnet/minecraft/class_8113;field_45111:Ljava/lang/String;
named START_INTERPOLATION_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;START_INTERPOLATION_KEY:Ljava/lang/String;
-
TRANSFORMATION_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lblu;f:Ljava/lang/String;
intermediary field_42387
Lnet/minecraft/class_8113;field_42387:Ljava/lang/String;
named TRANSFORMATION_NBT_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;TRANSFORMATION_NBT_KEY:Ljava/lang/String;
-
BILLBOARD_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lblu;g:Ljava/lang/String;
intermediary field_42388
Lnet/minecraft/class_8113;field_42388:Ljava/lang/String;
named BILLBOARD_NBT_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;BILLBOARD_NBT_KEY:Ljava/lang/String;
-
BRIGHTNESS_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lblu;h:Ljava/lang/String;
intermediary field_42389
Lnet/minecraft/class_8113;field_42389:Ljava/lang/String;
named BRIGHTNESS_NBT_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;BRIGHTNESS_NBT_KEY:Ljava/lang/String;
-
VIEW_RANGE_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official i
Lblu;i:Ljava/lang/String;
intermediary field_42390
Lnet/minecraft/class_8113;field_42390:Ljava/lang/String;
named VIEW_RANGE_NBT_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;VIEW_RANGE_NBT_KEY:Ljava/lang/String;
-
SHADOW_RADIUS_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official j
Lblu;j:Ljava/lang/String;
intermediary field_42391
Lnet/minecraft/class_8113;field_42391:Ljava/lang/String;
named SHADOW_RADIUS_NBT_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;SHADOW_RADIUS_NBT_KEY:Ljava/lang/String;
-
SHADOW_STRENGTH_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official k
Lblu;k:Ljava/lang/String;
intermediary field_42392
Lnet/minecraft/class_8113;field_42392:Ljava/lang/String;
named SHADOW_STRENGTH_NBT_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;SHADOW_STRENGTH_NBT_KEY:Ljava/lang/String;
-
WIDTH_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official l
Lblu;l:Ljava/lang/String;
intermediary field_42393
Lnet/minecraft/class_8113;field_42393:Ljava/lang/String;
named WIDTH_NBT_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;WIDTH_NBT_KEY:Ljava/lang/String;
-
HEIGHT_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official m
Lblu;m:Ljava/lang/String;
intermediary field_42394
Lnet/minecraft/class_8113;field_42394:Ljava/lang/String;
named HEIGHT_NBT_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;HEIGHT_NBT_KEY:Ljava/lang/String;
-
GLOW_COLOR_OVERRIDE_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official n
Lblu;n:Ljava/lang/String;
intermediary field_42395
Lnet/minecraft/class_8113;field_42395:Ljava/lang/String;
named GLOW_COLOR_OVERRIDE_NBT_KEY
Lnet/minecraft/entity/decoration/DisplayEntity;GLOW_COLOR_OVERRIDE_NBT_KEY:Ljava/lang/String;
-
interpolationStart
private long interpolationStart- Mappings:
Namespace Name Mixin selector official aR
Lblu;aR:J
intermediary field_42620
Lnet/minecraft/class_8113;field_42620:J
named interpolationStart
Lnet/minecraft/entity/decoration/DisplayEntity;interpolationStart:J
-
interpolationDuration
private int interpolationDuration- Mappings:
Namespace Name Mixin selector official aS
Lblu;aS:I
intermediary field_43181
Lnet/minecraft/class_8113;field_43181:I
named interpolationDuration
Lnet/minecraft/entity/decoration/DisplayEntity;interpolationDuration:I
-
lerpProgress
private float lerpProgress- Mappings:
Namespace Name Mixin selector official aT
Lblu;aT:F
intermediary field_43135
Lnet/minecraft/class_8113;field_43135:F
named lerpProgress
Lnet/minecraft/entity/decoration/DisplayEntity;lerpProgress:F
-
visibilityBoundingBox
- Mappings:
Namespace Name Mixin selector official aU
Lblu;aU:Lelo;
intermediary field_42383
Lnet/minecraft/class_8113;field_42383:Lnet/minecraft/class_238;
named visibilityBoundingBox
Lnet/minecraft/entity/decoration/DisplayEntity;visibilityBoundingBox:Lnet/minecraft/util/math/Box;
-
renderingDataSet
protected boolean renderingDataSet- Mappings:
Namespace Name Mixin selector official o
Lblu;o:Z
intermediary field_43185
Lnet/minecraft/class_8113;field_43185:Z
named renderingDataSet
Lnet/minecraft/entity/decoration/DisplayEntity;renderingDataSet:Z
-
startInterpolationSet
private boolean startInterpolationSet- Mappings:
Namespace Name Mixin selector official aV
Lblu;aV:Z
intermediary field_43182
Lnet/minecraft/class_8113;field_43182:Z
named startInterpolationSet
Lnet/minecraft/entity/decoration/DisplayEntity;startInterpolationSet:Z
-
interpolationDurationSet
private boolean interpolationDurationSet- Mappings:
Namespace Name Mixin selector official aW
Lblu;aW:Z
intermediary field_43183
Lnet/minecraft/class_8113;field_43183:Z
named interpolationDurationSet
Lnet/minecraft/entity/decoration/DisplayEntity;interpolationDurationSet:Z
-
renderState
- Mappings:
Namespace Name Mixin selector official aX
Lblu;aX:Lblu$k;
intermediary field_43184
Lnet/minecraft/class_8113;field_43184:Lnet/minecraft/class_8113$class_8229;
named renderState
Lnet/minecraft/entity/decoration/DisplayEntity;renderState:Lnet/minecraft/entity/decoration/DisplayEntity$RenderState;
-
interpolationTarget
- Mappings:
Namespace Name Mixin selector official aY
Lblu;aY:Lblu$j;
intermediary field_45108
Lnet/minecraft/class_8113;field_45108:Lnet/minecraft/class_8113$class_8639;
named interpolationTarget
Lnet/minecraft/entity/decoration/DisplayEntity;interpolationTarget:Lnet/minecraft/entity/decoration/DisplayEntity$InterpolationTarget;
-
-
Constructor Details
-
DisplayEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lblv;<init>(Lblz;Lctp;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
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.
- Overrides:
onTrackedDataSet
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Lblv;a(Lagm;)V
intermediary method_5674
Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
named onTrackedDataSet
Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
-
getTransformation
- Mappings:
Namespace Name Mixin selector official a
Lblu;a(Lagp;)Lj;
intermediary method_48845
Lnet/minecraft/class_8113;method_48845(Lnet/minecraft/class_2945;)Lnet/minecraft/class_4590;
named getTransformation
Lnet/minecraft/entity/decoration/DisplayEntity;getTransformation(Lnet/minecraft/entity/data/DataTracker;)Lnet/minecraft/util/math/AffineTransformation;
-
tick
public void tick()Ticks this entity. -
refreshData
protected abstract void refreshData(boolean shouldLerp, float lerpProgress) - Mappings:
Namespace Name Mixin selector official a
Lblu;a(ZF)V
intermediary method_49776
Lnet/minecraft/class_8113;method_49776(ZF)V
named refreshData
Lnet/minecraft/entity/decoration/DisplayEntity;refreshData(ZF)V
-
initDataTracker
protected void initDataTracker()Initializes data tracker.- Specified by:
initDataTracker
in classEntity
- Mappings:
Namespace Name Mixin selector official c_
Lblv;c_()V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693()V
named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker()V
-
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.- Specified by:
readCustomDataFromNbt
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lblv;a(Lsn;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
setTransformation
- Mappings:
Namespace Name Mixin selector official a
Lblu;a(Lj;)V
intermediary method_48849
Lnet/minecraft/class_8113;method_48849(Lnet/minecraft/class_4590;)V
named setTransformation
Lnet/minecraft/entity/decoration/DisplayEntity;setTransformation(Lnet/minecraft/util/math/AffineTransformation;)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.
- Specified by:
writeCustomDataToNbt
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lblv;b(Lsn;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
updateTrackedPositionAndAngles
public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps) - Overrides:
updateTrackedPositionAndAngles
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Lblv;a(DDDFFI)V
intermediary method_5759
Lnet/minecraft/class_1297;method_5759(DDDFFI)V
named updateTrackedPositionAndAngles
Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
-
getLerpTargetX
public double getLerpTargetX()- Overrides:
getLerpTargetX
in classEntity
- Mappings:
Namespace Name Mixin selector official p_
Lblv;p_()D
intermediary method_53830
Lnet/minecraft/class_1297;method_53830()D
named getLerpTargetX
Lnet/minecraft/entity/Entity;getLerpTargetX()D
-
getLerpTargetY
public double getLerpTargetY()- Overrides:
getLerpTargetY
in classEntity
- Mappings:
Namespace Name Mixin selector official N_
Lblv;N_()D
intermediary method_53827
Lnet/minecraft/class_1297;method_53827()D
named getLerpTargetY
Lnet/minecraft/entity/Entity;getLerpTargetY()D
-
getLerpTargetZ
public double getLerpTargetZ()- Overrides:
getLerpTargetZ
in classEntity
- Mappings:
Namespace Name Mixin selector official O_
Lblv;O_()D
intermediary method_53828
Lnet/minecraft/class_1297;method_53828()D
named getLerpTargetZ
Lnet/minecraft/entity/Entity;getLerpTargetZ()D
-
getLerpTargetPitch
public float getLerpTargetPitch()- Overrides:
getLerpTargetPitch
in classEntity
- Mappings:
Namespace Name Mixin selector official f_
Lblv;f_()F
intermediary method_53829
Lnet/minecraft/class_1297;method_53829()F
named getLerpTargetPitch
Lnet/minecraft/entity/Entity;getLerpTargetPitch()F
-
getLerpTargetYaw
public float getLerpTargetYaw()- Overrides:
getLerpTargetYaw
in classEntity
- Mappings:
Namespace Name Mixin selector official q_
Lblv;q_()F
intermediary method_53831
Lnet/minecraft/class_1297;method_53831()F
named getLerpTargetYaw
Lnet/minecraft/entity/Entity;getLerpTargetYaw()F
-
getVisibilityBoundingBox
- Overrides:
getVisibilityBoundingBox
in classEntity
- Mappings:
Namespace Name Mixin selector official i_
Lblv;i_()Lelo;
intermediary method_5830
Lnet/minecraft/class_1297;method_5830()Lnet/minecraft/class_238;
named getVisibilityBoundingBox
Lnet/minecraft/entity/Entity;getVisibilityBoundingBox()Lnet/minecraft/util/math/Box;
-
getPistonBehavior
Returns the behavior of the piston for this entity.This is
PistonBehavior.NORMAL
by default.AreaEffectCloudEntity
,MarkerEntity
, and markerArmorStandEntity
returnPistonBehavior.IGNORE
, causing the piston to not affect the entity's position. Other piston behaviors are inapplicable to entities, and treated likePistonBehavior.NORMAL
.- Overrides:
getPistonBehavior
in classEntity
- Returns:
- the behavior of the piston for this entity
- Mappings:
Namespace Name Mixin selector official s_
Lblv;s_()Leew;
intermediary method_5657
Lnet/minecraft/class_1297;method_5657()Lnet/minecraft/class_3619;
named getPistonBehavior
Lnet/minecraft/entity/Entity;getPistonBehavior()Lnet/minecraft/block/piston/PistonBehavior;
-
canAvoidTraps
public boolean canAvoidTraps()Returns whether the entity cannot trigger pressure plates or tripwires.BatEntity
is the only entity in vanilla that can avoid traps.- Overrides:
canAvoidTraps
in classEntity
- Returns:
- whether the entity cannot trigger pressure plates or tripwires
- Mappings:
Namespace Name Mixin selector official r_
Lblv;r_()Z
intermediary method_5696
Lnet/minecraft/class_1297;method_5696()Z
named canAvoidTraps
Lnet/minecraft/entity/Entity;canAvoidTraps()Z
-
getRenderState
- Mappings:
Namespace Name Mixin selector official q
Lblu;q()Lblu$k;
intermediary method_49777
Lnet/minecraft/class_8113;method_49777()Lnet/minecraft/class_8113$class_8229;
named getRenderState
Lnet/minecraft/entity/decoration/DisplayEntity;getRenderState()Lnet/minecraft/entity/decoration/DisplayEntity$RenderState;
-
setInterpolationDuration
private void setInterpolationDuration(int interpolationDuration) - Mappings:
Namespace Name Mixin selector official b
Lblu;b(I)V
intermediary method_52524
Lnet/minecraft/class_8113;method_52524(I)V
named setInterpolationDuration
Lnet/minecraft/entity/decoration/DisplayEntity;setInterpolationDuration(I)V
-
getInterpolationDuration
private int getInterpolationDuration()- Mappings:
Namespace Name Mixin selector official s
Lblu;s()I
intermediary method_52527
Lnet/minecraft/class_8113;method_52527()I
named getInterpolationDuration
Lnet/minecraft/entity/decoration/DisplayEntity;getInterpolationDuration()I
-
setStartInterpolation
private void setStartInterpolation(int startInterpolation) - Mappings:
Namespace Name Mixin selector official c
Lblu;c(I)V
intermediary method_52525
Lnet/minecraft/class_8113;method_52525(I)V
named setStartInterpolation
Lnet/minecraft/entity/decoration/DisplayEntity;setStartInterpolation(I)V
-
getStartInterpolation
private int getStartInterpolation()- Mappings:
Namespace Name Mixin selector official u
Lblu;u()I
intermediary method_52528
Lnet/minecraft/class_8113;method_52528()I
named getStartInterpolation
Lnet/minecraft/entity/decoration/DisplayEntity;getStartInterpolation()I
-
setTeleportDuration
private void setTeleportDuration(int teleportDuration) - Mappings:
Namespace Name Mixin selector official d
Lblu;d(I)V
intermediary method_52526
Lnet/minecraft/class_8113;method_52526(I)V
named setTeleportDuration
Lnet/minecraft/entity/decoration/DisplayEntity;setTeleportDuration(I)V
-
getTeleportDuration
private int getTeleportDuration()- Mappings:
Namespace Name Mixin selector official w
Lblu;w()I
intermediary method_52529
Lnet/minecraft/class_8113;method_52529()I
named getTeleportDuration
Lnet/minecraft/entity/decoration/DisplayEntity;getTeleportDuration()I
-
setBillboardMode
- Mappings:
Namespace Name Mixin selector official a
Lblu;a(Lblu$a;)V
intermediary method_48847
Lnet/minecraft/class_8113;method_48847(Lnet/minecraft/class_8113$class_8114;)V
named setBillboardMode
Lnet/minecraft/entity/decoration/DisplayEntity;setBillboardMode(Lnet/minecraft/entity/decoration/DisplayEntity$BillboardMode;)V
-
getBillboardMode
- Mappings:
Namespace Name Mixin selector official x
Lblu;x()Lblu$a;
intermediary method_48864
Lnet/minecraft/class_8113;method_48864()Lnet/minecraft/class_8113$class_8114;
named getBillboardMode
Lnet/minecraft/entity/decoration/DisplayEntity;getBillboardMode()Lnet/minecraft/entity/decoration/DisplayEntity$BillboardMode;
-
setBrightness
- Mappings:
Namespace Name Mixin selector official a
Lblu;a(Latf;)V
intermediary method_48846
Lnet/minecraft/class_8113;method_48846(Lnet/minecraft/class_8104;)V
named setBrightness
Lnet/minecraft/entity/decoration/DisplayEntity;setBrightness(Lnet/minecraft/entity/decoration/Brightness;)V
-
getBrightnessUnpacked
- Mappings:
Namespace Name Mixin selector official y
Lblu;y()Latf;
intermediary method_48868
Lnet/minecraft/class_8113;method_48868()Lnet/minecraft/class_8104;
named getBrightnessUnpacked
Lnet/minecraft/entity/decoration/DisplayEntity;getBrightnessUnpacked()Lnet/minecraft/entity/decoration/Brightness;
-
getBrightness
private int getBrightness()- Mappings:
Namespace Name Mixin selector official z
Lblu;z()I
intermediary method_48865
Lnet/minecraft/class_8113;method_48865()I
named getBrightness
Lnet/minecraft/entity/decoration/DisplayEntity;getBrightness()I
-
setViewRange
private void setViewRange(float viewRange) - Mappings:
Namespace Name Mixin selector official b
Lblu;b(F)V
intermediary method_48861
Lnet/minecraft/class_8113;method_48861(F)V
named setViewRange
Lnet/minecraft/entity/decoration/DisplayEntity;setViewRange(F)V
-
getViewRange
private float getViewRange()- Mappings:
Namespace Name Mixin selector official A
Lblu;A()F
intermediary method_48869
Lnet/minecraft/class_8113;method_48869()F
named getViewRange
Lnet/minecraft/entity/decoration/DisplayEntity;getViewRange()F
-
setShadowRadius
private void setShadowRadius(float shadowRadius) - Mappings:
Namespace Name Mixin selector official c
Lblu;c(F)V
intermediary method_48862
Lnet/minecraft/class_8113;method_48862(F)V
named setShadowRadius
Lnet/minecraft/entity/decoration/DisplayEntity;setShadowRadius(F)V
-
getShadowRadius
private float getShadowRadius()- Mappings:
Namespace Name Mixin selector official B
Lblu;B()F
intermediary method_48870
Lnet/minecraft/class_8113;method_48870()F
named getShadowRadius
Lnet/minecraft/entity/decoration/DisplayEntity;getShadowRadius()F
-
setShadowStrength
private void setShadowStrength(float shadowStrength) - Mappings:
Namespace Name Mixin selector official u
Lblu;u(F)V
intermediary method_48872
Lnet/minecraft/class_8113;method_48872(F)V
named setShadowStrength
Lnet/minecraft/entity/decoration/DisplayEntity;setShadowStrength(F)V
-
getShadowStrength
private float getShadowStrength()- Mappings:
Namespace Name Mixin selector official C
Lblu;C()F
intermediary method_48871
Lnet/minecraft/class_8113;method_48871()F
named getShadowStrength
Lnet/minecraft/entity/decoration/DisplayEntity;getShadowStrength()F
-
setDisplayWidth
private void setDisplayWidth(float width) - Mappings:
Namespace Name Mixin selector official v
Lblu;v(F)V
intermediary method_48873
Lnet/minecraft/class_8113;method_48873(F)V
named setDisplayWidth
Lnet/minecraft/entity/decoration/DisplayEntity;setDisplayWidth(F)V
-
getDisplayWidth
private float getDisplayWidth()- Mappings:
Namespace Name Mixin selector official D
Lblu;D()F
intermediary method_48874
Lnet/minecraft/class_8113;method_48874()F
named getDisplayWidth
Lnet/minecraft/entity/decoration/DisplayEntity;getDisplayWidth()F
-
setDisplayHeight
private void setDisplayHeight(float height) - Mappings:
Namespace Name Mixin selector official w
Lblu;w(F)V
intermediary method_48875
Lnet/minecraft/class_8113;method_48875(F)V
named setDisplayHeight
Lnet/minecraft/entity/decoration/DisplayEntity;setDisplayHeight(F)V
-
getGlowColorOverride
private int getGlowColorOverride()- Mappings:
Namespace Name Mixin selector official E
Lblu;E()I
intermediary method_48876
Lnet/minecraft/class_8113;method_48876()I
named getGlowColorOverride
Lnet/minecraft/entity/decoration/DisplayEntity;getGlowColorOverride()I
-
setGlowColorOverride
private void setGlowColorOverride(int glowColorOverride) - Mappings:
Namespace Name Mixin selector official m
Lblu;m(I)V
intermediary method_48858
Lnet/minecraft/class_8113;method_48858(I)V
named setGlowColorOverride
Lnet/minecraft/entity/decoration/DisplayEntity;setGlowColorOverride(I)V
-
getLerpProgress
public float getLerpProgress(float delta) - Mappings:
Namespace Name Mixin selector official a
Lblu;a(F)F
intermediary method_48844
Lnet/minecraft/class_8113;method_48844(F)F
named getLerpProgress
Lnet/minecraft/entity/decoration/DisplayEntity;getLerpProgress(F)F
-
getDisplayHeight
private float getDisplayHeight()- Mappings:
Namespace Name Mixin selector official G
Lblu;G()F
intermediary method_48877
Lnet/minecraft/class_8113;method_48877()F
named getDisplayHeight
Lnet/minecraft/entity/decoration/DisplayEntity;getDisplayHeight()F
-
setPosition
public void setPosition(double x, double y, double z) Sets the position and refreshes the bounding box.This should be called after creating an instance of non-living entities. For living entities,
Entity.refreshPositionAndAngles(net.minecraft.util.math.BlockPos, float, float)
should be used instead.- Overrides:
setPosition
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a_
Lblv;a_(DDD)V
intermediary method_5814
Lnet/minecraft/class_1297;method_5814(DDD)V
named setPosition
Lnet/minecraft/entity/Entity;setPosition(DDD)V
-
updateVisibilityBoundingBox
private void updateVisibilityBoundingBox()- Mappings:
Namespace Name Mixin selector official H
Lblu;H()V
intermediary method_48878
Lnet/minecraft/class_8113;method_48878()V
named updateVisibilityBoundingBox
Lnet/minecraft/entity/decoration/DisplayEntity;updateVisibilityBoundingBox()V
-
shouldRender
public boolean shouldRender(double distance) - Overrides:
shouldRender
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Lblv;a(D)Z
intermediary method_5640
Lnet/minecraft/class_1297;method_5640(D)Z
named shouldRender
Lnet/minecraft/entity/Entity;shouldRender(D)Z
-
getTeamColorValue
public int getTeamColorValue()Returns the team color value, or0xFFFFFF
if the entity is not in a team or the color is not set.- Overrides:
getTeamColorValue
in classEntity
- Returns:
- the team color value, or
0xFFFFFF
if the entity is not in a team or the color is not set - Mappings:
Namespace Name Mixin selector official j_
Lblv;j_()I
intermediary method_22861
Lnet/minecraft/class_1297;method_22861()I
named getTeamColorValue
Lnet/minecraft/entity/Entity;getTeamColorValue()I
-
copyRenderState
- Mappings:
Namespace Name Mixin selector official I
Lblu;I()Lblu$k;
intermediary method_49774
Lnet/minecraft/class_8113;method_49774()Lnet/minecraft/class_8113$class_8229;
named copyRenderState
Lnet/minecraft/entity/decoration/DisplayEntity;copyRenderState()Lnet/minecraft/entity/decoration/DisplayEntity$RenderState;
-
getLerpedRenderState
private DisplayEntity.RenderState getLerpedRenderState(DisplayEntity.RenderState state, float lerpProgress) - Mappings:
Namespace Name Mixin selector official a
Lblu;a(Lblu$k;F)Lblu$k;
intermediary method_49775
Lnet/minecraft/class_8113;method_49775(Lnet/minecraft/class_8113$class_8229;F)Lnet/minecraft/class_8113$class_8229;
named getLerpedRenderState
Lnet/minecraft/entity/decoration/DisplayEntity;getLerpedRenderState(Lnet/minecraft/entity/decoration/DisplayEntity$RenderState;F)Lnet/minecraft/entity/decoration/DisplayEntity$RenderState;
-