added custom sizes for drawBox to Tessellator

This commit is contained in:
Bella 2020-04-21 16:48:34 -04:00
parent 0cb5cc5034
commit 5fb150effc
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
1 changed files with 8 additions and 0 deletions

View File

@ -77,6 +77,14 @@ public class KamiTessellator extends Tessellator {
drawBox(INSTANCE.getBuffer(), x, y, z, 1, 1, 1, r, g, b, a, sides);
}
public static void drawBox(BlockPos blockPos, int argb, int sides, int h, int w, int d, int i) {
final int a = (argb >>> 24) & 0xFF;
final int r = (argb >>> 16) & 0xFF;
final int g = (argb >>> 8) & 0xFF;
final int b = argb & 0xFF;
drawBox(INSTANCE.getBuffer(), blockPos.x, blockPos.y, blockPos.z, w, h, d, r, g, b, a, sides);
}
public static void drawBox(BlockPos blockPos, int r, int g, int b, int a, int sides) {
drawBox(INSTANCE.getBuffer(), blockPos.x, blockPos.y, blockPos.z, 1, 1, 1, r, g, b, a, sides);
}