Package net.minecraft.server.permissions
Record Class Permission.Atom
java.lang.Object
java.lang.Record
net.minecraft.server.permissions.Permission.Atom
- All Implemented Interfaces:
Permission
- Enclosing interface:
Permission
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.permissions.Permission
Permission.Atom, Permission.HasCommandLevel -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theidrecord component.static final com.mojang.serialization.MapCodec<Permission.Atom> Fields inherited from interface net.minecraft.server.permissions.Permission
CODEC, FULL_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<Permission.Atom> codec()static Permission.Atomstatic Permission.Atomcreate(Identifier pId) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
MAP_CODEC
-
-
Constructor Details
-
Atom
Creates an instance of aAtomrecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
codec
- Specified by:
codecin interfacePermission
-
create
-
create
-
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-