Package net.minecraft.scoreboard
Enum AbstractTeam.CollisionRule
- All Implemented Interfaces:
Serializable,Comparable<AbstractTeam.CollisionRule>,java.lang.constant.Constable
- Enclosing class:
- AbstractTeam
public static enum AbstractTeam.CollisionRule extends Enum<AbstractTeam.CollisionRule>
- Mappings:
Namespace Name official dju$aintermediary net/minecraft/class_270$class_271named net/minecraft/scoreboard/AbstractTeam$CollisionRule
-
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 ALWAYSNEVERPUSH_OTHER_TEAMSPUSH_OWN_TEAM -
Field Summary
Fields Modifier and Type Field Description private static Map<String,AbstractTeam.CollisionRule>COLLISION_RULESStringnameintvalue -
Constructor Summary
Constructors Modifier Constructor Description privateCollisionRule(String name, int value) -
Method Summary
Modifier and Type Method Description static AbstractTeam.CollisionRulegetRule(String name)TextgetTranslationKey()static AbstractTeam.CollisionRulevalueOf(String name)Returns the enum constant of this type with the specified name.static AbstractTeam.CollisionRule[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
- Mappings:
Namespace Name Mixin selector official aLdju$a;a:Ldju$a;intermediary field_1437Lnet/minecraft/class_270$class_271;field_1437:Lnet/minecraft/class_270$class_271;named ALWAYSLnet/minecraft/scoreboard/AbstractTeam$CollisionRule;ALWAYS:Lnet/minecraft/scoreboard/AbstractTeam$CollisionRule;
-
NEVER
- Mappings:
Namespace Name Mixin selector official bLdju$a;b:Ldju$a;intermediary field_1435Lnet/minecraft/class_270$class_271;field_1435:Lnet/minecraft/class_270$class_271;named NEVERLnet/minecraft/scoreboard/AbstractTeam$CollisionRule;NEVER:Lnet/minecraft/scoreboard/AbstractTeam$CollisionRule;
-
PUSH_OTHER_TEAMS
- Mappings:
Namespace Name Mixin selector official cLdju$a;c:Ldju$a;intermediary field_1434Lnet/minecraft/class_270$class_271;field_1434:Lnet/minecraft/class_270$class_271;named PUSH_OTHER_TEAMSLnet/minecraft/scoreboard/AbstractTeam$CollisionRule;PUSH_OTHER_TEAMS:Lnet/minecraft/scoreboard/AbstractTeam$CollisionRule;
-
PUSH_OWN_TEAM
- Mappings:
Namespace Name Mixin selector official dLdju$a;d:Ldju$a;intermediary field_1440Lnet/minecraft/class_270$class_271;field_1440:Lnet/minecraft/class_270$class_271;named PUSH_OWN_TEAMLnet/minecraft/scoreboard/AbstractTeam$CollisionRule;PUSH_OWN_TEAM:Lnet/minecraft/scoreboard/AbstractTeam$CollisionRule;
-
-
Field Details
-
COLLISION_RULES
- Mappings:
Namespace Name Mixin selector official gLdju$a;g:Ljava/util/Map;intermediary field_1438Lnet/minecraft/class_270$class_271;field_1438:Ljava/util/Map;named COLLISION_RULESLnet/minecraft/scoreboard/AbstractTeam$CollisionRule;COLLISION_RULES:Ljava/util/Map;
-
name
- Mappings:
Namespace Name Mixin selector official eLdju$a;e:Ljava/lang/String;intermediary field_1436Lnet/minecraft/class_270$class_271;field_1436:Ljava/lang/String;named nameLnet/minecraft/scoreboard/AbstractTeam$CollisionRule;name:Ljava/lang/String;
-
value
public final int value- Mappings:
Namespace Name Mixin selector official fLdju$a;f:Iintermediary field_1433Lnet/minecraft/class_270$class_271;field_1433:Inamed valueLnet/minecraft/scoreboard/AbstractTeam$CollisionRule;value:I
-
-
Constructor Details
-
CollisionRule
- Mappings:
Namespace Name Mixin selector official <init>Ldju$a;<init>(Ljava/lang/String;ILjava/lang/String;I)Vintermediary <init>Lnet/minecraft/class_270$class_271;<init>(Ljava/lang/String;ILjava/lang/String;I)Vnamed <init>Lnet/minecraft/scoreboard/AbstractTeam$CollisionRule;<init>(Ljava/lang/String;ILjava/lang/String;I)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
-
getRule
- Mappings:
Namespace Name Mixin selector official aLdju$a;a(Ljava/lang/String;)Ldju$a;intermediary method_1210Lnet/minecraft/class_270$class_271;method_1210(Ljava/lang/String;)Lnet/minecraft/class_270$class_271;named getRuleLnet/minecraft/scoreboard/AbstractTeam$CollisionRule;getRule(Ljava/lang/String;)Lnet/minecraft/scoreboard/AbstractTeam$CollisionRule;
-
getTranslationKey
- Mappings:
Namespace Name Mixin selector official aLdju$a;a()Loi;intermediary method_1209Lnet/minecraft/class_270$class_271;method_1209()Lnet/minecraft/class_2561;named getTranslationKeyLnet/minecraft/scoreboard/AbstractTeam$CollisionRule;getTranslationKey()Lnet/minecraft/text/Text;
-