Record Class PointOfInterestSet.Serialized

java.lang.Object
java.lang.Record
net.minecraft.world.poi.PointOfInterestSet.Serialized
Record Components:
isValid -
records -
Enclosing class:
PointOfInterestSet

public static record PointOfInterestSet.Serialized(boolean isValid, List<PointOfInterest.Serialized> records) extends Record
Mappings:
Namespace Name
named net/minecraft/world/poi/PointOfInterestSet$Serialized
intermediary net/minecraft/class_4157$class_9865
official chl$a
named isValid
intermediary comp_2914
official b
named records
intermediary comp_2915
official c
  • Field Details

    • isValid

      private final boolean isValid
      The field for the isValid record component.
    • records

      private final List<PointOfInterest.Serialized> records
      The field for the records record component.
    • CODEC

      public static final com.mojang.serialization.Codec<PointOfInterestSet.Serialized> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/poi/PointOfInterestSet$Serialized;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_52453 Lnet/minecraft/class_4157$class_9865;field_52453:Lcom/mojang/serialization/Codec;
      official a Lchl$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • toPointOfInterestSet

      public PointOfInterestSet toPointOfInterestSet(Runnable updateListener)
      Mappings:
      Namespace Name Mixin selector
      named toPointOfInterestSet Lnet/minecraft/world/poi/PointOfInterestSet$Serialized;toPointOfInterestSet(Ljava/lang/Runnable;)Lnet/minecraft/world/poi/PointOfInterestSet;
      intermediary method_61453 Lnet/minecraft/class_4157$class_9865;method_61453(Ljava/lang/Runnable;)Lnet/minecraft/class_4157;
      official a Lchl$a;a(Ljava/lang/Runnable;)Lchl;
    • 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.
    • isValid

      public boolean isValid()
      Returns the value of the isValid record component.
      Returns:
      the value of the isValid record component
    • records

      public List<PointOfInterest.Serialized> records()
      Returns the value of the records record component.
      Returns:
      the value of the records record component