forked from RepoMirrors/kami-blue
added custom sizes for drawBox to Tessellator
This commit is contained in:
parent
0cb5cc5034
commit
5fb150effc
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue