Class OneClientServer

java.lang.Object
org.polyfrost.oneclient.common.OneClientServer
All Implemented Interfaces:
org.polyfrost.oneclient.api.OneClientApi

public final class OneClientServer extends Object implements org.polyfrost.oneclient.api.OneClientApi
  • Constructor Details

  • Method Details

    • handlePluginMessage

      public void handlePluginMessage(UUID uniqueId, String name, byte[] data)
    • handleQuit

      public void handleQuit(UUID uniqueId)
    • sendPacket

      public void sendPacket(UUID uniqueId, Packet packet)
    • getPlayer

      public Optional<org.polyfrost.oneclient.api.OneClientPlayer> getPlayer(UUID uniqueId)
      Specified by:
      getPlayer in interface org.polyfrost.oneclient.api.OneClientApi
    • isOneClient

      public boolean isOneClient(UUID uniqueId)
      Specified by:
      isOneClient in interface org.polyfrost.oneclient.api.OneClientApi
    • getPlayers

      public Collection<org.polyfrost.oneclient.api.OneClientPlayer> getPlayers()
      Specified by:
      getPlayers in interface org.polyfrost.oneclient.api.OneClientApi
    • getEventBus

      public org.polyfrost.oneclient.api.event.EventBus getEventBus()
      Specified by:
      getEventBus in interface org.polyfrost.oneclient.api.OneClientApi