use of com.toadstoolstudios.sprout.entities.GlowflyEntity in project Sprout by Toadstool-Studios.
the class GlowflyGlowingLayer method render.
@Override
public void render(MatrixStack matrixStackIn, VertexConsumerProvider bufferIn, int packedLightIn, GlowflyEntity entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch) {
if (entitylivingbaseIn.isInAir()) {
GeoModelProvider<GlowflyEntity> provider = this.getEntityModel();
GeoModel model = provider.getModel(provider.getModelLocation(entitylivingbaseIn));
VertexConsumer buffer = bufferIn.getBuffer(RenderLayer.getEyes(new Identifier(MODID, "textures/entity/glowfly_glow.png")));
getRenderer().render(model, entitylivingbaseIn, partialTicks, null, matrixStackIn, null, buffer, 15728640, OverlayTexture.DEFAULT_UV, 1F, 1F, 1F, 1F);
}
}
Aggregations