Package net.minecraft.command.permission
Record Class Permission.Atom
java.lang.Object
java.lang.Record
net.minecraft.command.permission.Permission.Atom
- Record Components:
id-
- All Implemented Interfaces:
Permission
- Enclosing interface:
Permission
- Mappings:
Namespace Name named net/minecraft/command/permission/Permission$Atomintermediary net/minecraft/class_12087$class_12088official bbn$anamed idintermediary comp_4942official d
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.command.permission.Permission
Permission.Atom, Permission.Level -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<Permission.Atom> private final IdentifierThe field for theidrecord component.Fields inherited from interface net.minecraft.command.permission.Permission
UNABBREVIATED_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<Permission.Atom> getCodec()final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.static Permission.Atomof(Identifier id) static Permission.Atomfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/command/permission/Permission$Atom;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_63190Lnet/minecraft/class_12087$class_12088;field_63190:Lcom/mojang/serialization/MapCodec;official cLbbn$a;c:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Atom
Creates an instance of aAtomrecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfacePermission- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/command/permission/Permission;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_75012Lnet/minecraft/class_12087;method_75012()Lcom/mojang/serialization/MapCodec;official aLbbn;a()Lcom/mojang/serialization/MapCodec;
-
ofVanilla
- Mappings:
Namespace Name Mixin selector named ofVanillaLnet/minecraft/command/permission/Permission$Atom;ofVanilla(Ljava/lang/String;)Lnet/minecraft/command/permission/Permission$Atom;intermediary method_75019Lnet/minecraft/class_12087$class_12088;method_75019(Ljava/lang/String;)Lnet/minecraft/class_12087$class_12088;official aLbbn$a;a(Ljava/lang/String;)Lbbn$a;
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/command/permission/Permission$Atom;of(Lnet/minecraft/util/Identifier;)Lnet/minecraft/command/permission/Permission$Atom;intermediary method_75017Lnet/minecraft/class_12087$class_12088;method_75017(Lnet/minecraft/class_2960;)Lnet/minecraft/class_12087$class_12088;official aLbbn$a;a(Lamy;)Lbbn$a;
-
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
-