mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-23 11:27:54 +01:00
Fix compile errors
This commit is contained in:
parent
e7e3579315
commit
556e11a683
4 changed files with 5 additions and 5 deletions
|
@ -21,7 +21,7 @@ public interface FlwLibLink {
|
||||||
|
|
||||||
Map<String, ModelPart> getModelPartChildren(ModelPart part);
|
Map<String, ModelPart> getModelPartChildren(ModelPart part);
|
||||||
|
|
||||||
void compileModelPart(ModelPart part, PoseStack.Pose pose, VertexConsumer consumer, int light, int overlay, float red, float green, float blue, float alpha);
|
void compileModelPart(ModelPart part, PoseStack.Pose pose, VertexConsumer consumer, int light, int overlay, int color);
|
||||||
|
|
||||||
Deque<PoseStack.Pose> getPoseStack(PoseStack stack);
|
Deque<PoseStack.Pose> getPoseStack(PoseStack stack);
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ public final class MeshTree {
|
||||||
}
|
}
|
||||||
|
|
||||||
VertexWriter vertexWriter = objects.vertexWriter;
|
VertexWriter vertexWriter = objects.vertexWriter;
|
||||||
FlwLibLink.INSTANCE.compileModelPart(modelPart, IDENTITY_POSE, vertexWriter, LightTexture.FULL_BRIGHT, OverlayTexture.NO_OVERLAY, 1.0F, 1.0F, 1.0F, 1.0F);
|
FlwLibLink.INSTANCE.compileModelPart(modelPart, IDENTITY_POSE, vertexWriter, LightTexture.FULL_BRIGHT, OverlayTexture.NO_OVERLAY, 0xFFFFFFFF);
|
||||||
MemoryBlock data = vertexWriter.copyDataAndReset();
|
MemoryBlock data = vertexWriter.copyDataAndReset();
|
||||||
|
|
||||||
VertexView vertexView = new PosTexNormalVertexView();
|
VertexView vertexView = new PosTexNormalVertexView();
|
||||||
|
|
|
@ -32,8 +32,8 @@ public class FlwLibLinkImpl implements FlwLibLink {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void compileModelPart(ModelPart part, PoseStack.Pose pose, VertexConsumer consumer, int light, int overlay, float red, float green, float blue, float alpha) {
|
public void compileModelPart(ModelPart part, PoseStack.Pose pose, VertexConsumer consumer, int light, int overlay, int color) {
|
||||||
((ModelPartAccessor) (Object) part).flywheel$compile(pose, consumer, light, overlay, red, green, blue, alpha);
|
((ModelPartAccessor) (Object) part).flywheel$compile(pose, consumer, light, overlay, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -17,5 +17,5 @@ public interface ModelPartAccessor {
|
||||||
Map<String, ModelPart> flywheel$children();
|
Map<String, ModelPart> flywheel$children();
|
||||||
|
|
||||||
@Invoker("compile")
|
@Invoker("compile")
|
||||||
void flywheel$compile(PoseStack.Pose pose, VertexConsumer vertexConsumer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha);
|
void flywheel$compile(PoseStack.Pose pose, VertexConsumer buffer, int packedLight, int packedOverlay, int color);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue