aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/example/mixin
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-01-30 20:47:17 +0100
committerLinnea Gräf <nea@nea.moe>2024-01-30 20:47:17 +0100
commit3904749115fb7a71bf7c7f9d5d1530e1be2c115b (patch)
tree835993f2f8ac5875d0f02fe2356d26ef173650bf /src/main/java/com/example/mixin
parent4eb2056f2f20366ea49a7cf54d892bd3f25bdb16 (diff)
downloadforge1.8.9template-tutorial.tar.gz
forge1.8.9template-tutorial.tar.bz2
forge1.8.9template-tutorial.zip
more tutorialtutorial
Diffstat (limited to 'src/main/java/com/example/mixin')
-rw-r--r--src/main/java/com/example/mixin/RightClickWithItemEvent.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/com/example/mixin/RightClickWithItemEvent.java b/src/main/java/com/example/mixin/RightClickWithItemEvent.java
new file mode 100644
index 0000000..c1686cb
--- /dev/null
+++ b/src/main/java/com/example/mixin/RightClickWithItemEvent.java
@@ -0,0 +1,14 @@
+package com.example.mixin;
+
+import net.minecraft.client.multiplayer.PlayerControllerMP;
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.Unique;
+
+import java.awt.*;
+
+// This Mixin targets the Minecraft class
+@Mixin(PlayerControllerMP.class)
+public class RightClickWithItemEvent {
+ @Unique
+ Color color_mymod = Color.RED;
+}