Class StandardEventDispatcher

java.lang.Object
fr.hytale.loader.internal.StandardEventDispatcher
All Implemented Interfaces:
SimpleListener

public class StandardEventDispatcher extends Object implements SimpleListener
Internal dispatcher for standard player events.

This class receives native Hytale player events, wraps them in HytaleLoader event objects, and dispatches them through the HytaleLoader event bus for mods to listen to.

Since:
1.0.0
Version:
1.0.4
Author:
HytaleLoader
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onPlayerChat(com.hypixel.hytale.server.core.event.events.player.PlayerChatEvent event)
    Handles player chat events from the native Hytale event system.
    void
    onPlayerCraft(com.hypixel.hytale.server.core.event.events.player.PlayerCraftEvent event)
    Deprecated.
    The underlying Hytale event is deprecated
    void
    onPlayerJoin(com.hypixel.hytale.server.core.event.events.player.AddPlayerToWorldEvent event)
    Handles player join events from the native Hytale event system.
    void
    onPlayerMouseButton(com.hypixel.hytale.server.core.event.events.player.PlayerMouseButtonEvent event)
    Handles player mouse button events from the native Hytale event system.
    void
    onPlayerMouseMotion(com.hypixel.hytale.server.core.event.events.player.PlayerMouseMotionEvent event)
    Handles player mouse motion events from the native Hytale event system.
    void
    onPlayerQuit(com.hypixel.hytale.server.core.event.events.player.PlayerDisconnectEvent event)
    Handles player disconnect events from the native Hytale event system.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StandardEventDispatcher

      public StandardEventDispatcher()
  • Method Details

    • onPlayerJoin

      public void onPlayerJoin(com.hypixel.hytale.server.core.event.events.player.AddPlayerToWorldEvent event)
      Handles player join events from the native Hytale event system.
      Parameters:
      event - the native add player to world event
    • onPlayerQuit

      public void onPlayerQuit(com.hypixel.hytale.server.core.event.events.player.PlayerDisconnectEvent event)
      Handles player disconnect events from the native Hytale event system.
      Parameters:
      event - the native player disconnect event
    • onPlayerCraft

      @Deprecated public void onPlayerCraft(com.hypixel.hytale.server.core.event.events.player.PlayerCraftEvent event)
      Deprecated.
      The underlying Hytale event is deprecated
      Handles player crafting events from the native Hytale event system.
      Parameters:
      event - the native player craft event
    • onPlayerChat

      public void onPlayerChat(com.hypixel.hytale.server.core.event.events.player.PlayerChatEvent event)
      Handles player chat events from the native Hytale event system.
      Parameters:
      event - the native player chat event
    • onPlayerMouseButton

      public void onPlayerMouseButton(com.hypixel.hytale.server.core.event.events.player.PlayerMouseButtonEvent event)
      Handles player mouse button events from the native Hytale event system.
      Parameters:
      event - the native player mouse button event
    • onPlayerMouseMotion

      public void onPlayerMouseMotion(com.hypixel.hytale.server.core.event.events.player.PlayerMouseMotionEvent event)
      Handles player mouse motion events from the native Hytale event system.
      Parameters:
      event - the native player mouse motion event