Record Class PointOfInterest.Serialized

java.lang.Object
java.lang.Record
net.minecraft.world.poi.PointOfInterest.Serialized
Record Components:
pos -
poiType -
freeTickets -
Enclosing class:
PointOfInterest

public static record PointOfInterest.Serialized(BlockPos pos, RegistryEntry<PointOfInterestType> poiType, int freeTickets) extends Record
Mappings:
Namespace Name
named net/minecraft/world/poi/PointOfInterest$Serialized
intermediary net/minecraft/class_4156$class_9864
official chk$a
named pos
intermediary comp_2911
official b
named poiType
intermediary comp_2912
official c
named freeTickets
intermediary comp_2913
official d
  • Field Details

    • pos

      private final BlockPos pos
      The field for the pos record component.
    • poiType

      private final RegistryEntry<PointOfInterestType> poiType
      The field for the poiType record component.
    • freeTickets

      private final int freeTickets
      The field for the freeTickets record component.
    • CODEC

      public static final com.mojang.serialization.Codec<PointOfInterest.Serialized> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/poi/PointOfInterest$Serialized;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_52452 Lnet/minecraft/class_4156$class_9864;field_52452:Lcom/mojang/serialization/Codec;
      official a Lchk$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • toPointOfInterest

      public PointOfInterest toPointOfInterest(Runnable updateListener)
      Mappings:
      Namespace Name Mixin selector
      named toPointOfInterest Lnet/minecraft/world/poi/PointOfInterest$Serialized;toPointOfInterest(Ljava/lang/Runnable;)Lnet/minecraft/world/poi/PointOfInterest;
      intermediary method_61450 Lnet/minecraft/class_4156$class_9864;method_61450(Ljava/lang/Runnable;)Lnet/minecraft/class_4156;
      official a Lchk$a;a(Ljava/lang/Runnable;)Lchk;
    • 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.
    • pos

      public BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • poiType

      Returns the value of the poiType record component.
      Returns:
      the value of the poiType record component
    • freeTickets

      public int freeTickets()
      Returns the value of the freeTickets record component.
      Returns:
      the value of the freeTickets record component