From 3904749115fb7a71bf7c7f9d5d1530e1be2c115b Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 30 Jan 2024 20:47:17 +0100 Subject: more tutorial --- .../java/com/example/mixin/RightClickWithItemEvent.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/main/java/com/example/mixin/RightClickWithItemEvent.java (limited to 'src/main/java/com/example/mixin/RightClickWithItemEvent.java') 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; +} -- cgit