Contents
Class MusicEmitterSystems.Lifecycle
java.lang.Object
com.hypixel.hytale.component.system.System<ChunkStore>
com.hypixel.hytale.component.system.HolderSystem<ChunkStore>
com.hypixel.hytale.builtin.audio.systems.MusicEmitterSystems.Lifecycle
- All Implemented Interfaces:
ISystem<ChunkStore>, QuerySystem<ChunkStore>
- Enclosing class:
MusicEmitterSystems
Stamps the persisted origin when an emitter is first placed and replicates add/remove to
players already viewing the chunk on runtime place and break.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionLifecycle(ComponentType<ChunkStore, MusicEmitterBlock> musicEmitterBlockComponentType) -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidonEntityAdd(Holder<ChunkStore> holder, AddReason reason, Store<ChunkStore> store) Called before an entity has been added to aStoreand has anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.voidonEntityRemoved(Holder<ChunkStore> holder, RemoveReason reason, Store<ChunkStore> 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
-
Lifecycle
public Lifecycle(@Nonnull ComponentType<ChunkStore, MusicEmitterBlock> musicEmitterBlockComponentType)
-
-
Method Details
-
getQuery
-
onEntityAdd
public void onEntityAdd(@Nonnull Holder<ChunkStore> holder, @Nonnull AddReason reason, @Nonnull Store<ChunkStore> store) Description copied from class:HolderSystemCalled before an entity has been added to aStoreand has anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.- Specified by:
onEntityAddin classHolderSystem<ChunkStore>- 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<ChunkStore> holder, @Nonnull RemoveReason reason, @Nonnull Store<ChunkStore> store) Description copied from class:HolderSystemCalled after an entity has been removed from aStoreand has anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.- Specified by:
onEntityRemovedin classHolderSystem<ChunkStore>- 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
-