Package net.minecraft.client.resources
Class LegacyResourcePackWrapper
java.lang.Object
net.minecraft.client.resources.LegacyResourcePackWrapper
- All Implemented Interfaces:
AutoCloseable
,IResourcePack
,IForgeResourcePack
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ResourceLocation,
ResourceLocation> private final IResourcePack
static final Map<ResourceLocation,
ResourceLocation> -
Constructor Summary
ConstructorDescriptionLegacyResourcePackWrapper
(IResourcePack p_i49785_1_, Map<ResourceLocation, ResourceLocation> p_i49785_2_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<T> T
getMetadataSection
(IMetadataSectionSerializer<T> p_195760_1_) getName()
getNamespaces
(ResourcePackType p_195759_1_) getResource
(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_) getResources
(ResourcePackType p_225637_1_, String p_225637_2_, String p_225637_3_, int p_225637_4_, Predicate<String> p_225637_5_) getRootResource
(String p_195763_1_) boolean
hasResource
(ResourcePackType p_195764_1_, ResourceLocation p_195764_2_) private ResourceLocation
map
(ResourceLocation p_211851_1_) private static ResourceLocation
toMetaLocation
(ResourceLocation p_211850_0_) 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.IForgeResourcePack
isHidden
-
Field Details
-
source
-
patches
-
V3
-
-
Constructor Details
-
LegacyResourcePackWrapper
public LegacyResourcePackWrapper(IResourcePack p_i49785_1_, Map<ResourceLocation, ResourceLocation> p_i49785_2_)
-
-
Method Details
-
toMetaLocation
-
map
-
getRootResource
- Specified by:
getRootResource
in interfaceIResourcePack
- Throws:
IOException
-
getResource
public InputStream getResource(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_) throws IOException - Specified by:
getResource
in interfaceIResourcePack
- Throws:
IOException
-
getResources
public Collection<ResourceLocation> getResources(ResourcePackType p_225637_1_, String p_225637_2_, String p_225637_3_, int p_225637_4_, Predicate<String> p_225637_5_) - Specified by:
getResources
in interfaceIResourcePack
-
hasResource
- Specified by:
hasResource
in interfaceIResourcePack
-
getNamespaces
- Specified by:
getNamespaces
in interfaceIResourcePack
-
getMetadataSection
@Nullable public <T> T getMetadataSection(IMetadataSectionSerializer<T> p_195760_1_) throws IOException - Specified by:
getMetadataSection
in interfaceIResourcePack
- Throws:
IOException
-
getName
- Specified by:
getName
in interfaceIResourcePack
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceIResourcePack
-