Package net.minecraft.world.attribute
Enum Class BedRule.Condition
- All Implemented Interfaces:
Serializable,Comparable<BedRule.Condition>,Constable,StringIdentifiable
- Enclosing class:
BedRule
- Mappings:
Namespace Name named net/minecraft/world/attribute/BedRule$Conditionintermediary net/minecraft/class_12195$class_12196official cdx$a
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BedRule.Condition> private final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.booleanstatic BedRule.ConditionReturns the enum constant of this class with the specified name.static BedRule.Condition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
- Mappings:
Namespace Name Mixin selector named ALWAYSLnet/minecraft/world/attribute/BedRule$Condition;ALWAYS:Lnet/minecraft/world/attribute/BedRule$Condition;intermediary field_63706Lnet/minecraft/class_12195$class_12196;field_63706:Lnet/minecraft/class_12195$class_12196;official aLcdx$a;a:Lcdx$a;
-
WHEN_DARK
- Mappings:
Namespace Name Mixin selector named WHEN_DARKLnet/minecraft/world/attribute/BedRule$Condition;WHEN_DARK:Lnet/minecraft/world/attribute/BedRule$Condition;intermediary field_63707Lnet/minecraft/class_12195$class_12196;field_63707:Lnet/minecraft/class_12195$class_12196;official bLcdx$a;b:Lcdx$a;
-
NEVER
- Mappings:
Namespace Name Mixin selector named NEVERLnet/minecraft/world/attribute/BedRule$Condition;NEVER:Lnet/minecraft/world/attribute/BedRule$Condition;intermediary field_63708Lnet/minecraft/class_12195$class_12196;field_63708:Lnet/minecraft/class_12195$class_12196;official cLcdx$a;c:Lcdx$a;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/attribute/BedRule$Condition;CODEC:Lcom/mojang/serialization/Codec;intermediary field_63709Lnet/minecraft/class_12195$class_12196;field_63709:Lcom/mojang/serialization/Codec;official dLcdx$a;d:Lcom/mojang/serialization/Codec;
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/world/attribute/BedRule$Condition;name:Ljava/lang/String;intermediary field_63710Lnet/minecraft/class_12195$class_12196;field_63710:Ljava/lang/String;official eLcdx$a;e:Ljava/lang/String;
-
-
Constructor Details
-
Condition
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/attribute/BedRule$Condition;<init>(Ljava/lang/String;ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_12195$class_12196;<init>(Ljava/lang/String;ILjava/lang/String;)Vofficial <init>Lcdx$a;<init>(Ljava/lang/String;ILjava/lang/String;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/world/attribute/BedRule$Condition;test(Lnet/minecraft/world/World;)Zintermediary method_75646Lnet/minecraft/class_12195$class_12196;method_75646(Lnet/minecraft/class_1937;)Zofficial aLcdx$a;a(Ldvg;)Z
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbhg;c()Ljava/lang/String;
-