net.minecraft.server.packs.resources

public class FallbackResourceManager

implements ResourceManager

apz
net.minecraft.server.packs.resources.FallbackResourceManager
net.minecraft.class_3294
net.minecraft.resource.NamespaceResourceManager
net.minecraft.src.C_67_
net.minecraft.server.packs.resources.ResourceManagerFallback

Field summary

Modifier and TypeField
static final org.slf4j.Logger
b
LOGGER
field_14285
LOGGER
f_10600_
protected final List<FallbackResourceManager$PackEntry>
a
fallbacks
field_14283
packList
f_10599_
private final PackType
c
type
field_14284
type
f_10601_
private final String
d
namespace
field_21561
namespace
f_10602_

Constructor summary

ModifierConstructor
public (PackType type, String namespace)

Method summary

Modifier and TypeMethod
public void
a(aow arg0)
push(PackResources arg0)
method_24233(class_3262 arg0)
addPack(ResourcePack pack)
m_215377_(C_50_ arg0)
public void
a(aow arg0, Predicate<ahg> arg1)
push(PackResources arg0, Predicate<ResourceLocation> arg1)
method_41256(class_3262 arg0, Predicate<class_2960> arg1)
addPack(ResourcePack pack, Predicate<Identifier> filter)
m_215382_(C_50_ p_215384_, Predicate<C_5265_> arg1)
public void
a(String arg0, Predicate<ahg> arg1)
pushFilterOnly(String arg0, Predicate<ResourceLocation> arg1)
method_41261(String arg0, Predicate<class_2960> arg1)
addPack(String name, Predicate<Identifier> filter)
m_215399_(String p_215401_, Predicate<C_5265_> arg1)
private void
a(String arg0, aow arg1, Predicate<ahg> arg2)
pushInternal(String arg0, PackResources arg1, Predicate<ResourceLocation> arg2)
method_41260(String arg0, class_3262 arg1, Predicate<class_2960> arg2)
addPack(String name, ResourcePack underlyingPack, Predicate<Identifier> filter)
m_215395_(String p_215397_, C_50_ p_215398_, Predicate<C_5265_> arg2)
public Set<String>
a()
getNamespaces()
method_14487()
getAllNamespaces()
m_7187_()
public Optional<Resource>
getResource(ahg arg0)
getResource(ResourceLocation arg0)
method_14486(class_2960 arg0)
getResource(Identifier arg0)
m_213713_(C_5265_ arg0)
private static Resource
a(aow arg0, ahg arg1, aqa<InputStream> arg2, aqa<aqk> arg3)
createResource(PackResources arg0, ResourceLocation arg1, IoSupplier<InputStream> arg2, IoSupplier<ResourceMetadata> arg3)
method_45290(class_3262 arg0, class_2960 arg1, class_7367<InputStream> arg2, class_7367<class_7368> arg3)
createResource(ResourcePack pack, Identifier id, InputSupplier<InputStream> supplier, InputSupplier<ResourceMetadata> metadataSupplier)
m_246164_(C_50_ p_249946_, C_5265_ p_250632_, C_243587_<InputStream> p_250514_, C_243587_<C_212950_> p_251676_)
private static IoSupplier<InputStream>
a(ahg arg0, aow arg1, aqa<InputStream> arg2)
wrapForDebug(ResourceLocation arg0, PackResources arg1, IoSupplier<InputStream> arg2)
method_45288(class_2960 arg0, class_3262 arg1, class_7367<InputStream> arg2)
wrapForDebug(Identifier id, ResourcePack pack, InputSupplier<InputStream> supplier)
m_246574_(C_5265_ p_248639_, C_50_ p_251740_, C_243587_<InputStream> p_249116_)
public List<Resource>
a(ahg arg0)
getResourceStack(ResourceLocation arg0)
method_14489(class_2960 arg0)
getAllResources(Identifier arg0)
m_213829_(C_5265_ arg0)
private static boolean
b(ahg arg0)
isMetadata(ResourceLocation arg0)
method_45296(class_2960 arg0)
isMcmeta(Identifier id)
m_245103_(C_5265_ p_249381_)
private static ResourceLocation
c(ahg arg0)
getResourceLocationFromMetadata(ResourceLocation arg0)
method_45298(class_2960 arg0)
getMetadataFileName(Identifier id)
m_246569_(C_5265_ p_249669_)
static ResourceLocation
d(ahg arg0)
getMetadataLocation(ResourceLocation arg0)
method_14473(class_2960 arg0)
getMetadataPath(Identifier id)
m_10624_(C_5265_ p_10625_)
public Map<ResourceLocation, Resource>
b(String arg0, Predicate<ahg> arg1)
listResources(String arg0, Predicate<ResourceLocation> arg1)
method_14488(String arg0, Predicate<class_2960> arg1)
findResources(String arg0, Predicate<Identifier> arg1)
m_214159_(String p_215414_, Predicate<C_5265_> arg1)
private IoSupplier<ResourceMetadata>
a(ahg arg0, int arg1)
createStackMetadataFinder(ResourceLocation arg0, int arg1)
method_43035(class_2960 arg0, int arg1)
createMetadataSupplier(Identifier id, int index)
m_215368_(C_5265_ p_215370_, int arg1)
private static IoSupplier<ResourceMetadata>
a(aqa<InputStream> arg0)
convertToMetadata(IoSupplier<InputStream> arg0)
method_45291(class_7367<InputStream> arg0)
getMetadataSupplier(InputSupplier<InputStream> supplier)
m_245722_(C_243587_<InputStream> p_250827_)
private static ResourceMetadata
b(aqa<InputStream> arg0)
parseMetadata(IoSupplier<InputStream> arg0)
method_45297(class_7367<InputStream> arg0)
loadMetadata(InputSupplier<InputStream> supplier)
m_246183_(C_243587_<InputStream> p_250103_)
private static void
a(apz$d arg0, Map<ahg, apz$b> arg1)
applyPackFiltersToExistingResources(FallbackResourceManager$PackEntry arg0, Map<ResourceLocation, FallbackResourceManager$EntryStack> arg1)
method_41259(class_3294$class_7082 arg0, Map<class_2960, class_3294$class_7081> arg1)
applyFilter(NamespaceResourceManager$FilterablePack pack, Map<Identifier, NamespaceResourceManager$EntryList> idToEntryList)
m_215392_(C_67_$C_212944_ p_215393_, Map<C_5265_, C_67_$C_212943_> p_215394_)
private void
a(apz$d arg0, String arg1, Predicate<ahg> arg2, Map<ahg, apz$b> arg3)
listPackResources(FallbackResourceManager$PackEntry arg0, String arg1, Predicate<ResourceLocation> arg2, Map<ResourceLocation, FallbackResourceManager$EntryStack> arg3)
method_41258(class_3294$class_7082 arg0, String arg1, Predicate<class_2960> arg2, Map<class_2960, class_3294$class_7081> arg3)
findAndAdd(NamespaceResourceManager$FilterablePack pack, String startingPath, Predicate<Identifier> allowedPathPredicate, Map<Identifier, NamespaceResourceManager$EntryList> idToEntryList)
m_215387_(C_67_$C_212944_ p_215389_, String p_215390_, Predicate<C_5265_> p_215391_, Map<C_5265_, C_67_$C_212943_> arg3)
public Map<ResourceLocation, List<Resource>>
c(String arg0, Predicate<ahg> arg1)
listResourceStacks(String arg0, Predicate<ResourceLocation> arg1)
method_41265(String arg0, Predicate<class_2960> arg1)
findAllResources(String arg0, Predicate<Identifier> arg1)
m_214160_(String p_215417_, Predicate<C_5265_> arg1)
public Stream<PackResources>
b()
listPacks()
method_29213()
streamResourcePacks()
m_7536_()