generated from neoforged/MDK
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
fe2997d
commit d27df7f
Showing
16 changed files
with
132 additions
and
63 deletions.
There are no files selected for viewing
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
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
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
68 changes: 34 additions & 34 deletions
68
src/main/java/com/replaymod/core/mixin/GuiScreenAccessor.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 |
---|---|---|
@@ -1,34 +1,34 @@ | ||
package com.replaymod.core.mixin; | ||
|
||
import net.minecraft.client.gui.screen.Screen; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
|
||
//#if MC>=11700 | ||
import net.minecraft.client.gui.Drawable; | ||
import net.minecraft.client.gui.Element; | ||
import net.minecraft.client.gui.Selectable; | ||
//#else | ||
//#endif | ||
|
||
//#if MC>=11400 | ||
import net.minecraft.client.gui.widget.ClickableWidget; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
//#else | ||
//$$ import net.minecraft.client.gui.GuiButton; | ||
//$$ import org.spongepowered.asm.mixin.gen.Accessor; | ||
//$$ import java.util.List; | ||
//#endif | ||
|
||
@Mixin(Screen.class) | ||
public interface GuiScreenAccessor { | ||
//#if MC>=11700 | ||
@Invoker("addDrawableChild") | ||
<T extends Element & Drawable & Selectable> T invokeAddButton(T drawableElement); | ||
//#elseif MC>=11400 | ||
//$$ @Invoker | ||
//$$ <T extends AbstractButtonWidget> T invokeAddButton(T button); | ||
//#else | ||
//$$ @Accessor("buttonList") | ||
//$$ List<GuiButton> getButtons(); | ||
//#endif | ||
} | ||
//package com.replaymod.core.mixin; | ||
// | ||
//import net.minecraft.client.gui.screen.Screen; | ||
//import org.spongepowered.asm.mixin.Mixin; | ||
// | ||
////#if MC>=11700 | ||
//import net.minecraft.client.gui.Drawable; | ||
//import net.minecraft.client.gui.Element; | ||
//import net.minecraft.client.gui.Selectable; | ||
////#else | ||
////#endif | ||
// | ||
////#if MC>=11400 | ||
//import net.minecraft.client.gui.widget.ClickableWidget; | ||
//import org.spongepowered.asm.mixin.gen.Invoker; | ||
////#else | ||
////$$ import net.minecraft.client.gui.GuiButton; | ||
////$$ import org.spongepowered.asm.mixin.gen.Accessor; | ||
////$$ import java.util.List; | ||
////#endif | ||
// | ||
//@Mixin(Screen.class) | ||
//public interface GuiScreenAccessor { | ||
// //#if MC>=11700 | ||
// @Invoker(value = "addDrawableChild") | ||
// <T extends Element & Drawable & Selectable> T invokeAddButton(T drawableElement); | ||
// //#elseif MC>=11400 | ||
// //$$ @Invoker | ||
// //$$ <T extends AbstractButtonWidget> T invokeAddButton(T button); | ||
// //#else | ||
// //$$ @Accessor("buttonList") | ||
// //$$ List<GuiButton> getButtons(); | ||
// //#endif | ||
//} |
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
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
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
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
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
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
13 changes: 13 additions & 0 deletions
13
src/main/java/com/replaymod/render/utils/FlawlessFramesHelper.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,13 @@ | ||
package com.replaymod.render.utils; | ||
|
||
public class FlawlessFramesHelper { | ||
|
||
public static boolean hasEmbeddium() { | ||
return FlawlessFrames.hasSodium(); | ||
} | ||
|
||
public static void setEnabled(boolean enabled) { | ||
FlawlessFrames.setEnabled(enabled); | ||
} | ||
|
||
} |
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
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
1 change: 1 addition & 0 deletions
1
...ain/resources/META-INF/services/org.embeddedt.embeddium.api.service.FlawlessFramesService
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 @@ | ||
com.replaymod.render.utils.FlawlessFrames |
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
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,3 @@ | ||
accessWidener v1 named | ||
|
||
accessible method net/minecraft/client/gui/screen/Screen addDrawableChild (Lnet/minecraft/client/gui/Element;)Lnet/minecraft/client/gui/Element; |