Package com.hypixel.hytale.server.flock
Class FlockMembershipSystems.EntityRef
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.RefSystem<EntityStore>
com.hypixel.hytale.server.flock.FlockMembershipSystems.EntityRef
- All Implemented Interfaces:
ISystem<EntityStore>,QuerySystem<EntityStore>
- Enclosing class:
FlockMembershipSystems
-
Field Summary
FieldsFields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionEntityRef(ComponentType<EntityStore, FlockMembership> flockMembershipComponentType) -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()private voidjoinOrCreateFlock(Ref<EntityStore> ref, Store<EntityStore> store) private static voidmarkNeedsSave(Ref<EntityStore> ref, Store<EntityStore> store, Flock flockComponent) voidonEntityAdded(Ref<EntityStore> ref, AddReason reason, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) voidonEntityRemove(Ref<EntityStore> ref, RemoveReason reason, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) private static voidsetInterimLeader(Store<EntityStore> store, FlockMembership interimLeaderMembership, EntityGroup entityGroup, Ref<EntityStore> interimLeader, Flock flockComponent, UUID flockId) Methods inherited from class com.hypixel.hytale.component.system.System
getComponentRegistrations, getResourceRegistrations, registerComponent, registerComponent, registerComponent, registerResource, registerResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.system.ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregisteredMethods inherited from interface com.hypixel.hytale.component.system.QuerySystem
test
-
Field Details
-
flockMembershipComponentType
-
-
Constructor Details
-
EntityRef
-
-
Method Details
-
getQuery
-
onEntityAdded
public void onEntityAdded(@Nonnull Ref<EntityStore> ref, @Nonnull AddReason reason, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
onEntityAddedin classRefSystem<EntityStore>
-
joinOrCreateFlock
-
onEntityRemove
public void onEntityRemove(@Nonnull Ref<EntityStore> ref, @Nonnull RemoveReason reason, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
onEntityRemovein classRefSystem<EntityStore>
-
markNeedsSave
private static void markNeedsSave(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull Flock flockComponent) -
setInterimLeader
private static void setInterimLeader(@Nonnull Store<EntityStore> store, @Nonnull FlockMembership interimLeaderMembership, @Nonnull EntityGroup entityGroup, Ref<EntityStore> interimLeader, @Nonnull Flock flockComponent, @Nonnull UUID flockId)
-