Package net.minecraft.command
Enum CommandStats.Type
- All Implemented Interfaces:
Serializable,Comparable<CommandStats.Type>,java.lang.constant.Constable
- Enclosing class:
- CommandStats
public static enum CommandStats.Type extends Enum<CommandStats.Type>
- Mappings:
Namespace Name official n$aintermediary net/minecraft/class_1685$class_1686named net/minecraft/command/CommandStats$Type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description AFFECTED_BLOCKSAFFECTED_ENTITIESAFFECTED_ITEMSQUERY_RESULTSUCCESS_COUNT -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static CommandStats.TypegetByName(String name)intgetIndex()StringgetName()static String[]getValues()static CommandStats.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static CommandStats.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS_COUNT
- Mappings:
Namespace Name Mixin selector official aLn$a;a:Ln$a;intermediary field_6960Lnet/minecraft/class_1685$class_1686;field_6960:Lnet/minecraft/class_1685$class_1686;named SUCCESS_COUNTLnet/minecraft/command/CommandStats$Type;SUCCESS_COUNT:Lnet/minecraft/command/CommandStats$Type;
-
AFFECTED_BLOCKS
- Mappings:
Namespace Name Mixin selector official bLn$a;b:Ln$a;intermediary field_6961Lnet/minecraft/class_1685$class_1686;field_6961:Lnet/minecraft/class_1685$class_1686;named AFFECTED_BLOCKSLnet/minecraft/command/CommandStats$Type;AFFECTED_BLOCKS:Lnet/minecraft/command/CommandStats$Type;
-
AFFECTED_ENTITIES
- Mappings:
Namespace Name Mixin selector official cLn$a;c:Ln$a;intermediary field_6962Lnet/minecraft/class_1685$class_1686;field_6962:Lnet/minecraft/class_1685$class_1686;named AFFECTED_ENTITIESLnet/minecraft/command/CommandStats$Type;AFFECTED_ENTITIES:Lnet/minecraft/command/CommandStats$Type;
-
AFFECTED_ITEMS
- Mappings:
Namespace Name Mixin selector official dLn$a;d:Ln$a;intermediary field_6963Lnet/minecraft/class_1685$class_1686;field_6963:Lnet/minecraft/class_1685$class_1686;named AFFECTED_ITEMSLnet/minecraft/command/CommandStats$Type;AFFECTED_ITEMS:Lnet/minecraft/command/CommandStats$Type;
-
QUERY_RESULT
- Mappings:
Namespace Name Mixin selector official eLn$a;e:Ln$a;intermediary field_6964Lnet/minecraft/class_1685$class_1686;field_6964:Lnet/minecraft/class_1685$class_1686;named QUERY_RESULTLnet/minecraft/command/CommandStats$Type;QUERY_RESULT:Lnet/minecraft/command/CommandStats$Type;
-
-
Field Details
-
index
final int index- Mappings:
Namespace Name Mixin selector official fLn$a;f:Iintermediary field_6965Lnet/minecraft/class_1685$class_1686;field_6965:Inamed indexLnet/minecraft/command/CommandStats$Type;index:I
-
name
- Mappings:
Namespace Name Mixin selector official gLn$a;g:Ljava/lang/String;intermediary field_6966Lnet/minecraft/class_1685$class_1686;field_6966:Ljava/lang/String;named nameLnet/minecraft/command/CommandStats$Type;name:Ljava/lang/String;
-
-
Constructor Details
-
Type
- Mappings:
Namespace Name Mixin selector official <init>Ln$a;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1685$class_1686;<init>(Ljava/lang/String;IILjava/lang/String;)Vnamed <init>Lnet/minecraft/command/CommandStats$Type;<init>(Ljava/lang/String;IILjava/lang/String;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getIndex
public int getIndex()- Mappings:
Namespace Name Mixin selector official aLn$a;a()Iintermediary method_6381Lnet/minecraft/class_1685$class_1686;method_6381()Inamed getIndexLnet/minecraft/command/CommandStats$Type;getIndex()I
-
getName
- Mappings:
Namespace Name Mixin selector official bLn$a;b()Ljava/lang/String;intermediary method_6383Lnet/minecraft/class_1685$class_1686;method_6383()Ljava/lang/String;named getNameLnet/minecraft/command/CommandStats$Type;getName()Ljava/lang/String;
-
getValues
- Mappings:
Namespace Name Mixin selector official cLn$a;c()[Ljava/lang/String;intermediary method_6384Lnet/minecraft/class_1685$class_1686;method_6384()[Ljava/lang/String;named getValuesLnet/minecraft/command/CommandStats$Type;getValues()[Ljava/lang/String;
-
getByName
- Mappings:
Namespace Name Mixin selector official aLn$a;a(Ljava/lang/String;)Ln$a;intermediary method_6382Lnet/minecraft/class_1685$class_1686;method_6382(Ljava/lang/String;)Lnet/minecraft/class_1685$class_1686;named getByNameLnet/minecraft/command/CommandStats$Type;getByName(Ljava/lang/String;)Lnet/minecraft/command/CommandStats$Type;
-