Search in sources :

Example 1 with GlowflyEntity

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);
    }
}
Also used : Identifier(net.minecraft.util.Identifier) GlowflyEntity(com.toadstoolstudios.sprout.entities.GlowflyEntity) VertexConsumer(net.minecraft.client.render.VertexConsumer) GeoModel(software.bernie.geckolib3.geo.render.built.GeoModel)

Aggregations

GlowflyEntity (com.toadstoolstudios.sprout.entities.GlowflyEntity)1 VertexConsumer (net.minecraft.client.render.VertexConsumer)1 Identifier (net.minecraft.util.Identifier)1 GeoModel (software.bernie.geckolib3.geo.render.built.GeoModel)1