also why the FUCK does render function need random???
Reply chain from #8
Glad to see my ugly rope texture made it this far into the mod
:clueless:
For the random thingy, I don’t recall there being a need for it, but I have mostly used the “low level” vertex builder stuff so I don’t know
Maybe its for handling things like particles where it could need to have a random source? :thonk:
public void renderModel(PoseStack.Pose arg, VertexConsumer arg2, @Nullable BlockState arg3, BakedModel arg4, float f, float g, float h, int j, int k, IModelData modelData) {
Random random = new Random();
long i = 42L;
Direction[] var14 = DIRECTIONS;
int var15 = var14.length;
for(int var16 = 0; var16 < var15; ++var16) {
Direction direction = var14[var16];
random.setSeed(42L);
renderQuadList(arg, arg2, f, g, h, arg4.getQuads(arg3, direction, random, modelData), j, k);
}
random.setSeed(42L);
renderQuadList(arg, arg2, f, g, h, arg4.getQuads(arg3, (Direction)null, random, modelData), j, k);
}
```:clueless:
This conversation is on Discord · Reply there