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

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

There is a newer version: 0.6.59
Show newest version
package top.hendrixshen.magiclib.mixin.minecraft.accessor;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
import org.spongepowered.asm.mixin.gen.Accessor;
import org.spongepowered.asm.mixin.gen.Invoker;

//#if MC > 11701
import java.util.function.Consumer;
//#else
//$$ import java.util.List;
//#endif
import net.minecraft.class_2588;
import net.minecraft.class_5348;

@Mixin(class_2588.class)
public interface TranslatableComponentAccessor {
    @Mutable
    @Accessor("args")
    void magiclib$setArgs(Object[] args);

    //#if MC < 11800
    //$$ @Accessor("decomposedParts")
    //#if MC > 11502
    //$$ List magiclib$getDecomposedParts();
    //#else
    //$$ List magiclib$getDecomposedParts();
    //#endif
    //#endif

    @Invoker("decomposeTemplate")
    void magiclib$invokeDecomposeTemplate(
            String translation
            //#if MC > 11701
            , Consumer partsConsumer
            //#endif
    );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy