LivingEntityRenderState .java

net.minecraft.client.renderer.entity.state.LivingEntityRenderState (class, 41 lines): members: ticksSinceKineticHitFeedback, wornHeadAnimationPos, bodyRot.

net.minecraft.client.renderer.entity.stateclass41 linesclientextends EntityRenderState1.3 KB

API Surface (1)

boolean hasPose(final Pose pose)

Fields & Constants (22)

bodyRot
yRot
xRot
deathTime
walkAnimationPos
walkAnimationSpeed
scale
ageScale
ticksSinceKineticHitFeedback
isUpsideDown
isFullyFrozen
isBaby
isInWater
isAutoSpinAttack
hasRedOverlay
isInvisibleToPlayer
bedOrientation
pose
headItem
wornHeadAnimationPos
wornHeadType
wornHeadProfile

Full Source

LivingEntityRenderState.java41 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.entity.state;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.client.renderer.item.ItemStackRenderState;
6
import net.minecraft.core.Direction;
7
import net.minecraft.world.entity.Pose;
8
import net.minecraft.world.item.component.ResolvableProfile;
9
import net.minecraft.world.level.block.SkullBlock.Type;
10
import org.jspecify.annotations.Nullable;
11
12
@Environment(EnvType.CLIENT)
13
public class LivingEntityRenderState extends EntityRenderState {
14
	public float bodyRot;
15
	public float yRot;
16
	public float xRot;
17
	public float deathTime;
18
	public float walkAnimationPos;
19
	public float walkAnimationSpeed;
20
	public float scale = 1.0F;
21
	public float ageScale = 1.0F;
22
	public float ticksSinceKineticHitFeedback;
23
	public boolean isUpsideDown;
24
	public boolean isFullyFrozen;
25
	public boolean isBaby;
26
	public boolean isInWater;
27
	public boolean isAutoSpinAttack;
28
	public boolean hasRedOverlay;
29
	public boolean isInvisibleToPlayer;
30
	public @Nullable Direction bedOrientation;
31
	public Pose pose = Pose.STANDING;
32
	public final ItemStackRenderState headItem = new ItemStackRenderState();
33
	public float wornHeadAnimationPos;
34
	public @Nullable Type wornHeadType;
35
	public @Nullable ResolvableProfile wornHeadProfile;
36
37
	public boolean hasPose(final Pose pose) {
38
		return this.pose == pose;
39
	}
40
}
41

Decompiled Minecraft 26.3 source of LivingEntityRenderState (net/minecraft/client/renderer/entity/state/LivingEntityRenderState.java) with Mojang official mappings, stored verbatim on the site.