-
Notifications
You must be signed in to change notification settings - Fork 8
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
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
src/main/java/phoupraw/mcmod/createsdelight/mixin/MixinAnimatedKineticsWidget.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,31 @@ | ||
package phoupraw.mcmod.createsdelight.mixin; | ||
|
||
import com.simibubi.create.compat.rei.widgets.AnimatedKineticsWidget; | ||
import net.minecraft.client.gui.Drawable; | ||
import net.minecraft.client.gui.Element; | ||
import net.minecraft.client.gui.ParentElement; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
import java.util.List; | ||
/** | ||
* @see MixinWidgetUtil_1 | ||
*/ | ||
@Mixin(AnimatedKineticsWidget.class) | ||
public abstract class MixinAnimatedKineticsWidget implements ParentElement , Drawable { | ||
@Shadow(remap = false) | ||
public abstract void method_25394(MatrixStack matrices, int mouseX, int mouseY, float delta); | ||
|
||
@Override | ||
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta) { | ||
method_25394(matrices, mouseX, mouseY, delta); | ||
} | ||
@Shadow(remap = false) | ||
public abstract List<? extends Element> method_25396(); | ||
|
||
@Override | ||
public List<? extends Element> children() { | ||
return method_25396(); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/main/java/phoupraw/mcmod/createsdelight/mixin/MixinWidgetUtil_1.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,31 @@ | ||
package phoupraw.mcmod.createsdelight.mixin; | ||
|
||
import net.minecraft.client.gui.Drawable; | ||
import net.minecraft.client.gui.Element; | ||
import net.minecraft.client.gui.ParentElement; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
import java.util.List; | ||
/** | ||
* 修复<a href="https://github.com/Phoupraw/CreateSDelightFabricJava/issues/1">Can't check the recipe of chocolate pie in jei alone #1</a>、<a href="https://github.com/Fabricators-of-Create/Create/issues/788">[Crash] Open REI recipe screen #788</a> | ||
*/ | ||
@Mixin(targets = "com.simibubi.create.compat.rei.category.WidgetUtil$1") | ||
public abstract class MixinWidgetUtil_1 implements ParentElement ,Drawable{ | ||
@Shadow(remap = false) | ||
public abstract void method_25394(MatrixStack matrices, int mouseX, int mouseY, float delta); | ||
|
||
@Override | ||
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta) { | ||
method_25394(matrices, mouseX, mouseY, delta); | ||
} | ||
|
||
@Shadow(remap = false) | ||
public abstract List<? extends Element> method_25396(); | ||
|
||
@Override | ||
public List<? extends Element> children() { | ||
return method_25396(); | ||
} | ||
} |