Class EntityTrackingEvents
java.lang.Object
net.fabricmc.fabric.api.networking.v1.EntityTrackingEvents
Events related to a tracking entities within a player's view distance.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Event
<EntityTrackingEvents.StartTracking> An event that is called before player starts tracking an entity.static final Event
<EntityTrackingEvents.StopTracking> An event that is called after a player has stopped tracking an entity. -
Method Summary
-
Field Details
-
START_TRACKING
An event that is called before player starts tracking an entity. Typically, this occurs when an entity enters a client's view distance. This event is called before the player's client is sent the entity's spawn packet. -
STOP_TRACKING
An event that is called after a player has stopped tracking an entity. The client at this point was sent a packet todestroy
the entity on the client. The entity still exists on the server.
-