Record Class PermissionProviderCheck<T extends PermissionSetSupplier>
java.lang.Object
java.lang.Record
net.minecraft.server.permissions.PermissionProviderCheck<T>
- All Implemented Interfaces:
Predicate<T>
public record PermissionProviderCheck<T extends PermissionSetSupplier>(PermissionCheck test)
extends Record
implements Predicate<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PermissionCheckThe field for thetestrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aPermissionProviderCheckrecord class. -
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.test()Returns the value of thetestrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
test
The field for thetestrecord component.
-
-
Constructor Details
-
PermissionProviderCheck
Creates an instance of aPermissionProviderCheckrecord class.- Parameters:
test- the value for thetestrecord component
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<T extends PermissionSetSupplier>
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
test
Returns the value of thetestrecord component.- Returns:
- the value of the
testrecord component
-