FlockSizeCondition
Package: com.hypixel.hytale.server.flock.decisionmaker.conditions
public class FlockSizeCondition extends ScaledCurveConditionA 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.
Methods
Section titled “Methods”@Overrideprotected 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.
Related Types
Section titled “Related Types”- FlockMembership — accessed to find the flock reference
- FlockPlugin — registers this condition
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.