Record Class CreateEntityTrackerEvent
java.lang.Object
java.lang.Record
kr.toxicity.model.api.event.CreateEntityTrackerEvent
- Record Components:
tracker- the newly created entity tracker
- All Implemented Interfaces:
ModelEvent
public record CreateEntityTrackerEvent(@NotNull EntityTracker tracker)
extends Record
implements ModelEvent
Triggered when a new
EntityTracker is created.
This event allows plugins/mods to perform initialization or tracking logic for entity trackers.
- Since:
- 2.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreateEntityTrackerEvent(@NotNull EntityTracker tracker) Creates an instance of aCreateEntityTrackerEventrecord 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.final StringtoString()Returns a string representation of this record class.@NotNull EntityTrackertracker()Returns the value of thetrackerrecord component.Methods inherited from interface ModelEvent
call
-
Constructor Details
-
CreateEntityTrackerEvent
Creates an instance of aCreateEntityTrackerEventrecord class.- Parameters:
tracker- the value for thetrackerrecord 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). -
tracker
-