Contents
Class FlockMembership
java.lang.Object
com.hypixel.hytale.server.flock.FlockMembership
- All Implemented Interfaces:
Component<EntityStore>, DebugSupport.DebugFlagsChangeListener, Cloneable
public class FlockMembership
extends Object
implements Component<EntityStore>, DebugSupport.DebugFlagsChangeListener
Component recording an entity's membership in a flock.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<EntityStore, FlockMembership> voidonDebugFlagsChanged(EnumSet<RoleDebugFlags> newFlags) voidregisterAsDebugListener(DebugSupport debugSupport, Flock flock) Registers this membership as a debug flag listener to track VisFlock changes.voidsetFlockId(UUID flockId) voidsetFlockRef(Ref<EntityStore> flockRef) voidsetMembershipType(FlockMembership.Type membershipType) voidunload()voidunregisterAsDebugListener(DebugSupport debugSupport, Flock flock) Unregisters this membership as a debug flag listener.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
CODEC
-
-
Constructor Details
-
FlockMembership
public FlockMembership()
-
-
Method Details
-
getComponentType
-
getFlockId
-
setFlockId
-
getFlockRef
-
setFlockRef
-
setMembershipType
-
getMembershipType
-
unload
public void unload() -
registerAsDebugListener
Registers this membership as a debug flag listener to track VisFlock changes. Call when the NPC joins a flock. -
unregisterAsDebugListener
Unregisters this membership as a debug flag listener. Call when the NPC leaves a flock. -
onDebugFlagsChanged
- Specified by:
onDebugFlagsChangedin interfaceDebugSupport.DebugFlagsChangeListener
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-