Package net.minecraft.entity.decoration
Class DisplayEntity.StencilDisplayEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.decoration.DisplayEntity
net.minecraft.entity.decoration.DisplayEntity.StencilDisplayEntity
- All Implemented Interfaces:
CommandOutput,Nameable,EntityLike
- Enclosing class:
DisplayEntity
- Mappings:
Namespace Name official biq$mintermediary net/minecraft/class_8113$class_8399named net/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.decoration.DisplayEntity
DisplayEntity.AbstractInterpolator<T>, DisplayEntity.BillboardMode, DisplayEntity.BlockDisplayEntity, DisplayEntity.class_8397, DisplayEntity.class_8398, DisplayEntity.FloatLerper, DisplayEntity.IntLerper, DisplayEntity.ItemDisplayEntity, DisplayEntity.RenderState, DisplayEntity.StencilDisplayEntity, DisplayEntity.TextDisplayEntityNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.class_8401, Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TrackedData<Integer>private static final Stringprivate static final TrackedData<Integer>private static final Stringprivate static final TrackedData<Integer>private static final Stringprivate static final IntSetFields inherited from class net.minecraft.entity.decoration.DisplayEntity
BILLBOARD_NBT_KEY, BRIGHTNESS_NBT_KEY, field_42384, field_42397, GLOW_COLOR_OVERRIDE_NBT_KEY, HEIGHT_NBT_KEY, INTERPOLATION_DURATION_NBT_KEY, renderingDataSet, SHADOW_RADIUS_NBT_KEY, SHADOW_STRENGTH_NBT_KEY, START_INTERPOLATION_KEY, TRANSFORMATION_NBT_KEY, VIEW_RANGE_NBT_KEY, WIDTH_NBT_KEYFields 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_36331, field_44078, field_44079, field_44082, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, horizontalCollision, horizontalSpeed, ID_KEY, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, nameOverride, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, onGround, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, VELOCITY_AFFECTING_POS_Y_OFFSET, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire, worldFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intgetColor()getData()private intgetLod()private intgetShape()protected voidInitializes data tracker.voidonTrackedDataSet(TrackedData<?> data) Called on the client when the tracked data is set.protected voidReads custom data fromnbt.protected voidrefreshData(boolean shouldLerp, float lerpProgress) private voidsetColor(int color) private voidsetLod(int lod) private voidsetShape(int shape) protected voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.decoration.DisplayEntity
createSpawnPacket, getFixedRotation, getLerpProgress, getPistonBehavior, getRenderState, getStartInterpolation, getTeamColorValue, getVisibilityBoundingBox, setInterpolationDuration, setPitch, setPosition, setStartInterpolation, setTransformation, setYaw, shouldRender, tickMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyDamageEffects, applyMidasCurse, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFly, canFreeze, canHit, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, damage, damageWithModifier, 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, getDisplayingEntity, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGravity, getHandItems, getHandPosOffset, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMoveEffect, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPitch, getPitch, getPortalRect, getPos, getPose, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeleportTarget, getTrackedPosition, getType, 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, ignoresCameraFrustum, interact, interactAt, isAlive, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, limitFallDistance, lookAt, method_50039, method_50632, method_50634, method_50635, method_50636, method_50638, method_50639, method_50643, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playExtinguishSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setIgnoreCameraFrustum, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, shouldBroadcastConsoleToOps, 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, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateTransformationState, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
-
Field Details
-
COLOR_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official oLbiq$m;o:Ljava/lang/String;intermediary field_44071Lnet/minecraft/class_8113$class_8399;field_44071:Ljava/lang/String;named COLOR_NBT_KEYLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;COLOR_NBT_KEY:Ljava/lang/String;
-
LOD_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official pLbiq$m;p:Ljava/lang/String;intermediary field_44072Lnet/minecraft/class_8113$class_8399;field_44072:Ljava/lang/String;named LOD_NBT_KEYLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;LOD_NBT_KEY:Ljava/lang/String;
-
SHAPE_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official qLbiq$m;q:Ljava/lang/String;intermediary field_44073Lnet/minecraft/class_8113$class_8399;field_44073:Ljava/lang/String;named SHAPE_NBT_KEYLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;SHAPE_NBT_KEY:Ljava/lang/String;
-
COLOR
- Mappings:
Namespace Name Mixin selector official rLbiq$m;r:Lacg;intermediary field_44074Lnet/minecraft/class_8113$class_8399;field_44074:Lnet/minecraft/class_2940;named COLORLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;COLOR:Lnet/minecraft/entity/data/TrackedData;
-
LOD
- Mappings:
Namespace Name Mixin selector official sLbiq$m;s:Lacg;intermediary field_44075Lnet/minecraft/class_8113$class_8399;field_44075:Lnet/minecraft/class_2940;named LODLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;LOD:Lnet/minecraft/entity/data/TrackedData;
-
SHAPE
- Mappings:
Namespace Name Mixin selector official tLbiq$m;t:Lacg;intermediary field_44076Lnet/minecraft/class_8113$class_8399;field_44076:Lnet/minecraft/class_2940;named SHAPELnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;SHAPE:Lnet/minecraft/entity/data/TrackedData;
-
STENCIL_RENDERING_DATA_IDS
- Mappings:
Namespace Name Mixin selector official uLbiq$m;u:Lit/unimi/dsi/fastutil/ints/IntSet;intermediary field_44077Lnet/minecraft/class_8113$class_8399;field_44077:Lit/unimi/dsi/fastutil/ints/IntSet;named STENCIL_RENDERING_DATA_IDSLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;STENCIL_RENDERING_DATA_IDS:Lit/unimi/dsi/fastutil/ints/IntSet;
-
data
- Mappings:
Namespace Name Mixin selector official aFLbiq$m;aF:Lbiq$m$a;intermediary field_44070Lnet/minecraft/class_8113$class_8399;field_44070:Lnet/minecraft/class_8113$class_8399$class_8400;named dataLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;data:Lnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity$Data;
-
-
Constructor Details
-
StencilDisplayEntity
- Mappings:
Namespace Name Mixin selector official <init>Lbir;<init>(Lbiv;Lcql;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses has 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.
nbtmight 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:
readCustomDataFromNbtin classDisplayEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLbir;a(Lqr;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeCustomDataToNbt
Writes custom data tonbt. Subclasses has 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:
writeCustomDataToNbtin classDisplayEntity- See Also:
- Mappings:
Namespace Name Mixin selector official bLbir;b(Lqr;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
initDataTracker
protected void initDataTracker()Initializes data tracker.- Overrides:
initDataTrackerin classDisplayEntity- Mappings:
Namespace Name Mixin selector official a_Lbir;a_()Vintermediary method_5693Lnet/minecraft/class_1297;method_5693()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()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.
- Overrides:
onTrackedDataSetin classDisplayEntity- Mappings:
Namespace Name Mixin selector official aLbir;a(Lacg;)Vintermediary method_5674Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)Vnamed onTrackedDataSetLnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
-
refreshData
protected void refreshData(boolean shouldLerp, float lerpProgress) - Specified by:
refreshDatain classDisplayEntity- Mappings:
Namespace Name Mixin selector official aLbiq;a(ZF)Vintermediary method_49776Lnet/minecraft/class_8113;method_49776(ZF)Vnamed refreshDataLnet/minecraft/entity/decoration/DisplayEntity;refreshData(ZF)V
-
getData
- Mappings:
Namespace Name Mixin selector official oLbiq$m;o()Lbiq$m$a;intermediary method_50628Lnet/minecraft/class_8113$class_8399;method_50628()Lnet/minecraft/class_8113$class_8399$class_8400;named getDataLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;getData()Lnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity$Data;
-
getColor
private int getColor()- Mappings:
Namespace Name Mixin selector official pLbiq$m;p()Iintermediary method_50629Lnet/minecraft/class_8113$class_8399;method_50629()Inamed getColorLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;getColor()I
-
setColor
private void setColor(int color) - Mappings:
Namespace Name Mixin selector official dLbiq$m;d(I)Vintermediary method_50625Lnet/minecraft/class_8113$class_8399;method_50625(I)Vnamed setColorLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;setColor(I)V
-
getLod
private int getLod()- Mappings:
Namespace Name Mixin selector official qLbiq$m;q()Iintermediary method_50630Lnet/minecraft/class_8113$class_8399;method_50630()Inamed getLodLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;getLod()I
-
setLod
private void setLod(int lod) - Mappings:
Namespace Name Mixin selector official lLbiq$m;l(I)Vintermediary method_50626Lnet/minecraft/class_8113$class_8399;method_50626(I)Vnamed setLodLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;setLod(I)V
-
getShape
private int getShape()- Mappings:
Namespace Name Mixin selector official rLbiq$m;r()Iintermediary method_50631Lnet/minecraft/class_8113$class_8399;method_50631()Inamed getShapeLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;getShape()I
-
setShape
private void setShape(int shape) - Mappings:
Namespace Name Mixin selector official mLbiq$m;m(I)Vintermediary method_50627Lnet/minecraft/class_8113$class_8399;method_50627(I)Vnamed setShapeLnet/minecraft/entity/decoration/DisplayEntity$StencilDisplayEntity;setShape(I)V
-