27 lines
1 KiB
Java
27 lines
1 KiB
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.ElderGuardian;
|
|
import net.minecraft.world.entity.monster.Guardian;
|
|
|
|
@Environment(EnvType.CLIENT)
|
|
public class ElderGuardianRenderer extends GuardianRenderer {
|
|
public static final ResourceLocation GUARDIAN_ELDER_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/guardian_elder.png");
|
|
|
|
public ElderGuardianRenderer(EntityRendererProvider.Context context) {
|
|
super(context, 1.2F, ModelLayers.ELDER_GUARDIAN);
|
|
}
|
|
|
|
protected void scale(Guardian livingEntity, PoseStack poseStack, float partialTickTime) {
|
|
poseStack.scale(ElderGuardian.ELDER_SIZE_SCALE, ElderGuardian.ELDER_SIZE_SCALE, ElderGuardian.ELDER_SIZE_SCALE);
|
|
}
|
|
|
|
@Override
|
|
public ResourceLocation getTextureLocation(Guardian entity) {
|
|
return GUARDIAN_ELDER_LOCATION;
|
|
}
|
|
}
|