Package net.minecraft

Record Class class_12195

java.lang.Object
java.lang.Record
net.minecraft.class_12195
Record Components:
canSleep -
canSetSpawn -
explodes -
errorMessage -

public record class_12195(class_12195.class_12196 canSleep, class_12195.class_12196 canSetSpawn, boolean explodes, Optional<Text> errorMessage) extends Record
Mappings:
Namespace Name
named net/minecraft/class_12195
intermediary net/minecraft/class_12195
official cdu
named canSleep
intermediary comp_5136
official d
named canSetSpawn
intermediary comp_5137
official e
named explodes
intermediary comp_5138
official f
named errorMessage
intermediary comp_5139
official g
  • Field Details

    • canSleep

      private final class_12195.class_12196 canSleep
      The field for the canSleep record component.
    • canSetSpawn

      private final class_12195.class_12196 canSetSpawn
      The field for the canSetSpawn record component.
    • explodes

      private final boolean explodes
      The field for the explodes record component.
    • errorMessage

      private final Optional<Text> errorMessage
      The field for the errorMessage record component.
    • field_63703

      public static final class_12195 field_63703
      Mappings:
      Namespace Name Mixin selector
      named field_63703 Lnet/minecraft/class_12195;field_63703:Lnet/minecraft/class_12195;
      intermediary field_63703 Lnet/minecraft/class_12195;field_63703:Lnet/minecraft/class_12195;
      official a Lcdu;a:Lcdu;
    • field_63704

      public static final class_12195 field_63704
      Mappings:
      Namespace Name Mixin selector
      named field_63704 Lnet/minecraft/class_12195;field_63704:Lnet/minecraft/class_12195;
      intermediary field_63704 Lnet/minecraft/class_12195;field_63704:Lnet/minecraft/class_12195;
      official b Lcdu;b:Lcdu;
    • CODEC

      public static final com.mojang.serialization.Codec<class_12195> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/class_12195;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_63705 Lnet/minecraft/class_12195;field_63705:Lcom/mojang/serialization/Codec;
      official c Lcdu;c:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • method_75643

      public boolean method_75643(World world)
      Mappings:
      Namespace Name Mixin selector
      named method_75643 Lnet/minecraft/class_12195;method_75643(Lnet/minecraft/world/World;)Z
      intermediary method_75643 Lnet/minecraft/class_12195;method_75643(Lnet/minecraft/class_1937;)Z
      official a Lcdu;a(Ldun;)Z
    • method_75644

      public boolean method_75644(World world)
      Mappings:
      Namespace Name Mixin selector
      named method_75644 Lnet/minecraft/class_12195;method_75644(Lnet/minecraft/world/World;)Z
      intermediary method_75644 Lnet/minecraft/class_12195;method_75644(Lnet/minecraft/class_1937;)Z
      official b Lcdu;b(Ldun;)Z
    • method_75641

      public PlayerEntity.SleepFailureReason method_75641()
      Mappings:
      Namespace Name Mixin selector
      named method_75641 Lnet/minecraft/class_12195;method_75641()Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
      intermediary method_75641 Lnet/minecraft/class_12195;method_75641()Lnet/minecraft/class_1657$class_1658;
      official a Lcdu;a()Ldcb$a;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • canSleep

      public class_12195.class_12196 canSleep()
      Returns the value of the canSleep record component.
      Returns:
      the value of the canSleep record component
    • canSetSpawn

      public class_12195.class_12196 canSetSpawn()
      Returns the value of the canSetSpawn record component.
      Returns:
      the value of the canSetSpawn record component
    • explodes

      public boolean explodes()
      Returns the value of the explodes record component.
      Returns:
      the value of the explodes record component
    • errorMessage

      public Optional<Text> errorMessage()
      Returns the value of the errorMessage record component.
      Returns:
      the value of the errorMessage record component