/* * Decompiled with CFR 0.152. */ package net.minecraft.client.renderer.entity; import net.minecraft.client.model.SnowGolemModel; import net.minecraft.client.model.geom.ModelLayers; import net.minecraft.client.renderer.entity.EntityRendererProvider; import net.minecraft.client.renderer.entity.MobRenderer; import net.minecraft.client.renderer.entity.layers.SnowGolemHeadLayer; import net.minecraft.client.renderer.entity.state.SnowGolemRenderState; import net.minecraft.resources.Identifier; import net.minecraft.world.entity.animal.SnowGolem; public class SnowGolemRenderer extends MobRenderer { private static final Identifier SNOW_GOLEM_LOCATION = Identifier.withDefaultNamespace("textures/entity/snow_golem.png"); public SnowGolemRenderer(EntityRendererProvider.Context context) { super(context, new SnowGolemModel(context.bakeLayer(ModelLayers.SNOW_GOLEM)), 0.5f); this.addLayer(new SnowGolemHeadLayer(this, context.getBlockRenderDispatcher())); } @Override public Identifier getTextureLocation(SnowGolemRenderState state) { return SNOW_GOLEM_LOCATION; } @Override public SnowGolemRenderState createRenderState() { return new SnowGolemRenderState(); } @Override public void extractRenderState(SnowGolem entity, SnowGolemRenderState state, float partialTicks) { super.extractRenderState(entity, state, partialTicks); state.hasPumpkin = entity.hasPumpkin(); } }