Record Class SpawnPatrolTargetAcquiredEvent
java.lang.Object
java.lang.Record
com.zenith.event.module.SpawnPatrolTargetAcquiredEvent
public record SpawnPatrolTargetAcquiredEvent(EntityPlayer target, PlayerListEntry targetProfile)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSpawnPatrolTargetAcquiredEvent(EntityPlayer target, PlayerListEntry targetProfile) Creates an instance of aSpawnPatrolTargetAcquiredEventrecord 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.target()Returns the value of thetargetrecord component.Returns the value of thetargetProfilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpawnPatrolTargetAcquiredEvent
Creates an instance of aSpawnPatrolTargetAcquiredEventrecord class.- Parameters:
target- the value for thetargetrecord componenttargetProfile- the value for thetargetProfilerecord component
-
-
Method Details
-
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). -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
targetProfile
Returns the value of thetargetProfilerecord component.- Returns:
- the value of the
targetProfilerecord component
-