Record Class PermissionLevelSource.PermissionLevelSourcePredicate<T extends PermissionLevelSource>

java.lang.Object
java.lang.Record
net.minecraft.command.PermissionLevelSource.PermissionLevelSourcePredicate<T>
Record Components:
requiredLevel -
All Implemented Interfaces:
Predicate<T>, PermissionLevelPredicate<T>
Enclosing interface:
PermissionLevelSource

public static record PermissionLevelSource.PermissionLevelSourcePredicate<T extends PermissionLevelSource>(int requiredLevel) extends Record implements PermissionLevelPredicate<T>
Mappings:
Namespace Name
named net/minecraft/command/PermissionLevelSource$PermissionLevelSourcePredicate
intermediary net/minecraft/class_11456$class_11457
official ep$a
named requiredLevel
intermediary comp_4364
official a
  • Field Details

    • requiredLevel

      private final int requiredLevel
      The field for the requiredLevel record component.
  • Constructor Details

    • PermissionLevelSourcePredicate

      public PermissionLevelSourcePredicate(int int2)
  • Method Details

    • test

      public boolean test(T t)
      Specified by:
      test in interface Predicate<T extends PermissionLevelSource>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/command/PermissionLevelSource$PermissionLevelSourcePredicate;test(Lnet/minecraft/command/PermissionLevelSource;)Z
      intermediary method_71776 Lnet/minecraft/class_11456$class_11457;method_71776(Lnet/minecraft/class_11456;)Z
      official a Lep$a;a(Lep;)Z
    • 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 '=='.
      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.
    • requiredLevel

      public int requiredLevel()
      Returns the value of the requiredLevel record component.
      Specified by:
      requiredLevel in interface PermissionLevelPredicate<T extends PermissionLevelSource>
      Returns:
      the value of the requiredLevel record component