Package net.minecraft.client.resources
Class VirtualAssetsPack
- java.lang.Object
-
- net.minecraft.resources.VanillaPack
-
- net.minecraft.client.resources.VirtualAssetsPack
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IResourcePack
,IForgeResourcePack
public class VirtualAssetsPack extends VanillaPack
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceIndex
assetIndex
-
Fields inherited from class net.minecraft.resources.VanillaPack
clientObject, generatedDir, namespaces
-
-
Constructor Summary
Constructors Constructor Description VirtualAssetsPack(ResourceIndex p_i48115_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.InputStream
getResourceAsStream(java.lang.String p_200010_1_)
protected java.io.InputStream
getResourceAsStream(ResourcePackType p_195782_1_, ResourceLocation p_195782_2_)
java.util.Collection<ResourceLocation>
getResources(ResourcePackType p_225637_1_, java.lang.String p_225637_2_, java.lang.String p_225637_3_, int p_225637_4_, java.util.function.Predicate<java.lang.String> p_225637_5_)
boolean
hasResource(ResourcePackType p_195764_1_, ResourceLocation p_195764_2_)
-
Methods inherited from class net.minecraft.resources.VanillaPack
close, getMetadataSection, getName, getNamespaces, getResource, getRootResource
-
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 Detail
-
assetIndex
private final ResourceIndex assetIndex
-
-
Constructor Detail
-
VirtualAssetsPack
public VirtualAssetsPack(ResourceIndex p_i48115_1_)
-
-
Method Detail
-
getResourceAsStream
@Nullable protected java.io.InputStream getResourceAsStream(ResourcePackType p_195782_1_, ResourceLocation p_195782_2_)
- Overrides:
getResourceAsStream
in classVanillaPack
-
hasResource
public boolean hasResource(ResourcePackType p_195764_1_, ResourceLocation p_195764_2_)
- Specified by:
hasResource
in interfaceIResourcePack
- Overrides:
hasResource
in classVanillaPack
-
getResourceAsStream
@Nullable protected java.io.InputStream getResourceAsStream(java.lang.String p_200010_1_)
- Overrides:
getResourceAsStream
in classVanillaPack
-
getResources
public java.util.Collection<ResourceLocation> getResources(ResourcePackType p_225637_1_, java.lang.String p_225637_2_, java.lang.String p_225637_3_, int p_225637_4_, java.util.function.Predicate<java.lang.String> p_225637_5_)
- Specified by:
getResources
in interfaceIResourcePack
- Overrides:
getResources
in classVanillaPack
-
-