Class BreakBlockSystem

java.lang.Object
com.hypixel.hytale.component.system.EventSystem<com.hypixel.hytale.server.core.event.events.ecs.BreakBlockEvent>
com.hypixel.hytale.component.system.EntityEventSystem<com.hypixel.hytale.server.core.universe.world.storage.EntityStore, com.hypixel.hytale.server.core.event.events.ecs.BreakBlockEvent>
fr.hytale.loader.internal.BreakBlockSystem
All Implemented Interfaces:
com.hypixel.hytale.component.system.ISystem<com.hypixel.hytale.server.core.universe.world.storage.EntityStore>, com.hypixel.hytale.component.system.QuerySystem<com.hypixel.hytale.server.core.universe.world.storage.EntityStore>

public class BreakBlockSystem extends com.hypixel.hytale.component.system.EntityEventSystem<com.hypixel.hytale.server.core.universe.world.storage.EntityStore, com.hypixel.hytale.server.core.event.events.ecs.BreakBlockEvent>
Internal ECS system for handling block break events.

This system hooks into Hytale's ECS to capture block break events along with the entity that caused them.

Since:
1.0.2
Version:
1.0.4
Author:
HytaleLoader
  • Field Summary

    Fields inherited from interface com.hypixel.hytale.component.system.ISystem

    EMPTY_ARRAY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.hypixel.hytale.component.query.Query<com.hypixel.hytale.server.core.universe.world.storage.EntityStore>
     
    void
    handle(int entityIndex, com.hypixel.hytale.component.ArchetypeChunk<com.hypixel.hytale.server.core.universe.world.storage.EntityStore> chunk, com.hypixel.hytale.component.Store<com.hypixel.hytale.server.core.universe.world.storage.EntityStore> store, com.hypixel.hytale.component.CommandBuffer<com.hypixel.hytale.server.core.universe.world.storage.EntityStore> commandBuffer, com.hypixel.hytale.server.core.event.events.ecs.BreakBlockEvent event)
     

    Methods inherited from class com.hypixel.hytale.component.system.EntityEventSystem

    handleInternal

    Methods inherited from class com.hypixel.hytale.component.system.EventSystem

    getEventType, shouldProcessEvent

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.hypixel.hytale.component.system.ISystem

    getDependencies, getGroup, onSystemRegistered, onSystemUnregistered

    Methods inherited from interface com.hypixel.hytale.component.system.QuerySystem

    test
  • Constructor Details

    • BreakBlockSystem

      public BreakBlockSystem()
  • Method Details

    • getQuery

      public com.hypixel.hytale.component.query.Query<com.hypixel.hytale.server.core.universe.world.storage.EntityStore> getQuery()
    • handle

      public void handle(int entityIndex, @Nonnull com.hypixel.hytale.component.ArchetypeChunk<com.hypixel.hytale.server.core.universe.world.storage.EntityStore> chunk, @Nonnull com.hypixel.hytale.component.Store<com.hypixel.hytale.server.core.universe.world.storage.EntityStore> store, @Nonnull com.hypixel.hytale.component.CommandBuffer<com.hypixel.hytale.server.core.universe.world.storage.EntityStore> commandBuffer, @Nonnull com.hypixel.hytale.server.core.event.events.ecs.BreakBlockEvent event)
      Specified by:
      handle in class com.hypixel.hytale.component.system.EntityEventSystem<com.hypixel.hytale.server.core.universe.world.storage.EntityStore, com.hypixel.hytale.server.core.event.events.ecs.BreakBlockEvent>