minecraft-src/net/minecraft/client/renderer/entity/PillagerRenderer.java
2025-07-04 01:41:11 +03:00

26 lines
993 B
Java

package net.minecraft.client.renderer.entity;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.model.IllagerModel;
import net.minecraft.client.model.geom.ModelLayers;
import net.minecraft.client.renderer.entity.layers.ItemInHandLayer;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.monster.Pillager;
@Environment(EnvType.CLIENT)
public class PillagerRenderer extends IllagerRenderer<Pillager> {
private static final ResourceLocation PILLAGER = ResourceLocation.withDefaultNamespace("textures/entity/illager/pillager.png");
public PillagerRenderer(EntityRendererProvider.Context context) {
super(context, new IllagerModel<>(context.bakeLayer(ModelLayers.PILLAGER)), 0.5F);
this.addLayer(new ItemInHandLayer<>(this, context.getItemInHandRenderer()));
}
/**
* Returns the location of an entity's texture.
*/
public ResourceLocation getTextureLocation(Pillager entity) {
return PILLAGER;
}
}