Contents
Class BeamSystems.Remove
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.RefChangeSystem<EntityStore, BeamComponent>
com.hypixel.hytale.builtin.beam.BeamSystems.Remove
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>
- Enclosing class:
BeamSystems
Tells viewers to drop the beams of an entity when it loses the component.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionRemove(ComponentType<EntityStore, EntityTrackerSystems.Visible> visibleComponentType, ComponentType<EntityStore, BeamComponent> beamComponentType) -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidonComponentAdded(Ref<EntityStore> ref, BeamComponent component, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) Called after a component has been added to an entity and has aComponentTypethat matchesRefChangeSystem.componentType().voidonComponentRemoved(Ref<EntityStore> ref, BeamComponent component, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) Called after a component has been removed from an entity and has aComponentTypethat matchesRefChangeSystem.componentType().voidonComponentSet(Ref<EntityStore> ref, BeamComponent oldComponent, BeamComponent newComponent, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) Called after a component has been set on an entity and has aComponentTypethat matchesRefChangeSystem.componentType().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
-
Remove
public Remove(@Nonnull ComponentType<EntityStore, EntityTrackerSystems.Visible> visibleComponentType, @Nonnull ComponentType<EntityStore, BeamComponent> beamComponentType)
-
-
Method Details
-
getQuery
-
componentType
- Specified by:
componentTypein classRefChangeSystem<EntityStore, BeamComponent>- Returns:
- the component type that we're listening for changes from
-
onComponentAdded
public void onComponentAdded(@Nonnull Ref<EntityStore> ref, @Nonnull BeamComponent component, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) Description copied from class:RefChangeSystemCalled after a component has been added to an entity and has aComponentTypethat matchesRefChangeSystem.componentType().- Specified by:
onComponentAddedin classRefChangeSystem<EntityStore, BeamComponent>- Parameters:
ref- The reference to the affiliated entitycomponent- The component instance being addedstore- The store affiliated with the entitycommandBuffer- The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the component add.
-
onComponentSet
public void onComponentSet(@Nonnull Ref<EntityStore> ref, BeamComponent oldComponent, @Nonnull BeamComponent newComponent, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) Description copied from class:RefChangeSystemCalled after a component has been set on an entity and has aComponentTypethat matchesRefChangeSystem.componentType().- Specified by:
onComponentSetin classRefChangeSystem<EntityStore, BeamComponent>- Parameters:
ref- The reference to the affiliated entityoldComponent- The old component instance being replacednewComponent- The new component instance being setstore- The store affiliated with the entitycommandBuffer- The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the component set.
-
onComponentRemoved
public void onComponentRemoved(@Nonnull Ref<EntityStore> ref, @Nonnull BeamComponent component, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) Description copied from class:RefChangeSystemCalled after a component has been removed from an entity and has aComponentTypethat matchesRefChangeSystem.componentType().- Specified by:
onComponentRemovedin classRefChangeSystem<EntityStore, BeamComponent>- Parameters:
ref- The reference to the affiliated entitycomponent- The component instance being removedstore- The store affiliated with the entitycommandBuffer- The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the component remove.
-