Package net.minecraft.command
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$PermissionLevelSourcePredicateintermediary net/minecraft/class_11456$class_11457official eo$anamed requiredLevelintermediary comp_4364official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for therequiredLevelrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of therequiredLevelrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
requiredLevel
private final int requiredLevelThe field for therequiredLevelrecord component.
-
-
Constructor Details
-
PermissionLevelSourcePredicate
public PermissionLevelSourcePredicate(int int2)
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<T extends PermissionLevelSource>- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/command/PermissionLevelSource$PermissionLevelSourcePredicate;test(Lnet/minecraft/command/PermissionLevelSource;)Zintermediary method_71776Lnet/minecraft/class_11456$class_11457;method_71776(Lnet/minecraft/class_11456;)Zofficial aLeo$a;a(Leo;)Z
-
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 with '=='. -
requiredLevel
public int requiredLevel()Returns the value of therequiredLevelrecord component.- Specified by:
requiredLevelin interfacePermissionLevelPredicate<T extends PermissionLevelSource>- Returns:
- the value of the
requiredLevelrecord component
-