123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- /*
- * Roughly Enough Items by Danielshe.
- * Licensed under the MIT License.
- */
- package me.shedaniel.math.compat;
- public class RenderHelper {
-
- static RenderSystem instance;
-
- static {
- boolean is1_15 = false;
- try {
- Class.forName("com.mojang.blaze3d.systems.RenderSystem");
- is1_15 = true;
- } catch (ClassNotFoundException ignored) {
- }
- try {
- if (is1_15)
- instance = (RenderSystem) Class.forName("me.shedaniel.math.compat.RenderSystem1_15").newInstance();
- else instance = (RenderSystem) Class.forName("me.shedaniel.math.compat.RenderSystem1_14").newInstance();
- } catch (Exception e) {
- e.printStackTrace();
- System.exit(0);
- }
- }
-
- public static void color4f(float float_1, float float_2, float float_3, float float_4) {
- instance.color4f(float_1, float_2, float_3, float_4);
- }
-
- public static void enableBlend() {
- instance.enableBlend();
- }
-
- public static void disableTexture() {
- instance.disableTexture();
- }
-
- public static void enableTexture() {
- instance.enableTexture();
- }
-
- public static void enableColorLogicOp() {
- instance.enableColorLogicOp();
- }
-
- public static void disableColorLogicOp() {
- instance.disableColorLogicOp();
- }
-
- public static void disableRescaleNormal() {
- instance.disableRescaleNormal();
- }
-
- public static void logicOp(int int_1) {
- instance.logicOp(int_1);
- }
-
- public static void pushMatrix() {
- instance.pushMatrix();
- }
-
- public static void disableFog() {
- instance.disableFog();
- }
-
- public static void popMatrix() {
- instance.popMatrix();
- }
-
- public static void disableLighting() {
- instance.disableLighting();
- }
-
- public static void enableLighting() {
- instance.enableLighting();
- }
-
- public static void enableRescaleNormal() {
- instance.enableRescaleNormal();
- }
-
- public static void disableDepthTest() {
- instance.disableDepthTest();
- }
-
- public static void enableDepthTest() {
- instance.enableDepthTest();
- }
-
- public static void disableAlphaTest() {
- instance.disableAlphaTest();
- }
-
- public static void enableAlphaTest() {
- instance.enableAlphaTest();
- }
-
- public static void disableBlend() {
- instance.disableBlend();
- }
-
- public static void shadeModel(int i) {
- instance.shadeModel(i);
- }
-
- public static void colorMask(boolean boolean_1, boolean boolean_2, boolean boolean_3, boolean boolean_4) {
- instance.colorMask(boolean_1, boolean_2, boolean_3, boolean_4);
- }
-
- public static void translatef(float float_1, float float_2, float float_3) {
- instance.translatef(float_1, float_2, float_3);
- }
-
- public static void blendFuncSeparate(int int_1, int int_2, int int_3, int int_4) {
- instance.blendFuncSeparate(int_1, int_2, int_3, int_4);
- }
-
- public static void blendFunc(int int_1, int int_2) {
- instance.blendFunc(int_1, int_2);
- }
- }
|