top.hendrixshen.magiclib.mixin.minecraft.accessor.ScreenAccessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magiclib-minecraft-api-1.19.3-fabric Show documentation
Show all versions of magiclib-minecraft-api-1.19.3-fabric Show documentation
Unleash magic into Minecraft, infuse souls, ascend to heaven!
package top.hendrixshen.magiclib.mixin.minecraft.accessor;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.class_364;
import net.minecraft.class_4068;
import net.minecraft.class_437;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
import org.spongepowered.asm.mixin.gen.Invoker;
import java.util.List;
@Environment(EnvType.CLIENT)
@Mixin(class_437.class)
public interface ScreenAccessor {
@Accessor("children")
List magiclib$getChildren();
//#if MC > 11605
@Invoker("addRenderableOnly")
class_4068 magiclib$invokeAddRenderableOnly(class_4068 guiEventListener);
//#if FORGE == 0
@Invoker("addRenderableWidget")
class_364 magiclib$invokeAddRenderableWidget(class_364 guiEventListener);
@Invoker("addWidget")
class_364 magiclib$invokeAddWidget(class_364 guiEventListener);
//#endif
//#else
//$$ @Accessor("buttons")
//$$ List magiclib$getButtons();
//$$
//$$ @Invoker("addButton")
//$$ AbstractWidget magiclib$invokeAddButton(AbstractWidget abstractWidget);
//#endif
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy