Contents
Class InventorySystems.ActiveSlotChangedToolsHolderEventSystem
java.lang.Object
com.hypixel.hytale.component.system.EventSystem<InventorySetActiveSlotEvent>
com.hypixel.hytale.component.system.EntityHolderEventSystem<EntityStore, InventorySetActiveSlotEvent>
com.hypixel.hytale.server.core.inventory.InventorySystems.ActiveSlotChangedToolsHolderEventSystem
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>
- Enclosing class:
InventorySystems
public static class InventorySystems.ActiveSlotChangedToolsHolderEventSystem
extends EntityHolderEventSystem<EntityStore, InventorySetActiveSlotEvent>
Clears the
InventoryComponent.Tool.isUsingToolsItem() flag when a holder-based
entity switches to a hotbar slot, ensuring the hotbar item becomes the active hand again.-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidhandle(Holder<EntityStore> holder, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer, InventorySetActiveSlotEvent event) An overrideable method called to handle an event for a specific holder.Methods inherited from class EntityHolderEventSystem
handleInternalMethods inherited from class EventSystem
getEventTypeMethods 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
-
ActiveSlotChangedToolsHolderEventSystem
public ActiveSlotChangedToolsHolderEventSystem()
-
-
Method Details
-
handle
public void handle(@Nonnull Holder<EntityStore> holder, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull InventorySetActiveSlotEvent event) Description copied from class:EntityHolderEventSystemAn overrideable method called to handle an event for a specific holder.- Specified by:
handlein classEntityHolderEventSystem<EntityStore, InventorySetActiveSlotEvent>- Parameters:
holder- The holder containing the entity being processedstore- The ECS store.commandBuffer- The command buffer for queuing ECS commands.event- The event to be handled.
-
getQuery
-