Package com.hypixel.hytale.server.flock
Class FlockMembershipSystems.RefChange
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.RefChangeSystem<EntityStore,FlockMembership>
com.hypixel.hytale.server.flock.FlockMembershipSystems.RefChange
- All Implemented Interfaces:
ISystem<EntityStore>,QuerySystem<EntityStore>
- Enclosing class:
FlockMembershipSystems
public static class FlockMembershipSystems.RefChange
extends RefChangeSystem<EntityStore,FlockMembership>
-
Field Summary
FieldsFields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionRefChange(ComponentType<EntityStore, FlockMembership> flockMembershipComponentType) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddoJoin(Ref<EntityStore> ref, FlockMembership membershipComponent, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) private static voiddoLeave(Ref<EntityStore> ref, FlockMembership membershipComponent, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) getQuery()voidonComponentAdded(Ref<EntityStore> ref, FlockMembership component, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) voidonComponentRemoved(Ref<EntityStore> ref, FlockMembership component, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) voidonComponentSet(Ref<EntityStore> ref, FlockMembership oldComponent, FlockMembership newComponent, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) private static voidsetNewLeader(UUID flockId, EntityGroup entityGroup, Flock flock, Ref<EntityStore> ref, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) 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
-
RefChange
-
-
Method Details
-
getQuery
-
componentType
- Specified by:
componentTypein classRefChangeSystem<EntityStore,FlockMembership>
-
onComponentAdded
public void onComponentAdded(@Nonnull Ref<EntityStore> ref, @Nonnull FlockMembership component, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
onComponentAddedin classRefChangeSystem<EntityStore,FlockMembership>
-
onComponentSet
public void onComponentSet(@Nonnull Ref<EntityStore> ref, FlockMembership oldComponent, @Nonnull FlockMembership newComponent, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
onComponentSetin classRefChangeSystem<EntityStore,FlockMembership>
-
onComponentRemoved
public void onComponentRemoved(@Nonnull Ref<EntityStore> ref, @Nonnull FlockMembership component, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
onComponentRemovedin classRefChangeSystem<EntityStore,FlockMembership>
-
doJoin
private void doJoin(@Nonnull Ref<EntityStore> ref, @Nonnull FlockMembership membershipComponent, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
doLeave
private static void doLeave(@Nonnull Ref<EntityStore> ref, @Nonnull FlockMembership membershipComponent, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
setNewLeader
private static void setNewLeader(@Nonnull UUID flockId, @Nonnull EntityGroup entityGroup, @Nonnull Flock flock, @Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer)
-