Record Class SculkSensorListener.class_6999

java.lang.Object
java.lang.Record
net.minecraft.world.event.listener.SculkSensorListener.class_6999
Record Components:
gameEvent -
distance -
pos -
sourceEntity -
Enclosing class:
SculkSensorListener

public static record SculkSensorListener.class_6999(GameEvent gameEvent, int distance, Vec3d pos, @Nullable Entity sourceEntity) extends Record
Mappings:
Namespace Name
official ctz$a
intermediary net/minecraft/class_5718$class_6999
named net/minecraft/world/event/listener/SculkSensorListener$class_6999
official a
intermediary comp_440
named gameEvent
official b
intermediary comp_441
named distance
official c
intermediary comp_442
named pos
official d
intermediary comp_443
named sourceEntity
  • Field Details

    • gameEvent

      private final GameEvent gameEvent
      The field for the gameEvent record component.
    • distance

      private final int distance
      The field for the distance record component.
    • pos

      private final Vec3d pos
      The field for the pos record component.
    • sourceEntity

      @Nullable private final @Nullable Entity sourceEntity
      The field for the sourceEntity record component.
  • Constructor Details

  • 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.
    • gameEvent

      public GameEvent gameEvent()
      Returns the value of the gameEvent record component.
      Returns:
      the value of the gameEvent record component
    • distance

      public int distance()
      Returns the value of the distance record component.
      Returns:
      the value of the distance record component
    • pos

      public Vec3d pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • sourceEntity

      @Nullable public @Nullable Entity sourceEntity()
      Returns the value of the sourceEntity record component.
      Returns:
      the value of the sourceEntity record component