content: package com.github.alexthe666.iceandfire.client.render.entity.layer;
  
  import com.github.alexthe666.iceandfire.client.model.ModelTroll;
  import com.github.alexthe666.iceandfire.client.render.entity.RenderTroll;
  import com.github.alexthe666.iceandfire.entity.EntityGorgon;
  import com.github.alexthe666.iceandfire.entity.EntityTroll;
  import com.mojang.blaze3d.vertex.PoseStack;
  import com.mojang.blaze3d.vertex.VertexConsumer;
  import net.minecraft.client.renderer.MultiBufferSource;
  import net.minecraft.client.renderer.RenderType;
  import net.minecraft.client.renderer.entity.layers.RenderLayer;
  import net.minecraft.client.renderer.texture.OverlayTexture;
  import org.jetbrains.annotations.NotNull;
  
  public class LayerTrollEyes extends RenderLayer<EntityTroll, ModelTroll> {
  
      private final RenderTroll renderer;
  
      public LayerTrollEyes(RenderTroll renderer) {
          super(renderer);
          this.renderer = renderer;
      }
  
      @Override
      public void render(@NotNull PoseStack matrixStackIn, @NotNull MultiBufferSource bufferIn, int packedLightIn, @NotNull EntityTroll troll, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch) {
          if (!EntityGorgon.isStoneMob(troll)) {
              RenderType tex = RenderType.eyes(troll.getTrollType().TEXTURE_EYES);
              VertexConsumer ivertexbuilder = bufferIn.getBuffer(tex);
              this.getParentModel().renderToBuffer(matrixStackIn, ivertexbuilder, packedLightIn, OverlayTexture.NO_OVERLAY, 1.0F, 1.0F, 1.0F, 1.0F);
  
          }
      }
  }
  