Package net.minecraft.client.resources
Class LegacyPackResourcesAdapter
java.lang.Object
net.minecraft.client.resources.LegacyPackResourcesAdapter
- All Implemented Interfaces:
AutoCloseable
,PackResources
,IForgePackResources
-
Field Summary
Modifier and TypeFieldDescriptionprivate Map<ResourceLocation,ResourceLocation>
private PackResources
static Map<ResourceLocation,ResourceLocation>
Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
Constructor Summary
ConstructorDescriptionLegacyPackResourcesAdapter(PackResources p_118695_, Map<ResourceLocation,ResourceLocation> p_118696_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<T> T
getMetadataSection(MetadataSectionSerializer<T> p_118710_)
getName()
getNamespaces(PackType p_118699_)
getResource(PackType p_118707_, ResourceLocation p_118708_)
getResources(PackType p_118701_, String p_118702_, String p_118703_, int p_118704_, Predicate<String> p_118705_)
getRootResource(String p_118722_)
boolean
hasResource(PackType p_118719_, ResourceLocation p_118720_)
private ResourceLocation
map(ResourceLocation p_118724_)
private static ResourceLocation
toMetaLocation(ResourceLocation p_118716_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgePackResources
isHidden
-
Field Details
-
source
-
patches
-
V3
-
-
Constructor Details
-
LegacyPackResourcesAdapter
public LegacyPackResourcesAdapter(PackResources p_118695_, Map<ResourceLocation,ResourceLocation> p_118696_)
-
-
Method Details
-
toMetaLocation
-
map
-
getRootResource
- Specified by:
getRootResource
in interfacePackResources
- Throws:
IOException
-
getResource
- Specified by:
getResource
in interfacePackResources
- Throws:
IOException
-
getResources
public Collection<ResourceLocation> getResources(PackType p_118701_, String p_118702_, String p_118703_, int p_118704_, Predicate<String> p_118705_)- Specified by:
getResources
in interfacePackResources
-
hasResource
- Specified by:
hasResource
in interfacePackResources
-
getNamespaces
- Specified by:
getNamespaces
in interfacePackResources
-
getMetadataSection
@Nullable public <T> T getMetadataSection(MetadataSectionSerializer<T> p_118710_) throws IOException- Specified by:
getMetadataSection
in interfacePackResources
- Throws:
IOException
-
getName
- Specified by:
getName
in interfacePackResources
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacePackResources
-