Record Class FollowProcess.EntityPredicateTarget
java.lang.Object
java.lang.Record
com.zenith.feature.pathfinder.process.FollowProcess.EntityPredicateTarget
- All Implemented Interfaces:
FollowProcess.EntityFollowTarget,FollowProcess.FollowTarget
- Enclosing class:
FollowProcess
public static record FollowProcess.EntityPredicateTarget(Predicate<EntityLiving> predicate)
extends Record
implements FollowProcess.EntityFollowTarget
-
Constructor Summary
ConstructorsConstructorDescriptionEntityPredicateTarget(Predicate<EntityLiving> predicate) Creates an instance of aEntityPredicateTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepredicaterecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.zenith.feature.pathfinder.process.FollowProcess.EntityFollowTarget
followable
-
Constructor Details
-
EntityPredicateTarget
Creates an instance of aEntityPredicateTargetrecord class.- Parameters:
predicate- the value for thepredicaterecord component
-
-
Method Details
-
pathingCommand
- Specified by:
pathingCommandin interfaceFollowProcess.FollowTarget
-
toString
-
hashCode
-
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). -
predicate
Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-