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 SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for thepatternrecord component.private final PathAllowList.EntryTypeThe field for thetyperecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionConfigEntry(PathAllowList.EntryType type, String pattern) Creates an instance of aConfigEntryrecord class.
- 
Method SummaryModifier 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- 
typeThe field for thetyperecord component.
- 
patternThe field for thepatternrecord component.
 
- 
- 
Constructor Details- 
ConfigEntryCreates an instance of aConfigEntryrecord class.- Parameters:
- type- the value for the- typerecord component
- pattern- the value for the- patternrecord component
 
 
- 
- 
Method Details- 
compile
- 
parse
- 
glob
- 
regex
- 
prefix
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
patternReturns the value of thepatternrecord component.- Returns:
- the value of the patternrecord component
 
 
-