Record Class PoiDebugData

java.lang.Object
java.lang.Record
net.minecraft.world.debug.data.PoiDebugData
Record Components:
pos -
poiType -
freeTicketCount -

public record PoiDebugData(BlockPos pos, RegistryEntry<PointOfInterestType> poiType, int freeTicketCount) extends Record
Mappings:
Namespace Name
named net/minecraft/world/debug/data/PoiDebugData
intermediary net/minecraft/class_12014
official bvq
named pos
intermediary comp_4864
official b
named poiType
intermediary comp_4865
official c
named freeTicketCount
intermediary comp_4866
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.
    • freeTicketCount

      private final int freeTicketCount
      The field for the freeTicketCount record component.
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,PoiDebugData> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/world/debug/data/PoiDebugData;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_62861 Lnet/minecraft/class_12014;field_62861:Lnet/minecraft/class_9139;
      official a Lbvq;a:Laae;
  • Constructor Details

    • PoiDebugData

      public PoiDebugData(PointOfInterest poi)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/debug/data/PoiDebugData;<init>(Lnet/minecraft/world/poi/PointOfInterest;)V
      intermediary <init> Lnet/minecraft/class_12014;<init>(Lnet/minecraft/class_4156;)V
      official <init> Lbvq;<init>(Lcqd;)V
    • PoiDebugData

      public PoiDebugData(BlockPos blockPos, RegistryEntry<PointOfInterestType> registryEntry, int int2)
  • Method Details

    • 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
    • freeTicketCount

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