Class WeightedSizeFlockAsset
java.lang.Object
com.hypixel.hytale.server.flock.config.FlockAsset
com.hypixel.hytale.server.flock.config.WeightedSizeFlockAsset
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,IndexedLookupTableAssetMap<String, FlockAsset>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<WeightedSizeFlockAsset> protected intprotected double[]Fields inherited from class com.hypixel.hytale.server.flock.config.FlockAsset
ABSTRACT_CODEC, blockedRoles, CHILD_ASSET_CODEC, id, maxGrowSize, VALIDATOR_CACHE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.hypixel.hytale.server.flock.config.FlockAsset
getAssetMap, getAssetStore, getBlockedRoles, getId, getMaxGrowSize
-
Field Details
-
CODEC
-
minSize
protected int minSize -
sizeWeights
protected double[] sizeWeights
-
-
Constructor Details
-
WeightedSizeFlockAsset
protected WeightedSizeFlockAsset()
-
-
Method Details
-
getMinSize
public int getMinSize() -
getSizeWeights
public double[] getSizeWeights() -
getMinFlockSize
public int getMinFlockSize()- Specified by:
getMinFlockSizein classFlockAsset
-
pickFlockSize
public int pickFlockSize()- Specified by:
pickFlockSizein classFlockAsset
-
toString
- Overrides:
toStringin classFlockAsset
-