2025-11-24 22:52:51 +03:00

31 lines
1.4 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.client.renderer.entity;
import net.minecraft.client.model.ZombieModel;
import net.minecraft.client.model.geom.ModelLayerLocation;
import net.minecraft.client.model.geom.ModelLayers;
import net.minecraft.client.renderer.entity.AbstractZombieRenderer;
import net.minecraft.client.renderer.entity.ArmorModelSet;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.renderer.entity.state.ZombieRenderState;
import net.minecraft.world.entity.monster.Zombie;
public class ZombieRenderer
extends AbstractZombieRenderer<Zombie, ZombieRenderState, ZombieModel<ZombieRenderState>> {
public ZombieRenderer(EntityRendererProvider.Context context) {
this(context, ModelLayers.ZOMBIE, ModelLayers.ZOMBIE_BABY, ModelLayers.ZOMBIE_ARMOR, ModelLayers.ZOMBIE_BABY_ARMOR);
}
@Override
public ZombieRenderState createRenderState() {
return new ZombieRenderState();
}
public ZombieRenderer(EntityRendererProvider.Context context, ModelLayerLocation body, ModelLayerLocation babyBody, ArmorModelSet<ModelLayerLocation> armorSet, ArmorModelSet<ModelLayerLocation> babyArmorSet) {
super(context, new ZombieModel(context.bakeLayer(body)), new ZombieModel(context.bakeLayer(babyBody)), ArmorModelSet.bake(armorSet, context.getModelSet(), ZombieModel::new), ArmorModelSet.bake(babyArmorSet, context.getModelSet(), ZombieModel::new));
}
}