Record Class PathAllowList.ConfigEntry
java.lang.Object
java.lang.Record
net.minecraft.world.level.validation.PathAllowList.ConfigEntry
- Enclosing class:
PathAllowList
public static record PathAllowList.ConfigEntry(PathAllowList.EntryType type, String pattern)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thepatternrecord component.private final PathAllowList.EntryTypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConfigEntry(PathAllowList.EntryType type, String pattern) Creates an instance of aConfigEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncompile(FileSystem p_289936_) final booleanIndicates whether some other object is "equal to" this one.(package private) static PathAllowList.ConfigEntryfinal inthashCode()Returns a hash code value for this object.(package private) static Optional<PathAllowList.ConfigEntry> pattern()Returns the value of thepatternrecord component.(package private) static PathAllowList.ConfigEntry(package private) static PathAllowList.ConfigEntryfinal StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
pattern
The field for thepatternrecord component.
-
-
Constructor Details
-
ConfigEntry
Creates an instance of aConfigEntryrecord class.- Parameters:
type- the value for thetyperecord componentpattern- the value for thepatternrecord component
-
-
Method Details
-
compile
-
parse
-
glob
-
regex
-
prefix
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-