Enum Class BedRule.Condition

java.lang.Object
java.lang.Enum<BedRule.Condition>
net.minecraft.world.attribute.BedRule.Condition
All Implemented Interfaces:
Serializable, Comparable<BedRule.Condition>, Constable, StringIdentifiable
Enclosing class:
BedRule

public static enum BedRule.Condition extends Enum<BedRule.Condition> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/world/attribute/BedRule$Condition
intermediary net/minecraft/class_12195$class_12196
official cdr$a
  • Enum Constant Details

    • ALWAYS

      public static final BedRule.Condition ALWAYS
      Mappings:
      Namespace Name Mixin selector
      named ALWAYS Lnet/minecraft/world/attribute/BedRule$Condition;ALWAYS:Lnet/minecraft/world/attribute/BedRule$Condition;
      intermediary field_63706 Lnet/minecraft/class_12195$class_12196;field_63706:Lnet/minecraft/class_12195$class_12196;
      official a Lcdr$a;a:Lcdr$a;
    • WHEN_DARK

      public static final BedRule.Condition WHEN_DARK
      Mappings:
      Namespace Name Mixin selector
      named WHEN_DARK Lnet/minecraft/world/attribute/BedRule$Condition;WHEN_DARK:Lnet/minecraft/world/attribute/BedRule$Condition;
      intermediary field_63707 Lnet/minecraft/class_12195$class_12196;field_63707:Lnet/minecraft/class_12195$class_12196;
      official b Lcdr$a;b:Lcdr$a;
    • NEVER

      public static final BedRule.Condition NEVER
      Mappings:
      Namespace Name Mixin selector
      named NEVER Lnet/minecraft/world/attribute/BedRule$Condition;NEVER:Lnet/minecraft/world/attribute/BedRule$Condition;
      intermediary field_63708 Lnet/minecraft/class_12195$class_12196;field_63708:Lnet/minecraft/class_12195$class_12196;
      official c Lcdr$a;c:Lcdr$a;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<BedRule.Condition> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/attribute/BedRule$Condition;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_63709 Lnet/minecraft/class_12195$class_12196;field_63709:Lcom/mojang/serialization/Codec;
      official d Lcdr$a;d:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/world/attribute/BedRule$Condition;name:Ljava/lang/String;
      intermediary field_63710 Lnet/minecraft/class_12195$class_12196;field_63710:Ljava/lang/String;
      official e Lcdr$a;e:Ljava/lang/String;
  • Constructor Details

    • Condition

      private Condition(String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/attribute/BedRule$Condition;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_12195$class_12196;<init>(Ljava/lang/String;ILjava/lang/String;)V
      official <init> Lcdr$a;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static BedRule.Condition[] 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

      public static BedRule.Condition valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • test

      public boolean test(World world)
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/world/attribute/BedRule$Condition;test(Lnet/minecraft/world/World;)Z
      intermediary method_75646 Lnet/minecraft/class_12195$class_12196;method_75646(Lnet/minecraft/class_1937;)Z
      official a Lcdr$a;a(Ldva;)Z
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbhb;c()Ljava/lang/String;