AvatarRenderState .java

net.minecraft.client.renderer.entity.state.AvatarRenderState (class): members: fallFlyingTimeInTicks, parrotOnRightShoulder, shouldApplyFlyingYRot, skin.

net.minecraft.client.renderer.entity.stateclass41 linesclientextends HumanoidRenderState1.4 KB

API Surface (1)

float fallFlyingScale()

Fields & Constants (22)

skin
capeFlap
capeLean
capeLean2
arrowCount
stingerCount
isSpectator
showHat
showJacket
showLeftPants
showRightPants
showLeftSleeve
showRightSleeve
showCape
fallFlyingTimeInTicks
shouldApplyFlyingYRot
flyingYRot
parrotOnLeftShoulder
parrotOnRightShoulder
id
showExtraEars
heldOnHead

Code Graph: Dependencies (6)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

AvatarRenderState.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.client.resources.DefaultPlayerSkin;
7
import net.minecraft.util.Mth;
8
import net.minecraft.world.entity.animal.parrot.Parrot.Variant;
9
import net.minecraft.world.entity.player.PlayerSkin;
10
import org.jspecify.annotations.Nullable;
11
12
@Environment(EnvType.CLIENT)
13
public class AvatarRenderState extends HumanoidRenderState {
14
	public PlayerSkin skin = DefaultPlayerSkin.getDefaultSkin();
15
	public float capeFlap;
16
	public float capeLean;
17
	public float capeLean2;
18
	public int arrowCount;
19
	public int stingerCount;
20
	public boolean isSpectator;
21
	public boolean showHat = true;
22
	public boolean showJacket = true;
23
	public boolean showLeftPants = true;
24
	public boolean showRightPants = true;
25
	public boolean showLeftSleeve = true;
26
	public boolean showRightSleeve = true;
27
	public boolean showCape = true;
28
	public float fallFlyingTimeInTicks;
29
	public boolean shouldApplyFlyingYRot;
30
	public float flyingYRot;
31
	public @Nullable Variant parrotOnLeftShoulder;
32
	public @Nullable Variant parrotOnRightShoulder;
33
	public int id;
34
	public boolean showExtraEars = false;
35
	public final ItemStackRenderState heldOnHead = new ItemStackRenderState();
36
37
	public float fallFlyingScale() {
38
		return Mth.clamp(this.fallFlyingTimeInTicks * this.fallFlyingTimeInTicks / 100.0F, 0.0F, 1.0F);
39
	}
40
}
41

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