Skip to content

Commit

Permalink
修复 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoupraw committed Jan 31, 2023
1 parent c1950ae commit f2ce108
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
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();
}
}
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();
}
}

0 comments on commit f2ce108

Please sign in to comment.