Record Class ResourcePackStructure.Entry
java.lang.Object
java.lang.Record
net.mcreator.minecraft.resourcepack.ResourcePackStructure.Entry
- All Implemented Interfaces:
Comparable<ResourcePackStructure.Entry>
- Enclosing class:
ResourcePackStructure
public static record ResourcePackStructure.Entry(String namespace, String path, File override, ResourcePackStructure.EntryType type)
extends Record
implements Comparable<ResourcePackStructure.Entry>
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(String namespace, String path, File override, ResourcePackStructure.EntryType type) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanIndicates whether some other object is "equal to" this one.fullPath()inthashCode()Returns a hash code value for this object.booleanisFolder()Returns the value of thenamespacerecord component.override()Returns the value of theoverriderecord component.parent()path()Returns the value of thepathrecord component.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
namespace- the value for thenamespacerecord componentpath- the value for thepathrecord componentoverride- the value for theoverriderecord componenttype- the value for thetyperecord component
-
-
Method Details
-
fullPath
-
parent
-
extension
-
isFolder
public boolean isFolder() -
compareTo
- Specified by:
compareToin interfaceComparable<ResourcePackStructure.Entry>
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
override
Returns the value of theoverriderecord component.- Returns:
- the value of the
overriderecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-