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

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

package top.hendrixshen.magiclib.mixin.minecraft.i18n;

import net.minecraft.server.packs.PathPackResources;
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;

@Mixin(PathPackResources.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