SheepRenderState .java

net.minecraft.client.renderer.entity.state.SheepRenderState (class): members: headEatPositionScale, headEatAngleScale, getWoolColor, isJebSheep, woolColor.

net.minecraft.client.renderer.entity.stateclass20 linesclientextends LivingEntityRenderState656 B

API Surface (1)

int getWoolColor()

Fields & Constants (5)

headEatPositionScale
headEatAngleScale
isSheared
woolColor
isJebSheep

Code Graph: Dependencies (3)

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

Full Source

SheepRenderState.java20 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.color.ColorLerper;
6
import net.minecraft.world.item.DyeColor;
7
8
@Environment(EnvType.CLIENT)
9
public class SheepRenderState extends LivingEntityRenderState {
10
	public float headEatPositionScale;
11
	public float headEatAngleScale;
12
	public boolean isSheared;
13
	public DyeColor woolColor = DyeColor.WHITE;
14
	public boolean isJebSheep;
15
16
	public int getWoolColor() {
17
		return this.isJebSheep ? ColorLerper.getLerpedColor(ColorLerper.Type.SHEEP, this.ageInTicks) : ColorLerper.Type.SHEEP.getColor(this.woolColor);
18
	}
19
}
20

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