Skip to content

FlockSizeCondition

Package: com.hypixel.hytale.server.flock.decisionmaker.conditions

public class FlockSizeCondition extends ScaledCurveCondition

A decision-maker condition that returns the current flock size for the evaluating NPC. Returns 1.0 if the NPC is not in a flock. Registered with codec ID "FlockSize". Extends ScaledCurveCondition, enabling response-curve-based scaling for size-dependent behavior decisions.

@Override
protected double getInput(int selfIndex, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, Ref<EntityStore> target, @Nonnull CommandBuffer<EntityStore> commandBuffer, EvaluationContext context)

Returns the EntityGroup size of the NPC’s flock, or 1.0 if not in a flock.

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