top.hendrixshen.magiclib.mixin.minecraft.accessor.TranslatableComponentAccessor 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 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