Contents
Class AmbientEmitterSystems.EntityAdded
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.HolderSystem<EntityStore>
com.hypixel.hytale.builtin.ambience.systems.AmbientEmitterSystems.EntityAdded
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>
- Enclosing class:
AmbientEmitterSystems
A holder system that ensures certain non-persistent components on the ambient emitter.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionEntityAdded(ComponentType<EntityStore, AmbientEmitterComponent> ambientEmitterComponentType, ComponentType<EntityStore, TransformComponent> transformComponentType, ComponentType<EntityStore, NetworkId> networkIdComponentType, ComponentType<EntityStore, Intangible> intangibleComponentType, ComponentType<EntityStore, PrefabCopyableComponent> prefabCopyableComponentType) -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidonEntityAdd(Holder<EntityStore> holder, AddReason reason, Store<EntityStore> store) Called before an entity has been added to aStoreand has anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.voidonEntityRemoved(Holder<EntityStore> holder, RemoveReason reason, Store<EntityStore> store) Called after an entity has been removed from aStoreand has anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.Methods inherited from class System
getComponentRegistrations, getResourceRegistrations, registerResource, registerResourceMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregisteredMethods inherited from interface QuerySystem
getHierarchyScope, test
-
Constructor Details
-
EntityAdded
public EntityAdded(@Nonnull ComponentType<EntityStore, AmbientEmitterComponent> ambientEmitterComponentType, @Nonnull ComponentType<EntityStore, TransformComponent> transformComponentType, @Nonnull ComponentType<EntityStore, NetworkId> networkIdComponentType, @Nonnull ComponentType<EntityStore, Intangible> intangibleComponentType, @Nonnull ComponentType<EntityStore, PrefabCopyableComponent> prefabCopyableComponentType)
-
-
Method Details
-
onEntityAdd
public void onEntityAdd(@Nonnull Holder<EntityStore> holder, @Nonnull AddReason reason, @Nonnull Store<EntityStore> store) Description copied from class:HolderSystemCalled before an entity has been added to aStoreand has anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.- Specified by:
onEntityAddin classHolderSystem<EntityStore>- Parameters:
holder- The holder of the entity being added to the storereason- The reason that the entity is being addedstore- The store that the entity is being added to
-
onEntityRemoved
public void onEntityRemoved(@Nonnull Holder<EntityStore> holder, @Nonnull RemoveReason reason, @Nonnull Store<EntityStore> store) Description copied from class:HolderSystemCalled after an entity has been removed from aStoreand has anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.- Specified by:
onEntityRemovedin classHolderSystem<EntityStore>- Parameters:
holder- The holder of the entity being removed from the storereason- The reason that the entity is being removedstore- The store that the entity is being removed from
-
getQuery
-