/* * Decompiled with CFR 0.152. */ package net.minecraft.server.packs.resources; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.function.Predicate; import java.util.stream.Stream; import net.minecraft.resources.Identifier; import net.minecraft.server.packs.PackResources; import net.minecraft.server.packs.resources.Resource; import net.minecraft.server.packs.resources.ResourceProvider; public interface ResourceManager extends ResourceProvider { public Set getNamespaces(); public List getResourceStack(Identifier var1); public Map listResources(String var1, Predicate var2); public Map> listResourceStacks(String var1, Predicate var2); public Stream listPacks(); public static enum Empty implements ResourceManager { INSTANCE; @Override public Set getNamespaces() { return Set.of(); } @Override public Optional getResource(Identifier location) { return Optional.empty(); } @Override public List getResourceStack(Identifier location) { return List.of(); } @Override public Map listResources(String directory, Predicate filter) { return Map.of(); } @Override public Map> listResourceStacks(String directory, Predicate filter) { return Map.of(); } @Override public Stream listPacks() { return Stream.of(new PackResources[0]); } } }