Skip to content

MountSystems.TrackerUpdate

Package: com.hypixel.hytale.builtin.mounts

public static class TrackerUpdate extends EntityTickingSystem<EntityStore>

Ticking system that queues MountedUpdate network packets for all viewers tracking a mounted entity. Runs in the EntityTrackerSystems.QUEUE_UPDATE_GROUP system group.

Matches entities with both EntityTrackerSystems.Visible and MountedComponent.

Each tick, for each matching entity:

  1. If MountedComponent.consumeNetworkOutdated() returns true, queues updates to all current viewers.
  2. Otherwise, if there are newly visible viewers, queues updates only to those new viewers.

For entity mounts, resolves the mount target’s NetworkId and creates a MountedUpdate with the network ID, offset, and controller type. For block mounts, reads the BlockMountComponent to obtain the seat position, rotation, and block type for the BlockMount protocol object.

@Override
public boolean isParallel(int archetypeChunkSize, int taskCount)

Delegates to EntityTickingSystem.maybeUseParallel().

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.