Enum Class PlayerEntity.SleepFailureReason

java.lang.Object
java.lang.Enum<PlayerEntity.SleepFailureReason>
net.minecraft.entity.player.PlayerEntity.SleepFailureReason
All Implemented Interfaces:
Serializable, Comparable<PlayerEntity.SleepFailureReason>, Constable
Enclosing class:
PlayerEntity

public static enum PlayerEntity.SleepFailureReason extends Enum<PlayerEntity.SleepFailureReason>
A reason why a player cannot start sleeping.
Mappings:
Namespace Name
named net/minecraft/entity/player/PlayerEntity$SleepFailureReason
intermediary net/minecraft/class_1657$class_1658
official coy$a
  • Enum Constant Details Link icon

    • NOT_POSSIBLE_HERE Link icon

      public static final PlayerEntity.SleepFailureReason NOT_POSSIBLE_HERE
      Mappings:
      Namespace Name Mixin selector
      named NOT_POSSIBLE_HERE Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;NOT_POSSIBLE_HERE:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
      intermediary field_7528 Lnet/minecraft/class_1657$class_1658;field_7528:Lnet/minecraft/class_1657$class_1658;
      official a Lcoy$a;a:Lcoy$a;
    • NOT_POSSIBLE_NOW Link icon

      public static final PlayerEntity.SleepFailureReason NOT_POSSIBLE_NOW
      Mappings:
      Namespace Name Mixin selector
      named NOT_POSSIBLE_NOW Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;NOT_POSSIBLE_NOW:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
      intermediary field_7529 Lnet/minecraft/class_1657$class_1658;field_7529:Lnet/minecraft/class_1657$class_1658;
      official b Lcoy$a;b:Lcoy$a;
    • TOO_FAR_AWAY Link icon

      public static final PlayerEntity.SleepFailureReason TOO_FAR_AWAY
      Mappings:
      Namespace Name Mixin selector
      named TOO_FAR_AWAY Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;TOO_FAR_AWAY:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
      intermediary field_7530 Lnet/minecraft/class_1657$class_1658;field_7530:Lnet/minecraft/class_1657$class_1658;
      official c Lcoy$a;c:Lcoy$a;
    • OBSTRUCTED Link icon

      public static final PlayerEntity.SleepFailureReason OBSTRUCTED
      Mappings:
      Namespace Name Mixin selector
      named OBSTRUCTED Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;OBSTRUCTED:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
      intermediary field_18592 Lnet/minecraft/class_1657$class_1658;field_18592:Lnet/minecraft/class_1657$class_1658;
      official d Lcoy$a;d:Lcoy$a;
    • OTHER_PROBLEM Link icon

      public static final PlayerEntity.SleepFailureReason OTHER_PROBLEM
      Mappings:
      Namespace Name Mixin selector
      named OTHER_PROBLEM Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;OTHER_PROBLEM:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
      intermediary field_7531 Lnet/minecraft/class_1657$class_1658;field_7531:Lnet/minecraft/class_1657$class_1658;
      official e Lcoy$a;e:Lcoy$a;
    • NOT_SAFE Link icon

      public static final PlayerEntity.SleepFailureReason NOT_SAFE
      Mappings:
      Namespace Name Mixin selector
      named NOT_SAFE Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;NOT_SAFE:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
      intermediary field_7532 Lnet/minecraft/class_1657$class_1658;field_7532:Lnet/minecraft/class_1657$class_1658;
      official f Lcoy$a;f:Lcoy$a;
  • Field Details Link icon

    • message Link icon

      @Nullable private final @Nullable Text message
      Mappings:
      Namespace Name Mixin selector
      named message Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;message:Lnet/minecraft/text/Text;
      intermediary field_18593 Lnet/minecraft/class_1657$class_1658;field_18593:Lnet/minecraft/class_2561;
      official g Lcoy$a;g:Lwp;
  • Constructor Details Link icon

    • SleepFailureReason Link icon

      private SleepFailureReason()
    • SleepFailureReason Link icon

      private SleepFailureReason(Text message)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;<init>(Ljava/lang/String;ILnet/minecraft/text/Text;)V
      intermediary <init> Lnet/minecraft/class_1657$class_1658;<init>(Ljava/lang/String;ILnet/minecraft/class_2561;)V
      official <init> Lcoy$a;<init>(Ljava/lang/String;ILwp;)V
  • Method Details Link icon

    • values Link icon

      public static PlayerEntity.SleepFailureReason[] 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 Link icon

      public static PlayerEntity.SleepFailureReason 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
    • getMessage Link icon

      @Nullable public @Nullable Text getMessage()
      Returns the action bar message that is sent to the player when sleeping fails with this reason.
      Returns:
      the message, or null if none is sent for this reason
      Mappings:
      Namespace Name Mixin selector
      named getMessage Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;getMessage()Lnet/minecraft/text/Text;
      intermediary method_19206 Lnet/minecraft/class_1657$class_1658;method_19206()Lnet/minecraft/class_2561;
      official a Lcoy$a;a()Lwp;