aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/ledger/mixin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/moe/nea/ledger/mixin')
-rw-r--r--src/main/java/moe/nea/ledger/mixin/AccessorGuiEditSign.java12
-rw-r--r--src/main/java/moe/nea/ledger/mixin/MouseClickEventPatch.java18
-rw-r--r--src/main/java/moe/nea/ledger/mixin/OnInitializationCompletePatch.java18
3 files changed, 0 insertions, 48 deletions
diff --git a/src/main/java/moe/nea/ledger/mixin/AccessorGuiEditSign.java b/src/main/java/moe/nea/ledger/mixin/AccessorGuiEditSign.java
deleted file mode 100644
index 52b8911..0000000
--- a/src/main/java/moe/nea/ledger/mixin/AccessorGuiEditSign.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package moe.nea.ledger.mixin;
-
-import net.minecraft.client.gui.inventory.GuiEditSign;
-import net.minecraft.tileentity.TileEntitySign;
-import org.spongepowered.asm.mixin.Mixin;
-import org.spongepowered.asm.mixin.gen.Accessor;
-
-@Mixin(GuiEditSign.class)
-public interface AccessorGuiEditSign {
- @Accessor("tileSign")
- TileEntitySign getTileEntity_ledger();
-}
diff --git a/src/main/java/moe/nea/ledger/mixin/MouseClickEventPatch.java b/src/main/java/moe/nea/ledger/mixin/MouseClickEventPatch.java
deleted file mode 100644
index 4e6e360..0000000
--- a/src/main/java/moe/nea/ledger/mixin/MouseClickEventPatch.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package moe.nea.ledger.mixin;
-
-import moe.nea.ledger.events.GuiClickEvent;
-import net.minecraft.client.gui.inventory.GuiContainer;
-import net.minecraft.inventory.Slot;
-import net.minecraftforge.common.MinecraftForge;
-import org.spongepowered.asm.mixin.Mixin;
-import org.spongepowered.asm.mixin.injection.At;
-import org.spongepowered.asm.mixin.injection.Inject;
-import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
-
-@Mixin(GuiContainer.class)
-public class MouseClickEventPatch {
- @Inject(method = "handleMouseClick", at = @At("HEAD"))
- private void onHandleMouseClick(Slot slotIn, int slotId, int clickedButton, int clickType, CallbackInfo ci) {
- MinecraftForge.EVENT_BUS.post(new GuiClickEvent(slotIn, slotId, clickedButton, clickType));
- }
-}
diff --git a/src/main/java/moe/nea/ledger/mixin/OnInitializationCompletePatch.java b/src/main/java/moe/nea/ledger/mixin/OnInitializationCompletePatch.java
deleted file mode 100644
index fc9afb7..0000000
--- a/src/main/java/moe/nea/ledger/mixin/OnInitializationCompletePatch.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package moe.nea.ledger.mixin;
-
-import moe.nea.ledger.events.InitializationComplete;
-import net.minecraft.client.Minecraft;
-import net.minecraftforge.common.MinecraftForge;
-import org.spongepowered.asm.mixin.Mixin;
-import org.spongepowered.asm.mixin.injection.At;
-import org.spongepowered.asm.mixin.injection.Inject;
-import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
-
-@Mixin(Minecraft.class)
-public class OnInitializationCompletePatch {
-
- @Inject(method = "startGame", at = @At(value = "INVOKE", target = "Lnet/minecraftforge/fml/client/FMLClientHandler;onInitializationComplete()V"))
- private void onInitComplete(CallbackInfo ci) {
- MinecraftForge.EVENT_BUS.post(new InitializationComplete());
- }
-}