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

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

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

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

@Mixin(FilePackResources.class)
public class FilePackResourcesMixin implements PackAccessor {
    @Final
    @Shadow
    private FilePackResources.SharedZipFileAccess zipFileAccess;

    @Override
    public File magiclib$getFile() {
        return this.zipFileAccess.file;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy