minecraft-src/net/minecraft/client/renderer/entity/state/SheepRenderState.java
2025-09-18 12:27:44 +00:00

23 lines
761 B
Java

package net.minecraft.client.renderer.entity.state;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.color.ColorLerper;
import net.minecraft.world.item.DyeColor;
@Environment(EnvType.CLIENT)
public class SheepRenderState extends LivingEntityRenderState {
public float headEatPositionScale;
public float headEatAngleScale;
public boolean isSheared;
public DyeColor woolColor = DyeColor.WHITE;
public int id;
public int getWoolColor() {
return this.isJebSheep() ? ColorLerper.getLerpedColor(ColorLerper.Type.SHEEP, this.ageInTicks) : ColorLerper.Type.SHEEP.getColor(this.woolColor);
}
public boolean isJebSheep() {
return this.customName != null && "jeb_".equals(this.customName.getString());
}
}