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$PermissionLevelSourcePredicate
intermediary net/minecraft/class_11456$class_11457
official ep$a
named requiredLevel
intermediary comp_4364
official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The field for therequiredLevel
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of therequiredLevel
record component.boolean
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
requiredLevel
private final int requiredLevelThe field for therequiredLevel
record component.
-
-
Constructor Details
-
PermissionLevelSourcePredicate
public PermissionLevelSourcePredicate(int int2)
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<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
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 therequiredLevel
record component.- Specified by:
requiredLevel
in interfacePermissionLevelPredicate<T extends PermissionLevelSource>
- Returns:
- the value of the
requiredLevel
record component
-