package net.minecraft.client.renderer.entity; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.model.EndermiteModel; import net.minecraft.client.model.geom.ModelLayers; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.monster.Endermite; @Environment(EnvType.CLIENT) public class EndermiteRenderer extends MobRenderer> { private static final ResourceLocation ENDERMITE_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/endermite.png"); public EndermiteRenderer(EntityRendererProvider.Context context) { super(context, new EndermiteModel<>(context.bakeLayer(ModelLayers.ENDERMITE)), 0.3F); } protected float getFlipDegrees(Endermite livingEntity) { return 180.0F; } /** * Returns the location of an entity's texture. */ public ResourceLocation getTextureLocation(Endermite entity) { return ENDERMITE_LOCATION; } }