Package net.neoforged.fml.jarcontents
Class JarFileContents.JarEntryResource
java.lang.Object
net.neoforged.fml.jarcontents.JarFileContents.JarEntryResource
- All Implemented Interfaces:
JarResource
- Enclosing class:
JarFileContents
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.fml.jarcontents.JarResource
bufferedReader, bufferedReader, readAllBytes
-
Field Details
-
mutable
private final boolean mutable -
entry
-
-
Constructor Details
-
JarEntryResource
-
-
Method Details
-
open
- Specified by:
openin interfaceJarResource- Throws:
IOException
-
attributes
Description copied from interface:JarResourceReads metadata attributes of this resource.- Specified by:
attributesin interfaceJarResource- Returns:
- The attributes of this resource.
-
retain
Description copied from interface:JarResourceCreate a copy of this jar resource reference that can be held onto.Useful in the context of
JarResourceVisitor, where resource objects are reused between visits, and copies must be made to hold onto resources for later use.- Specified by:
retainin interfaceJarResource
-