Record Class LongJumpTask.Target

java.lang.Object
java.lang.Record
net.minecraft.entity.ai.brain.task.LongJumpTask.Target
Record Components:
pos -
weight -
Enclosing class:
LongJumpTask<E extends MobEntity>

public static record LongJumpTask.Target(BlockPos pos, int weight) extends Record
Mappings:
Namespace Name
named net/minecraft/entity/ai/brain/task/LongJumpTask$Target
intermediary net/minecraft/class_6030$class_6031
official caz$a
named pos
intermediary comp_3478
official a
named weight
intermediary comp_3479
official b
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    private final BlockPos
    The field for the pos record component.
    private final int
    The field for the weight record component.
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Target(BlockPos pos, int weight)
    Creates an instance of a Target record class.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    pos()
    Returns the value of the pos record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the weight record component.

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details Link icon

    • pos Link icon

      private final BlockPos pos
      The field for the pos record component.
    • weight Link icon

      private final int weight
      The field for the weight record component.
  • Constructor Details Link icon

    • Target Link icon

      public Target(BlockPos pos, int weight)
      Creates an instance of a Target record class.
      Parameters:
      pos - the value for the pos record component
      weight - the value for the weight record component
  • Method Details Link icon

    • toString Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      public BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • weight Link icon

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