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

top.hendrixshen.magiclib.mixin.minecraft.i18n.PathPackResourcesMixin Maven / Gradle / Ivy

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

import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import top.hendrixshen.magiclib.api.fake.i18n.PackAccessor;

import java.io.File;
import java.nio.file.Path;
import net.minecraft.class_3259;

@Mixin(class_3259.class)
public class PathPackResourcesMixin implements PackAccessor {
    @Final
    @Shadow
    private Path root;

    @Override
    public File magiclib$getFile() {
        return this.root.toFile();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy