/* * Decompiled with CFR 0.152. */ package net.minecraft.client.renderer.entity; import net.minecraft.client.model.SilverfishModel; import net.minecraft.client.model.geom.ModelLayers; import net.minecraft.client.renderer.entity.EntityRendererProvider; import net.minecraft.client.renderer.entity.MobRenderer; import net.minecraft.client.renderer.entity.state.LivingEntityRenderState; import net.minecraft.resources.Identifier; import net.minecraft.world.entity.monster.Silverfish; public class SilverfishRenderer extends MobRenderer { private static final Identifier SILVERFISH_LOCATION = Identifier.withDefaultNamespace("textures/entity/silverfish.png"); public SilverfishRenderer(EntityRendererProvider.Context context) { super(context, new SilverfishModel(context.bakeLayer(ModelLayers.SILVERFISH)), 0.3f); } @Override protected float getFlipDegrees() { return 180.0f; } @Override public Identifier getTextureLocation(LivingEntityRenderState state) { return SILVERFISH_LOCATION; } @Override public LivingEntityRenderState createRenderState() { return new LivingEntityRenderState(); } }