Fish animation & egg

This commit is contained in:
paulevsGitch 2020-10-23 21:42:27 +03:00
parent e76577328c
commit 112783835e
5 changed files with 79 additions and 7 deletions

View file

@ -1,5 +1,7 @@
package ru.betterend.entity.model;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.model.ModelPart;
import net.minecraft.client.render.VertexConsumer;
import net.minecraft.client.util.math.MatrixStack;
@ -97,6 +99,8 @@ public class ModelEntityDragonfly extends BlockBenchModel<EntityDragonfly> {
@Override
public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha) {
RenderSystem.enableCull();
model.render(matrices, vertices, light, overlay);
RenderSystem.disableCull();
}
}