Package com.hypixel.hytale.server.flock
Class PersistentFlockData
java.lang.Object
com.hypixel.hytale.server.flock.PersistentFlockData
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<PersistentFlockData> private String[]private intprivate intFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePersistentFlockData(FlockAsset flockDefinition, String[] allowedRoles) -
Method Summary
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
CODEC
-
maxGrowSize
private int maxGrowSize -
flockAllowedRoles
-
size
private int size
-
-
Constructor Details
-
PersistentFlockData
-
PersistentFlockData
private PersistentFlockData()
-
-
Method Details
-
getComponentType
-
getMaxGrowSize
public int getMaxGrowSize() -
isFlockAllowedRole
-
increaseSize
public void increaseSize() -
decreaseSize
public void decreaseSize() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-