diff --git a/api/UniversalCraft.api b/api/UniversalCraft.api index 40915bf..bf1f0c2 100644 --- a/api/UniversalCraft.api +++ b/api/UniversalCraft.api @@ -90,14 +90,14 @@ public class gg/essential/universal/UGraphics { public static field EMPTY_WITH_FONT_ID Lnet/minecraft/network/chat/Style; @1.16.2-forge public static field EMPTY_WITH_FONT_ID Lnet/minecraft/util/text/Style; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static field EMPTY_WITH_FONT_ID Lnet/minecraft/text/Style; public static field ZERO_TEXT_ALPHA I @1.8.9-forge public fun (Lnet/minecraft/client/renderer/WorldRenderer;)V @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public fun (Lcom/mojang/blaze3d/vertex/BufferBuilder;)V - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public fun (Lnet/minecraft/client/render/BufferBuilder;)V @1.12.2-forge,1.16.2-forge public fun (Lnet/minecraft/client/renderer/BufferBuilder;)V @@ -108,9 +108,9 @@ public class gg/essential/universal/UGraphics { @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public fun begin (ILcom/mojang/blaze3d/vertex/VertexFormat;)Lgg/essential/universal/UGraphics; public fun begin (ILgg/essential/universal/UGraphics$CommonVertexFormats;)Lgg/essential/universal/UGraphics; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public fun begin (ILnet/minecraft/client/render/VertexFormat;)Lgg/essential/universal/UGraphics; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public fun beginRenderLayer (Lnet/minecraft/client/render/RenderLayer;)Lgg/essential/universal/UGraphics; @1.12.2-forge,1.16.2-forge,1.8.9-forge public fun begin (ILnet/minecraft/client/renderer/vertex/VertexFormat;)Lgg/essential/universal/UGraphics; @@ -121,12 +121,12 @@ public class gg/essential/universal/UGraphics { public fun beginWithActiveShader (Lgg/essential/universal/UGraphics$DrawMode;Lgg/essential/universal/UGraphics$CommonVertexFormats;)Lgg/essential/universal/UGraphics; @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public fun beginWithDefaultShader (Lgg/essential/universal/UGraphics$DrawMode;Lcom/mojang/blaze3d/vertex/VertexFormat;)Lgg/essential/universal/UGraphics; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public fun beginWithActiveShader (Lgg/essential/universal/UGraphics$DrawMode;Lnet/minecraft/client/render/VertexFormat;)Lgg/essential/universal/UGraphics; @1.12.2-forge,1.16.2-forge,1.8.9-forge public fun beginWithActiveShader (Lgg/essential/universal/UGraphics$DrawMode;Lnet/minecraft/client/renderer/vertex/VertexFormat;)Lgg/essential/universal/UGraphics; public fun beginWithDefaultShader (Lgg/essential/universal/UGraphics$DrawMode;Lgg/essential/universal/UGraphics$CommonVertexFormats;)Lgg/essential/universal/UGraphics; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public fun beginWithDefaultShader (Lgg/essential/universal/UGraphics$DrawMode;Lnet/minecraft/client/render/VertexFormat;)Lgg/essential/universal/UGraphics; @1.12.2-forge,1.16.2-forge,1.8.9-forge public fun beginWithDefaultShader (Lgg/essential/universal/UGraphics$DrawMode;Lnet/minecraft/client/renderer/vertex/VertexFormat;)Lgg/essential/universal/UGraphics; @@ -136,9 +136,9 @@ public class gg/essential/universal/UGraphics { public static fun bindTexture (ILnet/minecraft/resources/ResourceLocation;)V @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public static fun bindTexture (Lnet/minecraft/resources/ResourceLocation;)V - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static fun bindTexture (ILnet/minecraft/util/Identifier;)V - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static fun bindTexture (Lnet/minecraft/util/Identifier;)V @1.12.2-forge,1.16.2-forge,1.8.9-forge public static fun bindTexture (ILnet/minecraft/util/ResourceLocation;)V @@ -186,7 +186,7 @@ public class gg/essential/universal/UGraphics { public static fun getStringWidth (Ljava/lang/String;)I @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public static fun getTessellator ()Lcom/mojang/blaze3d/vertex/Tesselator; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static fun getTessellator ()Lnet/minecraft/client/render/Tessellator; @1.12.2-forge,1.16.2-forge,1.8.9-forge public static fun getTessellator ()Lnet/minecraft/client/renderer/Tessellator; @@ -225,7 +225,7 @@ public class gg/essential/universal/UGraphics { @1.12.2-forge,1.16.2-fabric,1.16.2-forge,1.8.9-forge public static fun scale (FFF)V public static fun setActiveTexture (I)V - @1.17.1-fabric,1.17.1-forge,1.18.1-fabric,1.18.1-forge,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.2-forge,1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric + @1.17.1-fabric,1.17.1-forge,1.18.1-fabric,1.18.1-forge,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.2-forge,1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static fun setShader (Ljava/util/function/Supplier;)V public static fun shadeModel (I)V public fun tex (DD)Lgg/essential/universal/UGraphics; @@ -247,7 +247,7 @@ public final class gg/essential/universal/UGraphics$CommonVertexFormats : java/l public static final field POSITION_TEXTURE_LIGHT_COLOR Lgg/essential/universal/UGraphics$CommonVertexFormats; @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public final field mc Lcom/mojang/blaze3d/vertex/VertexFormat; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final field mc Lnet/minecraft/client/render/VertexFormat; @1.12.2-forge,1.16.2-forge,1.8.9-forge public final field mc Lnet/minecraft/client/renderer/vertex/VertexFormat; @@ -265,7 +265,7 @@ public final class gg/essential/universal/UGraphics$DrawMode : java/lang/Enum { public static fun fromGl (I)Lgg/essential/universal/UGraphics$DrawMode; @1.16.2-forge,1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public static fun fromRenderLayer (Lnet/minecraft/client/renderer/RenderType;)Lgg/essential/universal/UGraphics$DrawMode; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static fun fromRenderLayer (Lnet/minecraft/client/render/RenderLayer;)Lgg/essential/universal/UGraphics$DrawMode; public static fun valueOf (Ljava/lang/String;)Lgg/essential/universal/UGraphics$DrawMode; public static fun values ()[Lgg/essential/universal/UGraphics$DrawMode; @@ -289,9 +289,9 @@ public final class gg/essential/universal/UGuiButton { public static final fun getX (Lnet/minecraft/client/gui/components/AbstractWidget;)I @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public static final fun getY (Lnet/minecraft/client/gui/components/AbstractWidget;)I - @1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static final fun getX (Lnet/minecraft/client/gui/widget/ClickableWidget;)I - @1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static final fun getY (Lnet/minecraft/client/gui/widget/ClickableWidget;)I @1.16.2-forge public static final fun getX (Lnet/minecraft/client/gui/widget/Widget;)I @@ -318,7 +318,7 @@ public final class gg/essential/universal/UImage { public fun (Lcom/mojang/blaze3d/platform/NativeImage;)V @1.16.2-forge public fun (Lnet/minecraft/client/renderer/texture/NativeImage;)V - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public fun (Lnet/minecraft/client/texture/NativeImage;)V @1.12.2-forge,1.8.9-forge public fun (Ljava/awt/image/BufferedImage;)V @@ -329,7 +329,7 @@ public final class gg/essential/universal/UImage { public final fun getNativeImage ()Lcom/mojang/blaze3d/platform/NativeImage; @1.16.2-forge public final fun getNativeImage ()Lnet/minecraft/client/renderer/texture/NativeImage; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun getNativeImage ()Lnet/minecraft/client/texture/NativeImage; @1.12.2-forge,1.8.9-forge public final fun getNativeImage ()Ljava/awt/image/BufferedImage; @@ -459,7 +459,7 @@ public final class gg/essential/universal/UKeyboard { public static final fun getKeyName (II)Ljava/lang/String; @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public static final fun getKeyName (Lnet/minecraft/client/KeyMapping;)Ljava/lang/String; - @1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static final fun getKeyName (Lnet/minecraft/client/option/KeyBinding;)Ljava/lang/String; @1.16.2-fabric public static final fun getKeyName (Lnet/minecraft/client/options/KeyBinding;)Ljava/lang/String; @@ -514,14 +514,14 @@ public final class gg/essential/universal/UMatrixStack { public fun (Lcom/mojang/blaze3d/matrix/MatrixStack$Entry;)V @1.16.2-forge public fun (Lcom/mojang/blaze3d/matrix/MatrixStack;)V - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public fun (Lnet/minecraft/client/util/math/MatrixStack$Entry;)V - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public fun (Lnet/minecraft/client/util/math/MatrixStack;)V public final fun applyToGlobalState ()V public final fun fork ()Lgg/essential/universal/UMatrixStack; public final fun isEmpty ()Z - @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric + @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun multiply (Lorg/joml/Quaternionf;)V @1.17.1-forge,1.18.1-forge,1.19.2-forge public final fun multiply (Lcom/mojang/math/Quaternion;)V @@ -548,7 +548,7 @@ public final class gg/essential/universal/UMatrixStack { public final fun toMC ()Lcom/mojang/blaze3d/vertex/PoseStack; @1.16.2-forge public final fun toMC ()Lcom/mojang/blaze3d/matrix/MatrixStack; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun toMC ()Lnet/minecraft/client/util/math/MatrixStack; public final fun translate (DDD)V public final fun translate (FFF)V @@ -565,15 +565,15 @@ public final class gg/essential/universal/UMatrixStack$Compat { } public final class gg/essential/universal/UMatrixStack$Entry { - @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric + @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric,1.21.2-fabric public fun (Lorg/joml/Matrix4f;Lorg/joml/Matrix3f;)V - @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric + @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun component1 ()Lorg/joml/Matrix4f; - @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric + @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun component2 ()Lorg/joml/Matrix3f; - @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric + @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun copy (Lorg/joml/Matrix4f;Lorg/joml/Matrix3f;)Lgg/essential/universal/UMatrixStack$Entry; - @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric + @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static synthetic fun copy$default (Lgg/essential/universal/UMatrixStack$Entry;Lorg/joml/Matrix4f;Lorg/joml/Matrix3f;ILjava/lang/Object;)Lgg/essential/universal/UMatrixStack$Entry; @1.17.1-forge,1.18.1-forge,1.19.2-forge public fun (Lcom/mojang/math/Matrix4f;Lcom/mojang/math/Matrix3f;)V @@ -617,7 +617,7 @@ public final class gg/essential/universal/UMatrixStack$Entry { public static synthetic fun copy$default (Lgg/essential/universal/UMatrixStack$Entry;Lorg/lwjgl/util/vector/Matrix4f;Lorg/lwjgl/util/vector/Matrix3f;ILjava/lang/Object;)Lgg/essential/universal/UMatrixStack$Entry; public final fun deepCopy ()Lgg/essential/universal/UMatrixStack$Entry; public fun equals (Ljava/lang/Object;)Z - @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric + @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun getModel ()Lorg/joml/Matrix4f; @1.17.1-forge,1.18.1-forge,1.19.2-forge public final fun getModel ()Lcom/mojang/math/Matrix4f; @@ -628,7 +628,7 @@ public final class gg/essential/universal/UMatrixStack$Entry { @1.12.2-forge,1.8.9-forge public final fun getModel ()Lorg/lwjgl/util/vector/Matrix4f; public final fun getModelAsArray ()[F - @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric + @1.19.3-fabric,1.19.3-forge,1.19.4-fabric,1.19.4-forge,1.20-fabric,1.20.1-fabric,1.20.1-forge,1.20.2-fabric,1.20.2-forge,1.20.4-fabric,1.20.4-forge,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun getNormal ()Lorg/joml/Matrix3f; @1.17.1-forge,1.18.1-forge,1.19.2-forge public final fun getNormal ()Lcom/mojang/math/Matrix3f; @@ -643,7 +643,7 @@ public final class gg/essential/universal/UMatrixStack$Entry { public final fun toMCStack ()Lcom/mojang/blaze3d/vertex/PoseStack; @1.16.2-forge public final fun toMCStack ()Lcom/mojang/blaze3d/matrix/MatrixStack; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun toMCStack ()Lnet/minecraft/client/util/math/MatrixStack; public fun toString ()Ljava/lang/String; } @@ -655,25 +655,25 @@ public final class gg/essential/universal/UMinecraft { public static final fun getChatGUI ()Lnet/minecraft/client/gui/components/ChatComponent; @1.16.2-forge public static final fun getChatGUI ()Lnet/minecraft/client/gui/NewChatGui; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static final fun getChatGUI ()Lnet/minecraft/client/gui/hud/ChatHud; @1.12.2-forge,1.8.9-forge public static final fun getChatGUI ()Lnet/minecraft/client/gui/GuiNewChat; public static final fun getCurrentScreenObj ()Ljava/lang/Object; @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public static final fun getFontRenderer ()Lnet/minecraft/client/gui/Font; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static final fun getFontRenderer ()Lnet/minecraft/client/font/TextRenderer; @1.12.2-forge,1.16.2-forge,1.8.9-forge public static final fun getFontRenderer ()Lnet/minecraft/client/gui/FontRenderer; public static final fun getGuiScale ()I - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static final fun getMinecraft ()Lnet/minecraft/client/MinecraftClient; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static final fun getNetHandler ()Lnet/minecraft/client/network/ClientPlayNetworkHandler; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static final fun getPlayer ()Lnet/minecraft/client/network/ClientPlayerEntity; - @1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static final fun getSettings ()Lnet/minecraft/client/option/GameOptions; @1.16.2-fabric public static final fun getSettings ()Lnet/minecraft/client/options/GameOptions; @@ -700,7 +700,7 @@ public final class gg/essential/universal/UMinecraft { public static final fun getTime ()J @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public static final fun getWorld ()Lnet/minecraft/client/multiplayer/ClientLevel; - @1.16.2-fabric,1.16.2-forge,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.16.2-forge,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static final fun getWorld ()Lnet/minecraft/client/world/ClientWorld; @1.12.2-forge,1.8.9-forge public static final fun getWorld ()Lnet/minecraft/client/multiplayer/WorldClient; @@ -807,7 +807,7 @@ public abstract class gg/essential/universal/UScreen : net/minecraft/client/gui/ public fun updateGuiScale ()V } -@1.16.2-fabric,1.16.2-forge,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric +@1.16.2-fabric,1.16.2-forge,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public abstract class gg/essential/universal/UScreen : net/minecraft/client/gui/screen/Screen { public static final field Companion Lgg/essential/universal/UScreen$Companion; public fun ()V @@ -824,7 +824,7 @@ public abstract class gg/essential/universal/UScreen : net/minecraft/client/gui/ public final fun getRestoreCurrentGuiOnClose ()Z @1.16.2-forge public fun getTitle ()Lnet/minecraft/util/text/ITextComponent; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public fun getTitle ()Lnet/minecraft/text/Text; public fun getUnlocalizedName ()Ljava/lang/String; protected final fun init ()V @@ -834,7 +834,7 @@ public abstract class gg/essential/universal/UScreen : net/minecraft/client/gui/ public final fun mouseClicked (DDI)Z public final fun mouseDragged (DDIDD)Z public final fun mouseReleased (DDI)Z - @1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public fun mouseScrolled (DDDD)Z @1.16.2-fabric,1.16.2-forge,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric public final fun mouseScrolled (DDD)Z @@ -857,11 +857,11 @@ public abstract class gg/essential/universal/UScreen : net/minecraft/client/gui/ public final fun render (Lcom/mojang/blaze3d/matrix/MatrixStack;IIF)V @1.16.2-forge public final fun renderBackground (Lcom/mojang/blaze3d/matrix/MatrixStack;I)V - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun removed ()V - @1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun render (Lnet/minecraft/client/gui/DrawContext;IIF)V - @1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun renderBackground (Lnet/minecraft/client/gui/DrawContext;IIF)V @1.20-fabric,1.20.1-fabric public final fun renderBackground (Lnet/minecraft/client/gui/DrawContext;)V @@ -928,9 +928,9 @@ public final class gg/essential/universal/UScreen$Companion { public final fun displayScreen (Lnet/minecraft/client/gui/screens/Screen;)V @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public final fun getCurrentScreen ()Lnet/minecraft/client/gui/screens/Screen; - @1.16.2-fabric,1.16.2-forge,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.16.2-forge,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun displayScreen (Lnet/minecraft/client/gui/screen/Screen;)V - @1.16.2-fabric,1.16.2-forge,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.16.2-forge,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun getCurrentScreen ()Lnet/minecraft/client/gui/screen/Screen; @1.12.2-forge,1.8.9-forge public final fun displayScreen (Lnet/minecraft/client/gui/GuiScreen;)V @@ -950,11 +950,11 @@ public final class gg/essential/universal/USound { public final fun playSoundStatic (Lnet/minecraft/util/ResourceLocation;FF)V @1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public final fun playSoundStatic (Lnet/minecraft/core/Holder;FF)V - @1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun playSoundStatic (Lnet/minecraft/registry/entry/RegistryEntry;FF)V @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public final fun playSoundStatic (Lnet/minecraft/sounds/SoundEvent;FF)V - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun playSoundStatic (Lnet/minecraft/sound/SoundEvent;FF)V @1.12.2-forge,1.16.2-forge public final fun playSoundStatic (Lnet/minecraft/util/SoundEvent;FF)V @@ -1089,7 +1089,7 @@ public abstract interface class gg/essential/universal/shader/UShader { public final class gg/essential/universal/shader/UShader$Companion { public final fun fromLegacyShader (Ljava/lang/String;Ljava/lang/String;Lgg/essential/universal/shader/BlendState;)Lgg/essential/universal/shader/UShader; public final fun fromLegacyShader (Ljava/lang/String;Ljava/lang/String;Lgg/essential/universal/shader/BlendState;Lgg/essential/universal/UGraphics$CommonVertexFormats;)Lgg/essential/universal/shader/UShader; - @1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun fromMcShader (Lnet/minecraft/client/gl/ShaderProgram;Lgg/essential/universal/shader/BlendState;)Lgg/essential/universal/shader/UShader; @1.17.1-forge,1.18.1-forge,1.19.2-forge,1.19.3-forge,1.19.4-forge,1.20.1-forge,1.20.2-forge,1.20.4-forge public final fun fromMcShader (Lnet/minecraft/client/renderer/ShaderInstance;Lgg/essential/universal/shader/BlendState;)Lgg/essential/universal/shader/UShader; @@ -1114,7 +1114,7 @@ public final class gg/essential/universal/utils/ReleasedDynamicTexture : net/min public final fun uploadTexture ()V } -@1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric +@1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final class gg/essential/universal/utils/ReleasedDynamicTexture : net/minecraft/client/texture/AbstractTexture { public fun (II)V public fun (Lnet/minecraft/client/texture/NativeImage;)V @@ -1190,7 +1190,7 @@ public abstract interface class gg/essential/universal/vertex/UVertexConsumer { public static fun of (Lcom/mojang/blaze3d/vertex/VertexConsumer;)Lgg/essential/universal/vertex/UVertexConsumer; @1.16.2-forge public static fun of (Lcom/mojang/blaze3d/vertex/IVertexBuilder;)Lgg/essential/universal/vertex/UVertexConsumer; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static fun of (Lnet/minecraft/client/render/VertexConsumer;)Lgg/essential/universal/vertex/UVertexConsumer; @1.12.2-forge public static fun of (Lnet/minecraft/client/renderer/BufferBuilder;)Lgg/essential/universal/vertex/UVertexConsumer; @@ -1206,7 +1206,7 @@ public final class gg/essential/universal/vertex/UVertexConsumer$Companion { public final fun of (Lcom/mojang/blaze3d/vertex/VertexConsumer;)Lgg/essential/universal/vertex/UVertexConsumer; @1.16.2-forge public final fun of (Lcom/mojang/blaze3d/vertex/IVertexBuilder;)Lgg/essential/universal/vertex/UVertexConsumer; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final fun of (Lnet/minecraft/client/render/VertexConsumer;)Lgg/essential/universal/vertex/UVertexConsumer; @1.12.2-forge public final fun of (Lnet/minecraft/client/renderer/BufferBuilder;)Lgg/essential/universal/vertex/UVertexConsumer; @@ -1224,7 +1224,7 @@ public final class gg/essential/universal/wrappers/UPlayer { public static final fun getPlayer ()Lnet/minecraft/client/player/LocalPlayer; @1.16.2-forge public static final fun getPlayer ()Lnet/minecraft/client/entity/player/ClientPlayerEntity; - @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric + @1.16.2-fabric,1.17.1-fabric,1.18.1-fabric,1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public static final fun getPlayer ()Lnet/minecraft/client/network/ClientPlayerEntity; @1.12.2-forge,1.8.9-forge public static final fun getPlayer ()Lnet/minecraft/client/entity/EntityPlayerSP; @@ -1333,7 +1333,7 @@ public final class gg/essential/universal/wrappers/message/UTextComponent : net/ public fun visit (Lnet/minecraft/network/chat/FormattedText$StyledContentConsumer;Lnet/minecraft/network/chat/Style;)Ljava/util/Optional; } -@1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric +@1.19-fabric,1.19.1-fabric,1.19.2-fabric,1.19.3-fabric,1.19.4-fabric,1.20-fabric,1.20.1-fabric,1.20.2-fabric,1.20.4-fabric,1.20.6-fabric,1.21-fabric,1.21.2-fabric public final class gg/essential/universal/wrappers/message/UTextComponent : net/minecraft/text/Text { public static final field Companion Lgg/essential/universal/wrappers/message/UTextComponent$Companion; public fun (Ljava/lang/String;)V diff --git a/root.gradle.kts b/root.gradle.kts index 3f4e42b..b9a63a4 100644 --- a/root.gradle.kts +++ b/root.gradle.kts @@ -11,6 +11,7 @@ version = versionFromBuildIdAndBranch() preprocess { strictExtraMappings.set(true) + val fabric12102 = createNode("1.21.2-fabric", 12102, "srg") val fabric12100 = createNode("1.21-fabric", 12100, "srg") val fabric12006 = createNode("1.20.6-fabric", 12006, "srg") val forge12004 = createNode("1.20.4-forge", 12004, "srg") @@ -37,6 +38,7 @@ preprocess { val forge11202 = createNode("1.12.2-forge", 11202, "srg") val forge10809 = createNode("1.8.9-forge", 10809, "srg") + fabric12102.link(fabric12100) fabric12100.link(fabric12006) fabric12006.link(fabric12004) forge12004.link(fabric12004) diff --git a/settings.gradle.kts b/settings.gradle.kts index d190bc0..e888054 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -46,6 +46,7 @@ listOf( "1.20.4-forge", "1.20.6-fabric", "1.21-fabric", + "1.21.2-fabric", ).forEach { version -> include(":$version") project(":$version").apply { diff --git a/src/main/java/gg/essential/universal/UGraphics.java b/src/main/java/gg/essential/universal/UGraphics.java index 53558a5..c55bb3b 100644 --- a/src/main/java/gg/essential/universal/UGraphics.java +++ b/src/main/java/gg/essential/universal/UGraphics.java @@ -44,6 +44,12 @@ import static org.lwjgl.opengl.GL13.GL_ACTIVE_TEXTURE; import static org.lwjgl.opengl.GL13.GL_TEXTURE0; +//#if MC>=12102 +//$$ import net.minecraft.client.gl.ShaderProgramKey; +//$$ import net.minecraft.client.gl.ShaderProgramKeys; +//$$ import java.util.HashMap; +//#endif + //#if MC>=12100 //$$ import net.minecraft.client.render.BufferRenderer; //$$ import net.minecraft.client.render.BuiltBuffer; @@ -837,7 +843,11 @@ public static void disableDepth() { //#if MC>=11700 && !STANDALONE //$$ public static void setShader(Supplier shader) { - //$$ RenderSystem.setShader(shader); + //#if MC>=12102 + //$$ RenderSystem.setShader(shader.get()); + //#else + //$$ RenderSystem.setShader(shader); + //#endif //$$ } //#endif @@ -971,7 +981,20 @@ public UGraphics beginWithActiveShader(DrawMode mode, VertexFormat format) { } //#endif - //#if MC>=11700 && !STANDALONE + //#if STANDALONE + //#elseif MC>=12102 + //$$ private static final Map DEFAULT_SHADERS = new HashMap<>(); + //$$ static { + //$$ DEFAULT_SHADERS.put(VertexFormats.LINES, ShaderProgramKeys.RENDERTYPE_LINES); + //$$ DEFAULT_SHADERS.put(VertexFormats.POSITION_TEXTURE_COLOR_LIGHT, ShaderProgramKeys.PARTICLE); + //$$ DEFAULT_SHADERS.put(VertexFormats.POSITION, ShaderProgramKeys.POSITION); + //$$ DEFAULT_SHADERS.put(VertexFormats.POSITION_COLOR, ShaderProgramKeys.POSITION_COLOR); + //$$ DEFAULT_SHADERS.put(VertexFormats.POSITION_COLOR_LIGHT, ShaderProgramKeys.POSITION_COLOR_LIGHTMAP); + //$$ DEFAULT_SHADERS.put(VertexFormats.POSITION_TEXTURE, ShaderProgramKeys.POSITION_TEX); + //$$ DEFAULT_SHADERS.put(VertexFormats.POSITION_TEXTURE_COLOR, ShaderProgramKeys.POSITION_TEX_COLOR); + //$$ DEFAULT_SHADERS.put(VertexFormats.POSITION_COLOR_TEXTURE_LIGHT, ShaderProgramKeys.POSITION_COLOR_TEX_LIGHTMAP); + //$$ } + //#elseif MC>=11700 //$$ // Note: Needs to be an Identity hash map because VertexFormat's equals method is broken (compares via its //$$ // component Map but order very much matters for VertexFormat) as of 1.17 //$$ private static final Map> DEFAULT_SHADERS = new IdentityHashMap<>(); @@ -1011,11 +1034,16 @@ public UGraphics beginWithDefaultShader(DrawMode mode, CommonVertexFormats forma //#if !STANDALONE public UGraphics beginWithDefaultShader(DrawMode mode, VertexFormat format) { //#if MC>=11700 - //$$ Supplier supplier = DEFAULT_SHADERS.get(format); - //$$ if (supplier == null) { + //#if MC>=12102 + //$$ ShaderProgramKey shader = DEFAULT_SHADERS.get(format); + //#else + //$$ Supplier shader = DEFAULT_SHADERS.get(format); + //#endif + //$$ if (shader == null) { //$$ throw new IllegalArgumentException("No default shader for " + format + ". Bind your own and use beginWithActiveShader instead."); //$$ } - //$$ setShader(supplier); + //$$ + //$$ RenderSystem.setShader(shader); //#endif return beginWithActiveShader(mode, format); } @@ -1079,8 +1107,12 @@ public void drawSorted(int cameraX, int cameraY, int cameraZ) { //#else //#if MC>=12100 //$$ BuiltBuffer builtBuffer = instance.end(); + //#if MC>=12102 + //$$ builtBuffer.sortQuads(SORTED_QUADS_ALLOCATOR, RenderSystem.getProjectionType().getVertexSorter()); + //#else //$$ builtBuffer.sortQuads(SORTED_QUADS_ALLOCATOR, RenderSystem.getVertexSorting()); //#endif + //#endif //#if MC>=11600 //$$ if (renderLayer != null) { //#if MC>=12100 diff --git a/src/main/kotlin/gg/essential/universal/UImage.kt b/src/main/kotlin/gg/essential/universal/UImage.kt index e4e05d8..d41dcbe 100644 --- a/src/main/kotlin/gg/essential/universal/UImage.kt +++ b/src/main/kotlin/gg/essential/universal/UImage.kt @@ -31,6 +31,9 @@ class UImage(val nativeImage: BufferedImage) { fun getPixelRGBA(x: Int, y: Int): Int { //#if MC>=11600 && !STANDALONE + //#if MC>=12102 + //$$ return Integer.rotateLeft(nativeImage.getColorArgb(x, y), 8) // Convert ARGB to RGBA + //#else //$$ // Convert ABGR to RGBA //$$ val abgr = nativeImage.getPixelRGBA(x, y) // mappings are incorrect, this returns ABGR //$$ val a = abgr shr 24 and 0xFF @@ -38,6 +41,7 @@ class UImage(val nativeImage: BufferedImage) { //$$ val g = abgr shr 8 and 0xFF //$$ val r = abgr and 0xFF //$$ return (r shl 24) or (g shl 16) or (b shl 8) or a + //#endif //#else return Integer.rotateLeft(nativeImage.getRGB(x, y), 8) // Convert ARGB to RGBA //#endif @@ -45,12 +49,16 @@ class UImage(val nativeImage: BufferedImage) { fun setPixelRGBA(x: Int, y: Int, color: Int) { //#if MC>=11600 && !STANDALONE + //#if MC>=12102 + //$$ nativeImage.setColorArgb(x, y, Integer.rotateRight(color, 8)) // Convert RGBA to ARGB + //#else //$$ // Convert RGBA to ABGR //$$ val r = color shr 24 and 0xFF //$$ val g = color shr 16 and 0xFF //$$ val b = color shr 8 and 0xFF //$$ val a = color and 0xFF //$$ nativeImage.setPixelRGBA(x, y, (a shl 24) or (b shl 16) or (g shl 8) or r) // mappings are incorrect, this takes ABGR + //#endif //#else nativeImage.setRGB(x, y, Integer.rotateRight(color, 8)) // Convert RGBA to ARGB //#endif diff --git a/src/main/kotlin/gg/essential/universal/UMatrixStack.kt b/src/main/kotlin/gg/essential/universal/UMatrixStack.kt index 29a9e74..2617943 100644 --- a/src/main/kotlin/gg/essential/universal/UMatrixStack.kt +++ b/src/main/kotlin/gg/essential/universal/UMatrixStack.kt @@ -191,7 +191,9 @@ class UMatrixStack private constructor( //#else //$$ RenderSystem.getModelViewStack().method_34425(stack.last.model) //#endif + //#if MC<12102 //$$ RenderSystem.applyModelViewMatrix() + //#endif //#else stack.last.model.store(MATRIX_BUFFER) // Explicit cast to Buffer required so we do not use the JDK9+ override in FloatBuffer @@ -247,7 +249,9 @@ class UMatrixStack private constructor( //#else //$$ stack.pop() //#endif + //#if MC<12102 //$$ RenderSystem.applyModelViewMatrix() + //#endif //#else UGraphics.GL.popMatrix() //#endif diff --git a/src/main/kotlin/gg/essential/universal/shader/BlendState.kt b/src/main/kotlin/gg/essential/universal/shader/BlendState.kt index 0652e29..3332295 100644 --- a/src/main/kotlin/gg/essential/universal/shader/BlendState.kt +++ b/src/main/kotlin/gg/essential/universal/shader/BlendState.kt @@ -4,7 +4,7 @@ import gg.essential.universal.UGraphics import org.lwjgl.opengl.GL11 import org.lwjgl.opengl.GL14 -//#if MC>=11700 && !STANDALONE +//#if MC>=11700 && MC<12102 //$$ import net.minecraft.client.gl.GlBlendState //#endif @@ -22,7 +22,7 @@ data class BlendState( ) { val separate = srcRgb != srcAlpha || dstRgb != dstAlpha - //#if MC>=11700 && !STANDALONE + //#if MC>=11700 && MC<12102 //$$ private inner class McBlendState : GlBlendState { //$$ constructor() : super() //$$ constructor(srcRgb: Int, dstRgb: Int, func: Int) : super(srcRgb, dstRgb, func) diff --git a/src/main/kotlin/gg/essential/universal/wrappers/UPlayer.kt b/src/main/kotlin/gg/essential/universal/wrappers/UPlayer.kt index 0eb1da3..ff240b4 100644 --- a/src/main/kotlin/gg/essential/universal/wrappers/UPlayer.kt +++ b/src/main/kotlin/gg/essential/universal/wrappers/UPlayer.kt @@ -16,7 +16,9 @@ object UPlayer { @JvmStatic fun sendClientSideMessage(message: UTextComponent) { - //#if MC>=11900 + //#if MC>=12102 + //$$ getPlayer()!!.sendMessage(message, false) + //#elseif MC>=11900 //$$ getPlayer()!!.sendMessage(message) //#elseif MC>=11602 //#if FORGE diff --git a/versions/1.17.1-fabric/src/main/kotlin/gg/essential/universal/shader/MCShader.kt b/versions/1.17.1-fabric/src/main/kotlin/gg/essential/universal/shader/MCShader.kt index 8cf3288..49b111f 100644 --- a/versions/1.17.1-fabric/src/main/kotlin/gg/essential/universal/shader/MCShader.kt +++ b/versions/1.17.1-fabric/src/main/kotlin/gg/essential/universal/shader/MCShader.kt @@ -14,6 +14,11 @@ import org.apache.commons.codec.digest.DigestUtils import java.io.FileNotFoundException import kotlin.NoSuchElementException +//#if MC>=12102 +//$$ import net.minecraft.client.gl.CompiledShader +//$$ import net.minecraft.client.gl.ShaderProgramDefinition +//#endif + //#if MC>=11903 //$$ import gg.essential.universal.DummyPack //#endif @@ -93,6 +98,7 @@ internal class MCShader( println(json) } + //#if MC<12102 val factory = { id: Identifier -> val content = when { id.path.endsWith(".json") -> json @@ -108,6 +114,7 @@ internal class MCShader( ResourceImpl("__generated__", id, content.byteInputStream(), null) //#endif } + //#endif fun buildVertexFormat(elements: Map): VertexFormat { //#if MC>=12100 @@ -136,11 +143,29 @@ internal class MCShader( } + //#if MC>=12102 + //$$ val shaderProgram = ShaderProgram.create( + //$$ CompiledShader.compile( + //$$ Identifier.of("universalcraft", DigestUtils.sha1Hex(transformedVertSource).lowercase()), + //$$ CompiledShader.Type.VERTEX, transformedVertSource + //$$ ), + //$$ CompiledShader.compile( + //$$ Identifier.of("universalcraft", DigestUtils.sha1Hex(transformedFragSource).lowercase()), + //$$ CompiledShader.Type.FRAGMENT, transformedFragSource + //$$ ), + //$$ shaderVertexFormat, + //$$ ) + //$$ shaderProgram.set(transformer.uniforms.map { (name, type) -> + //$$ ShaderProgramDefinition.Uniform(name, type.typeName, type.default.size, type.default.map { it.toFloat() }) + //$$ }, transformer.samplers.map { name -> ShaderProgramDefinition.Sampler(name) }) + //$$ return MCShader(shaderProgram, blendState) + //#else val name = DigestUtils.sha1Hex(json).lowercase() //#if FORGE //$$ @Suppress("DEPRECATION") // Forge wants us to use its overload, but we don't care //#endif return MCShader(Shader(factory, name, shaderVertexFormat), blendState) + //#endif } } } @@ -166,6 +191,10 @@ internal class MCSamplerUniform(val mc: Shader, val name: String) : SamplerUnifo override val location: Int = 0 override fun setValue(textureId: Int) { + //#if MC>=12102 + //$$ mc.addSamplerTexture(name, textureId) + //#else mc.addSampler(name, textureId) + //#endif } } diff --git a/versions/1.21.2-fabric/gradle.properties b/versions/1.21.2-fabric/gradle.properties new file mode 100644 index 0000000..2c3eb61 --- /dev/null +++ b/versions/1.21.2-fabric/gradle.properties @@ -0,0 +1,2 @@ +essential.defaults.loom.minecraft=com.mojang:minecraft:1.21.2-rc1 +essential.defaults.loom.mappings=net.fabricmc:yarn:1.21.2-rc1+build.1:v2