23 lines
761 B
Java
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());
|
|
}
|
|
}
|