2025-11-24 22:52:51 +03:00

75 lines
1.6 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.jspecify.annotations.Nullable
*/
package net.minecraft.server.packs.linkfs;
import java.io.IOException;
import java.nio.file.FileStore;
import java.nio.file.attribute.BasicFileAttributeView;
import java.nio.file.attribute.FileAttributeView;
import java.nio.file.attribute.FileStoreAttributeView;
import org.jspecify.annotations.Nullable;
class LinkFSFileStore
extends FileStore {
private final String name;
public LinkFSFileStore(String name) {
this.name = name;
}
@Override
public String name() {
return this.name;
}
@Override
public String type() {
return "index";
}
@Override
public boolean isReadOnly() {
return true;
}
@Override
public long getTotalSpace() {
return 0L;
}
@Override
public long getUsableSpace() {
return 0L;
}
@Override
public long getUnallocatedSpace() {
return 0L;
}
@Override
public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type) {
return type == BasicFileAttributeView.class;
}
@Override
public boolean supportsFileAttributeView(String name) {
return "basic".equals(name);
}
@Override
public <V extends FileStoreAttributeView> @Nullable V getFileStoreAttributeView(Class<V> type) {
return null;
}
@Override
public Object getAttribute(String attribute) throws IOException {
throw new UnsupportedOperationException();
}
}