Package net.mcreator.minecraft
Record Class ResourcePackStructure.Entry
java.lang.Object
java.lang.Record
net.mcreator.minecraft.ResourcePackStructure.Entry
- All Implemented Interfaces:
Comparable<ResourcePackStructure.Entry>
- Enclosing class:
ResourcePackStructure
public static record ResourcePackStructure.Entry(String path, File override, ResourcePackStructure.EntryType type)
extends Record
implements Comparable<ResourcePackStructure.Entry>
-
Constructor Summary
ConstructorDescriptionEntry
(String path, File override, ResourcePackStructure.EntryType type) Creates an instance of aEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Indicates whether some other object is "equal to" this one.fullPath()
int
hashCode()
Returns a hash code value for this object.boolean
isFolder()
override()
Returns the value of theoverride
record component.parent()
path()
Returns the value of thepath
record component.toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
Entry
Creates an instance of aEntry
record class.- Parameters:
path
- the value for thepath
record componentoverride
- the value for theoverride
record componenttype
- the value for thetype
record component
-
-
Method Details
-
fullPath
-
parent
-
extension
-
isFolder
public boolean isFolder() -
compareTo
- Specified by:
compareTo
in 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. -
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
override
Returns the value of theoverride
record component.- Returns:
- the value of the
override
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-