修修修
This commit is contained in:
parent
00fdcaff64
commit
325484510a
|
|
@ -2,6 +2,7 @@ package com.extendedae_plus.mixin.accessor;
|
|||
|
||||
import net.minecraft.client.gui.components.Renderable;
|
||||
import net.minecraft.client.gui.components.events.GuiEventListener;
|
||||
import net.minecraft.client.gui.narration.NarratableEntry;
|
||||
import net.minecraft.client.gui.screens.Screen;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.gen.Invoker;
|
||||
|
|
@ -9,5 +10,5 @@ import org.spongepowered.asm.mixin.gen.Invoker;
|
|||
@Mixin(Screen.class)
|
||||
public interface ScreenInvoker {
|
||||
@Invoker("addRenderableWidget")
|
||||
<W extends GuiEventListener & Renderable> W eap$invokeAddRenderableWidget(W widget);
|
||||
<W extends GuiEventListener & Renderable & NarratableEntry> W eap$invokeAddRenderableWidget(W widget);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@ import java.util.function.Consumer;
|
|||
@Mixin(value = ContainerExPatternProvider.class, priority = 3000)
|
||||
public abstract class ContainerExPatternProviderMixin extends PatternProviderMenu implements IActionHolder {
|
||||
|
||||
@GuiSync(11451)
|
||||
// 使用高位唯一ID,避免与其他模组在同一类上的 @GuiSync 冲突
|
||||
@GuiSync(31415)
|
||||
@Unique
|
||||
public int eap$page = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user