Record Class GameEventListenerDebugData

java.lang.Object
java.lang.Record
net.minecraft.world.debug.data.GameEventListenerDebugData
Record Components:
listenerRadius -

public record GameEventListenerDebugData(int listenerRadius) extends Record
Mappings:
Namespace Name
named net/minecraft/world/debug/data/GameEventListenerDebugData
intermediary net/minecraft/class_12010
official bws
named listenerRadius
intermediary comp_4856
official b
  • Field Details

    • listenerRadius

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

      public static final PacketCodec<RegistryByteBuf,GameEventListenerDebugData> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/world/debug/data/GameEventListenerDebugData;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_62856 Lnet/minecraft/class_12010;field_62856:Lnet/minecraft/class_9139;
      official a Lbws;a:Laat;
  • Constructor Details

    • GameEventListenerDebugData

      public GameEventListenerDebugData(int listenerRadius)
      Creates an instance of a GameEventListenerDebugData record class.
      Parameters:
      listenerRadius - the value for the listenerRadius record component
  • 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. All components in this record class 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.
    • listenerRadius

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