Package net.minecraft.command.permission
Record Class Permission.Level
java.lang.Object
java.lang.Record
net.minecraft.command.permission.Permission.Level
- Record Components:
level-
- All Implemented Interfaces:
Permission
- Enclosing interface:
Permission
- Mappings:
Namespace Name named net/minecraft/command/permission/Permission$Levelintermediary net/minecraft/class_12087$class_12089official bbn$bnamed levelintermediary comp_4943official 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.Level> private final PermissionLevelThe field for thelevelrecord 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.Level> getCodec()final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
level
The field for thelevelrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/command/permission/Permission$Level;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_63191Lnet/minecraft/class_12087$class_12089;field_63191:Lcom/mojang/serialization/MapCodec;official cLbbn$b;c:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Level
Creates an instance of aLevelrecord class.- Parameters:
level- the value for thelevelrecord 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;
-
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). -
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-