BlackboardSystems
Package: com.hypixel.hytale.server.npc.systems
public class BlackboardSystemsContainer class for four ECS systems that manage the shared Blackboard resource. The Blackboard provides structured world-state views (block types, events, attitudes, resources, interactions) to NPC sensors.
Inner Systems
Section titled “Inner Systems”BlackboardSystems.InitSystem
Section titled “BlackboardSystems.InitSystem”public static class InitSystem extends StoreSystem<EntityStore>Initializes and tears down the Blackboard resource when the system is added to or removed from the store.
@Overridepublic void onSystemAddedToStore(@Nonnull Store<EntityStore> store)Calls Blackboard.init(world) to set up all blackboard views for the world.
@Overridepublic void onSystemRemovedFromStore(@Nonnull Store<EntityStore> store)Calls Blackboard.onWorldRemoved() to clean up all views.
BlackboardSystems.TickingSystem
Section titled “BlackboardSystems.TickingSystem”public static class TickingSystem extends DelayedSystem<EntityStore>Periodically cleans up stale blackboard view data. Runs every 5 seconds (SYSTEM_INTERVAL = 5.0F).
@Overridepublic void delayedTick(float dt, int systemIndex, @Nonnull Store<EntityStore> store)Calls Blackboard.cleanupViews().
BlackboardSystems.BreakBlockEventSystem
Section titled “BlackboardSystems.BreakBlockEventSystem”public static class BreakBlockEventSystem extends EntityEventSystem<EntityStore, BreakBlockEvent>Forwards BreakBlockEvent ECS events to the blackboard. Calls Blackboard.onEntityBreakBlock(ref, event).
BlackboardSystems.DamageBlockEventSystem
Section titled “BlackboardSystems.DamageBlockEventSystem”public static class DamageBlockEventSystem extends EntityEventSystem<EntityStore, DamageBlockEvent>Forwards DamageBlockEvent ECS events to the blackboard. Calls Blackboard.onEntityDamageBlock(ref, event).
Related Types
Section titled “Related Types”- RoleSystems — uses blackboard data during behavior ticks
- PositionCacheSystems — spatial queries that complement blackboard views