generated from BocchiKessokuTeam/ForgeTemplateMod-ArchLoom
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
43 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/main/java/fi/dy/masa/itemscroller/mixin/MixinForgeHooksClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package fi.dy.masa.itemscroller.mixin; | ||
|
||
import fi.dy.masa.itemscroller.event.RenderEventHandler; | ||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraft.client.gui.screen.Screen; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
import net.minecraftforge.client.ForgeHooksClient; | ||
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(value = ForgeHooksClient.class, remap = false) | ||
public abstract class MixinForgeHooksClient { | ||
@Inject(method = "drawScreen", at = @At("RETURN")) | ||
private static void onDrawScreenPost(Screen screen, MatrixStack poseStack, int mouseX, int mouseY, float partialTick, CallbackInfo ci) | ||
{ | ||
RenderEventHandler.instance().onDrawScreenPost(MinecraftClient.getInstance()); | ||
} | ||
} |
24 changes: 0 additions & 24 deletions
24
src/main/java/fi/dy/masa/itemscroller/mixin/MixinGameRenderer.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
{ | ||
"required": true, | ||
"package": "fi.dy.masa.itemscroller.mixin", | ||
"compatibilityLevel": "JAVA_17", | ||
"minVersion": "0.8", | ||
"client": [ | ||
"IMixinCraftingResultSlot", | ||
"IMixinMerchantScreen", | ||
"IMixinScreenWithHandler", | ||
"IMixinSlot", | ||
"MixinAbstractInventoryScreen", | ||
"MixinClientPlayerInteractionManager", | ||
"MixinCraftingScreenHandler", | ||
"MixinGameRenderer", | ||
"MixinMerchantScreen", | ||
"MixinMerchantScreenHandler" | ||
], | ||
"injectors": { | ||
"defaultRequire": 1 | ||
} | ||
"required": true, | ||
"package": "fi.dy.masa.itemscroller.mixin", | ||
"compatibilityLevel": "JAVA_17", | ||
"minVersion": "0.8", | ||
"client": [ | ||
"IMixinCraftingResultSlot", | ||
"IMixinMerchantScreen", | ||
"IMixinScreenWithHandler", | ||
"IMixinSlot", | ||
"MixinAbstractInventoryScreen", | ||
"MixinClientPlayerInteractionManager", | ||
"MixinCraftingScreenHandler", | ||
"MixinForgeHooksClient", | ||
"MixinMerchantScreen", | ||
"MixinMerchantScreenHandler" | ||
], | ||
"injectors": { | ||
"defaultRequire": 1 | ||
} | ||
} |