Package net.minecraft

Record Class class_11437

java.lang.Object
java.lang.Record
net.minecraft.class_11437
Record Components:
label -
initial -
onTrue -
onFalse -
All Implemented Interfaces:
class_11438

public record class_11437(Text label, boolean initial, String onTrue, String onFalse) extends Record implements class_11438
Mappings:
Namespace Name
named net/minecraft/class_11437
intermediary net/minecraft/class_11437
official ash
named label
intermediary comp_4332
official c
named initial
intermediary comp_4333
official d
named onTrue
intermediary comp_4334
official e
named onFalse
intermediary comp_4335
official f
  • Field Details

    • label

      private final Text label
      The field for the label record component.
    • initial

      private final boolean initial
      The field for the initial record component.
    • onTrue

      private final String onTrue
      The field for the onTrue record component.
    • onFalse

      private final String onFalse
      The field for the onFalse record component.
    • field_60643

      public static final com.mojang.serialization.MapCodec<class_11437> field_60643
      Mappings:
      Namespace Name Mixin selector
      named field_60643 Lnet/minecraft/class_11437;field_60643:Lcom/mojang/serialization/MapCodec;
      intermediary field_60643 Lnet/minecraft/class_11437;field_60643:Lcom/mojang/serialization/MapCodec;
      official a Lash;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • class_11437

      public class_11437(Text text, boolean bool, String string, String string2)
  • Method Details

    • method_71717

      public com.mojang.serialization.MapCodec<class_11437> method_71717()
      Specified by:
      method_71717 in interface class_11438
      Mappings:
      Namespace Name Mixin selector
      named method_71717 Lnet/minecraft/class_11438;method_71717()Lcom/mojang/serialization/MapCodec;
      intermediary method_71717 Lnet/minecraft/class_11438;method_71717()Lcom/mojang/serialization/MapCodec;
      official a Lasi;a()Lcom/mojang/serialization/MapCodec;
    • 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.
    • label

      public Text label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • initial

      public boolean initial()
      Returns the value of the initial record component.
      Returns:
      the value of the initial record component
    • onTrue

      public String onTrue()
      Returns the value of the onTrue record component.
      Returns:
      the value of the onTrue record component
    • onFalse

      public String onFalse()
      Returns the value of the onFalse record component.
      Returns:
      the value of the onFalse record component