Skip to content

RangeSizeFlockAsset

Package: com.hypixel.hytale.server.flock.config

public class RangeSizeFlockAsset extends FlockAsset

Default flock asset type (codec ID "Default"). The initial flock size is picked uniformly from a [min, max] range.

FieldTypeDefaultDescription
Sizeint[2][1, 1]Random range for initial flock size (min, max inclusive).
public int[] getSize()
@Override
public int getMinFlockSize()

Returns size[0].

@Override
public int pickFlockSize()

Returns a random value in [max(1, size[0]), size[1]].

@Nonnull
public static RangeSizeFlockAsset getUnknownFor(String id)

Creates a fallback instance for unknown asset IDs. Used as the replace-on-remove handler.

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