public class LegacyResourcePackWrapper extends java.lang.Object implements IResourcePack
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ResourceLocation,ResourceLocation> |
field_211855_c |
private IResourcePack |
locationMap |
static java.util.Map<ResourceLocation,ResourceLocation> |
NEW_TO_LEGACY_MAP |
Constructor and Description |
---|
LegacyResourcePackWrapper(IResourcePack p_i49785_1_,
java.util.Map<ResourceLocation,ResourceLocation> p_i49785_2_) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.Collection<ResourceLocation> |
getAllResourceLocations(ResourcePackType type,
java.lang.String namespaceIn,
java.lang.String pathIn,
int maxDepthIn,
java.util.function.Predicate<java.lang.String> filterIn) |
<T> T |
getMetadata(IMetadataSectionSerializer<T> deserializer) |
private static ResourceLocation |
getMetaFileLocation(ResourceLocation p_211850_0_) |
java.lang.String |
getName() |
java.util.Set<java.lang.String> |
getResourceNamespaces(ResourcePackType type) |
java.io.InputStream |
getResourceStream(ResourcePackType type,
ResourceLocation location) |
java.io.InputStream |
getRootResourceStream(java.lang.String fileName) |
boolean |
resourceExists(ResourcePackType type,
ResourceLocation location) |
private ResourceLocation |
toLegacyLocation(ResourceLocation p_211851_1_) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isHidden
private final IResourcePack locationMap
private final java.util.Map<ResourceLocation,ResourceLocation> field_211855_c
public static final java.util.Map<ResourceLocation,ResourceLocation> NEW_TO_LEGACY_MAP
public LegacyResourcePackWrapper(IResourcePack p_i49785_1_, java.util.Map<ResourceLocation,ResourceLocation> p_i49785_2_)
private static ResourceLocation getMetaFileLocation(ResourceLocation p_211850_0_)
private ResourceLocation toLegacyLocation(ResourceLocation p_211851_1_)
public java.io.InputStream getRootResourceStream(java.lang.String fileName) throws java.io.IOException
getRootResourceStream
in interface IResourcePack
java.io.IOException
public java.io.InputStream getResourceStream(ResourcePackType type, ResourceLocation location) throws java.io.IOException
getResourceStream
in interface IResourcePack
java.io.IOException
public java.util.Collection<ResourceLocation> getAllResourceLocations(ResourcePackType type, java.lang.String namespaceIn, java.lang.String pathIn, int maxDepthIn, java.util.function.Predicate<java.lang.String> filterIn)
getAllResourceLocations
in interface IResourcePack
public boolean resourceExists(ResourcePackType type, ResourceLocation location)
resourceExists
in interface IResourcePack
public java.util.Set<java.lang.String> getResourceNamespaces(ResourcePackType type)
getResourceNamespaces
in interface IResourcePack
@Nullable public <T> T getMetadata(IMetadataSectionSerializer<T> deserializer) throws java.io.IOException
getMetadata
in interface IResourcePack
java.io.IOException
public java.lang.String getName()
getName
in interface IResourcePack
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException