All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.hendrixshen.magiclib.mixin.minecraft.accessor.ScreenAccessor Maven / Gradle / Ivy

There is a newer version: 0.6.59
Show newest version
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