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
Modifier and TypeFieldDescriptionprivate final String
The field for thepattern
record component.private final PathAllowList.EntryType
The field for thetype
record component. -
Constructor Summary
ConstructorDescriptionConfigEntry
(PathAllowList.EntryType type, String pattern) Creates an instance of aConfigEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptioncompile
(FileSystem p_289936_) final boolean
Indicates whether some other object is "equal to" this one.(package private) static PathAllowList.ConfigEntry
final int
hashCode()
Returns a hash code value for this object.(package private) static Optional
<PathAllowList.ConfigEntry> pattern()
Returns the value of thepattern
record component.(package private) static PathAllowList.ConfigEntry
(package private) static PathAllowList.ConfigEntry
final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Field Details
-
type
The field for thetype
record component. -
pattern
The field for thepattern
record component.
-
-
Constructor Details
-
ConfigEntry
Creates an instance of aConfigEntry
record class.- Parameters:
type
- the value for thetype
record componentpattern
- the value for thepattern
record 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 thetype
record component.- Returns:
- the value of the
type
record component
-
pattern
Returns the value of thepattern
record component.- Returns:
- the value of the
pattern
record component
-