aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/dulkirfabric/mixin/render
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-06-09 16:55:24 -0500
committeringlettronald <inglettronald@gmail.com>2023-06-09 16:55:24 -0500
commitc0eb625a9b937bcb9256e98afb80d32443daa795 (patch)
tree3b1056bb17a50faabce65ee62a763050bb636741 /src/main/java/com/dulkirfabric/mixin/render
parent88a2da60ac3a074dd93fa13f262775b05573548f (diff)
downloadDulkirMod-Fabric-c0eb625a9b937bcb9256e98afb80d32443daa795.tar.gz
DulkirMod-Fabric-c0eb625a9b937bcb9256e98afb80d32443daa795.tar.bz2
DulkirMod-Fabric-c0eb625a9b937bcb9256e98afb80d32443daa795.zip
1.20 refactor
Diffstat (limited to 'src/main/java/com/dulkirfabric/mixin/render')
-rw-r--r--src/main/java/com/dulkirfabric/mixin/render/ScreenMixin.java9
-rw-r--r--src/main/java/com/dulkirfabric/mixin/render/TooltipMixin.java8
2 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/com/dulkirfabric/mixin/render/ScreenMixin.java b/src/main/java/com/dulkirfabric/mixin/render/ScreenMixin.java
index a29cfbc..56ed0f9 100644
--- a/src/main/java/com/dulkirfabric/mixin/render/ScreenMixin.java
+++ b/src/main/java/com/dulkirfabric/mixin/render/ScreenMixin.java
@@ -13,6 +13,7 @@
package com.dulkirfabric.mixin.render;
+import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.Drawable;
import net.minecraft.client.gui.Element;
import net.minecraft.client.gui.Selectable;
@@ -20,10 +21,18 @@ import net.minecraft.client.gui.screen.Screen;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
+import org.spongepowered.asm.mixin.injection.At;
+import org.spongepowered.asm.mixin.injection.Inject;
+import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(Screen.class)
public abstract class ScreenMixin {
@Shadow
protected abstract <T extends Element & Drawable & Selectable> T addDrawableChild(T drawableElement);
+
+ @Inject(method = "resize", at = @At("HEAD"))
+ private void beforeResizeScreen(MinecraftClient client, int width, int height, CallbackInfo ci) {
+
+ }
} \ No newline at end of file
diff --git a/src/main/java/com/dulkirfabric/mixin/render/TooltipMixin.java b/src/main/java/com/dulkirfabric/mixin/render/TooltipMixin.java
new file mode 100644
index 0000000..b484885
--- /dev/null
+++ b/src/main/java/com/dulkirfabric/mixin/render/TooltipMixin.java
@@ -0,0 +1,8 @@
+package com.dulkirfabric.mixin.render;
+
+import net.minecraft.client.gui.tooltip.Tooltip;
+import org.spongepowered.asm.mixin.Mixin;
+
+@Mixin(Tooltip.class)
+public class TooltipMixin {
+}