Package net.minecraft

Record Class class_8369

java.lang.Object
java.lang.Record
net.minecraft.class_8369
Record Components:
displayName -
start -
duration -
cost -

public record class_8369(Text displayName, long start, long duration, List<class_8390.class_8391> cost) extends Record
Mappings:
Namespace Name
official bgk
intermediary net/minecraft/class_8369
named net/minecraft/class_8369
official b
intermediary comp_1361
named displayName
official c
intermediary comp_1362
named start
official d
intermediary comp_1363
named duration
official e
intermediary comp_1364
named cost
  • Field Details

    • displayName

      private final Text displayName
      The field for the displayName record component.
    • start

      private final long start
      The field for the start record component.
    • duration

      private final long duration
      The field for the duration record component.
    • cost

      private final List<class_8390.class_8391> cost
      The field for the cost record component.
    • field_43981

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

  • Method Details

    • method_50461

      public long method_50461()
      Mappings:
      Namespace Name Mixin selector
      official a Lbgk;a()J
      intermediary method_50461 Lnet/minecraft/class_8369;method_50461()J
      named method_50461 Lnet/minecraft/class_8369;method_50461()J
    • 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.
    • displayName

      public Text displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • start

      public long start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • duration

      public long duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • cost

      public List<class_8390.class_8391> cost()
      Returns the value of the cost record component.
      Returns:
      the value of the cost record component