Package net.minecraft.client.resources
Class LegacyPackResourcesAdapter
java.lang.Object
net.minecraft.client.resources.LegacyPackResourcesAdapter
- All Implemented Interfaces:
AutoCloseable,PackResources,IForgePackResources
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<ResourceLocation,ResourceLocation>private PackResourcesstatic Map<ResourceLocation,ResourceLocation>Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
ConstructorsConstructorDescriptionLegacyPackResourcesAdapter(PackResources p_118695_, Map<ResourceLocation,ResourceLocation> p_118696_) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> TgetMetadataSection(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_)booleanhasResource(PackType p_118719_, ResourceLocation p_118720_)private ResourceLocationmap(ResourceLocation p_118724_)private static ResourceLocationtoMetaLocation(ResourceLocation p_118716_)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getRootResourcein interfacePackResources- Throws:
IOException
-
getResource
- Specified by:
getResourcein 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:
getResourcesin interfacePackResources
-
hasResource
- Specified by:
hasResourcein interfacePackResources
-
getNamespaces
- Specified by:
getNamespacesin interfacePackResources
-
getMetadataSection
@Nullable public <T> T getMetadataSection(MetadataSectionSerializer<T> p_118710_) throws IOException- Specified by:
getMetadataSectionin interfacePackResources- Throws:
IOException
-
getName
- Specified by:
getNamein interfacePackResources
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePackResources
-