28 lines
1,004 B
Java
28 lines
1,004 B
Java
package net.minecraft.client.renderer.entity;
|
|
|
|
import com.mojang.blaze3d.vertex.PoseStack;
|
|
import net.fabricmc.api.EnvType;
|
|
import net.fabricmc.api.Environment;
|
|
import net.minecraft.client.model.geom.ModelLayers;
|
|
import net.minecraft.resources.ResourceLocation;
|
|
import net.minecraft.world.entity.monster.Zombie;
|
|
|
|
@Environment(EnvType.CLIENT)
|
|
public class HuskRenderer extends ZombieRenderer {
|
|
private static final ResourceLocation HUSK_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/zombie/husk.png");
|
|
|
|
public HuskRenderer(EntityRendererProvider.Context context) {
|
|
super(context, ModelLayers.HUSK, ModelLayers.HUSK_INNER_ARMOR, ModelLayers.HUSK_OUTER_ARMOR);
|
|
}
|
|
|
|
protected void scale(Zombie livingEntity, PoseStack poseStack, float partialTickTime) {
|
|
float f = 1.0625F;
|
|
poseStack.scale(1.0625F, 1.0625F, 1.0625F);
|
|
super.scale(livingEntity, poseStack, partialTickTime);
|
|
}
|
|
|
|
@Override
|
|
public ResourceLocation getTextureLocation(Zombie entity) {
|
|
return HUSK_LOCATION;
|
|
}
|
|
}
|