Record Class AllowedSymlinkPathMatcher.Entry

java.lang.Object
java.lang.Record
net.minecraft.util.path.AllowedSymlinkPathMatcher.Entry
Record Components:
type -
pattern -
Enclosing class:
AllowedSymlinkPathMatcher

public static record AllowedSymlinkPathMatcher.Entry(AllowedSymlinkPathMatcher.EntryType type, String pattern) extends Record
Mappings:
Namespace Name
official ehf$a
intermediary net/minecraft/class_8582$class_8583
named net/minecraft/util/path/AllowedSymlinkPathMatcher$Entry
official a
intermediary comp_1549
named type
official b
intermediary comp_1550
named pattern
  • Field Details

  • Constructor Details

  • Method Details

    • compile

      public PathMatcher compile(FileSystem fileSystem)
      Mappings:
      Namespace Name Mixin selector
      official a Lehf$a;a(Ljava/nio/file/FileSystem;)Ljava/nio/file/PathMatcher;
      intermediary method_52256 Lnet/minecraft/class_8582$class_8583;method_52256(Ljava/nio/file/FileSystem;)Ljava/nio/file/PathMatcher;
      named compile Lnet/minecraft/util/path/AllowedSymlinkPathMatcher$Entry;compile(Ljava/nio/file/FileSystem;)Ljava/nio/file/PathMatcher;
    • readLine

      Mappings:
      Namespace Name Mixin selector
      official a Lehf$a;a(Ljava/lang/String;)Ljava/util/Optional;
      intermediary method_52255 Lnet/minecraft/class_8582$class_8583;method_52255(Ljava/lang/String;)Ljava/util/Optional;
      named readLine Lnet/minecraft/util/path/AllowedSymlinkPathMatcher$Entry;readLine(Ljava/lang/String;)Ljava/util/Optional;
    • glob

      static AllowedSymlinkPathMatcher.Entry glob(String pattern)
      Mappings:
      Namespace Name Mixin selector
      official b Lehf$a;b(Ljava/lang/String;)Lehf$a;
      intermediary method_52257 Lnet/minecraft/class_8582$class_8583;method_52257(Ljava/lang/String;)Lnet/minecraft/class_8582$class_8583;
      named glob Lnet/minecraft/util/path/AllowedSymlinkPathMatcher$Entry;glob(Ljava/lang/String;)Lnet/minecraft/util/path/AllowedSymlinkPathMatcher$Entry;
    • regex

      static AllowedSymlinkPathMatcher.Entry regex(String pattern)
      Mappings:
      Namespace Name Mixin selector
      official c Lehf$a;c(Ljava/lang/String;)Lehf$a;
      intermediary method_52258 Lnet/minecraft/class_8582$class_8583;method_52258(Ljava/lang/String;)Lnet/minecraft/class_8582$class_8583;
      named regex Lnet/minecraft/util/path/AllowedSymlinkPathMatcher$Entry;regex(Ljava/lang/String;)Lnet/minecraft/util/path/AllowedSymlinkPathMatcher$Entry;
    • prefix

      static AllowedSymlinkPathMatcher.Entry prefix(String prefix)
      Mappings:
      Namespace Name Mixin selector
      official d Lehf$a;d(Ljava/lang/String;)Lehf$a;
      intermediary method_52259 Lnet/minecraft/class_8582$class_8583;method_52259(Ljava/lang/String;)Lnet/minecraft/class_8582$class_8583;
      named prefix Lnet/minecraft/util/path/AllowedSymlinkPathMatcher$Entry;prefix(Ljava/lang/String;)Lnet/minecraft/util/path/AllowedSymlinkPathMatcher$Entry;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • pattern

      public String pattern()
      Returns the value of the pattern record component.
      Returns:
      the value of the pattern record component