Skip to content

FlockSystems

Package: com.hypixel.hytale.server.flock

public class FlockSystems

Container for ECS systems that operate on flock entities. Contains four inner system classes registered by FlockPlugin.

public static class EntityRemoved extends RefSystem<EntityStore>

Handles flock entity removal. On REMOVE: dissolves the group by removing FlockMembership from all members, marking chunks dirty, and clearing the EntityGroup. On UNLOAD: clears the group without dissolving. Query matches entities with UUIDComponent, EntityGroup, and Flock.

public static class Ticking extends EntityTickingSystem<EntityStore>

Swaps the double-buffered damage data each tick via Flock.swapDamageDataBuffers(). Supports parallel execution. Query matches entities with the Flock component.

public static class FlockDebugSystem extends EntityTickingSystem<EntityStore>

Renders debug visualization when any flock member has the VisFlock debug flag set. Draws colored rings around members and lines connecting members to the leader. Ring colors are derived from the flock UUID. Only active when Flock.hasVisFlockMember() returns true.

public static class PlayerChangeGameModeEventSystem extends EntityEventSystem<EntityStore, ChangeGameModeEvent>

Removes FlockMembership when a player switches to a non-Adventure game mode.

  • Flock — the component these systems operate on
  • FlockPlugin — registers these systems
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.