Package ru.dragonestia.msb3.api.ai
Record Class FollowerTarget
java.lang.Object
java.lang.Record
ru.dragonestia.msb3.api.ai.FollowerTarget
public record FollowerTarget(net.minestom.server.coordinate.Point point, ArrivalResultListener callback)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFollowerTarget(net.minestom.server.coordinate.Point point, ArrivalResultListener callback) Creates an instance of aFollowerTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallback()Returns the value of thecallbackrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minestom.server.coordinate.Pointpoint()Returns the value of thepointrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FollowerTarget
Creates an instance of aFollowerTargetrecord class.- Parameters:
point- the value for thepointrecord componentcallback- the value for thecallbackrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
point
public net.minestom.server.coordinate.Point point()Returns the value of thepointrecord component.- Returns:
- the value of the
pointrecord component
-
callback
Returns the value of thecallbackrecord component.- Returns:
- the value of the
callbackrecord component
-