24 lines
964 B
Java
24 lines
964 B
Java
package net.minecraft.client.renderer.entity;
|
|
|
|
import net.fabricmc.api.EnvType;
|
|
import net.fabricmc.api.Environment;
|
|
import net.minecraft.client.model.ZombieModel;
|
|
import net.minecraft.client.model.geom.ModelLayerLocation;
|
|
import net.minecraft.client.model.geom.ModelLayers;
|
|
import net.minecraft.world.entity.monster.Zombie;
|
|
|
|
@Environment(EnvType.CLIENT)
|
|
public class ZombieRenderer extends AbstractZombieRenderer<Zombie, ZombieModel<Zombie>> {
|
|
public ZombieRenderer(EntityRendererProvider.Context context) {
|
|
this(context, ModelLayers.ZOMBIE, ModelLayers.ZOMBIE_INNER_ARMOR, ModelLayers.ZOMBIE_OUTER_ARMOR);
|
|
}
|
|
|
|
public ZombieRenderer(EntityRendererProvider.Context context, ModelLayerLocation zombieLayer, ModelLayerLocation innerArmor, ModelLayerLocation outerArmor) {
|
|
super(
|
|
context,
|
|
new ZombieModel<>(context.bakeLayer(zombieLayer)),
|
|
new ZombieModel<>(context.bakeLayer(innerArmor)),
|
|
new ZombieModel<>(context.bakeLayer(outerArmor))
|
|
);
|
|
}
|
|
}
|