RangeSizeFlockAsset
Package: com.hypixel.hytale.server.flock.config
public class RangeSizeFlockAsset extends FlockAssetDefault flock asset type (codec ID "Default"). The initial flock size is picked uniformly from a [min, max] range.
Fields
Section titled “Fields”| Field | Type | Default | Description |
|---|---|---|---|
Size | int[2] | [1, 1] | Random range for initial flock size (min, max inclusive). |
Methods
Section titled “Methods”public int[] getSize()@Overridepublic int getMinFlockSize()Returns size[0].
@Overridepublic int pickFlockSize()Returns a random value in [max(1, size[0]), size[1]].
@Nonnullpublic static RangeSizeFlockAsset getUnknownFor(String id)Creates a fallback instance for unknown asset IDs. Used as the replace-on-remove handler.
Related Types
Section titled “Related Types”- FlockAsset — abstract base class
- WeightedSizeFlockAsset — alternative implementation
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.