Contents
Class RespawnSystems.ReenableVoiceOnRespawn
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.RefChangeSystem<EntityStore, DeathComponent>
com.hypixel.hytale.server.core.modules.entity.damage.RespawnSystems.OnRespawnSystem
com.hypixel.hytale.server.core.modules.entity.damage.RespawnSystems.ReenableVoiceOnRespawn
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>
- Enclosing class:
RespawnSystems
Re-enable Voice On Respawn System
A respawn system that clears the silenced flag on respawn, allowing the player to speak again.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidonComponentRemoved(Ref<EntityStore> ref, DeathComponent component, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) Called after a component has been removed from an entity and has aComponentTypethat matchesRefChangeSystem.componentType().Methods inherited from class RespawnSystems.OnRespawnSystem
componentType, onComponentAdded, onComponentSetMethods 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
-
ReenableVoiceOnRespawn
public ReenableVoiceOnRespawn()
-
-
Method Details
-
getQuery
-
onComponentRemoved
public void onComponentRemoved(@Nonnull Ref<EntityStore> ref, @Nonnull DeathComponent 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, DeathComponent>- 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.
-