Class MindustryClajProvider

java.lang.Object
com.xpdustry.claj.client.MindustryClajProvider
All Implemented Interfaces:
com.xpdustry.claj.api.ClajProvider

public class MindustryClajProvider extends Object implements com.xpdustry.claj.api.ClajProvider
  • Field Details

    • mindustryProvider

      public static final mindustry.net.ArcNetProvider mindustryProvider
    • mindustryClient

      public static final arc.net.Client mindustryClient
    • mindustryServer

      public static final arc.net.Server mindustryServer
    • mindustryServerDispatcher

      public static final arc.net.NetListener mindustryServerDispatcher
    • mindustrySerializer

      public static final mindustry.net.ArcNetProvider.PacketSerializer mindustrySerializer
    • clajVersion

      public static final com.xpdustry.claj.common.status.ClajVersion clajVersion
      Stored in mod file.
    • implType

      public static final com.xpdustry.claj.common.status.ClajType implType
      CLaJ type is "Mindustry" for this implementation.
  • Constructor Details

    • MindustryClajProvider

      public MindustryClajProvider()
  • Method Details

    • postTask

      public void postTask(Runnable task)
      Specified by:
      postTask in interface com.xpdustry.claj.api.ClajProvider
    • getExecutor

      public ExecutorService getExecutor()
      Specified by:
      getExecutor in interface com.xpdustry.claj.api.ClajProvider
    • newProxy

      public com.xpdustry.claj.api.ClajProxy newProxy()
      Specified by:
      newProxy in interface com.xpdustry.claj.api.ClajProvider
    • handleProxyError

      public void handleProxyError(com.xpdustry.claj.api.ClajProxy proxy, Throwable error)
      Specified by:
      handleProxyError in interface com.xpdustry.claj.api.ClajProvider
    • handlePingerError

      public void handlePingerError(com.xpdustry.claj.api.ClajPinger pinger, Throwable error)
      Specified by:
      handlePingerError in interface com.xpdustry.claj.api.ClajProvider
    • getType

      public com.xpdustry.claj.common.status.ClajType getType()
      Specified by:
      getType in interface com.xpdustry.claj.api.ClajProvider
    • getVersion

      public com.xpdustry.claj.common.status.ClajVersion getVersion()
      Specified by:
      getVersion in interface com.xpdustry.claj.api.ClajProvider
    • getConnectionListener

      public arc.net.NetListener getConnectionListener(com.xpdustry.claj.api.ClajProxy proxy)
      Specified by:
      getConnectionListener in interface com.xpdustry.claj.api.ClajProvider
    • writeRoomState

      public ByteBuffer writeRoomState(com.xpdustry.claj.api.ClajProxy proxy)
      Specified by:
      writeRoomState in interface com.xpdustry.claj.api.ClajProvider
    • readRoomState

      public <T> T readRoomState(long roomId, com.xpdustry.claj.common.status.ClajType type, ByteBuffer buff)
      Specified by:
      readRoomState in interface com.xpdustry.claj.api.ClajProvider
    • connectClient

      public void connectClient(String host, int port, Runnable success, ByteBuffer joinPacket)
      Specified by:
      connectClient in interface com.xpdustry.claj.api.ClajProvider
    • getPacketWrapperSerializer

      public com.xpdustry.claj.common.packets.ConnectionPayloadPacket.Serializer getPacketWrapperSerializer()
      Specified by:
      getPacketWrapperSerializer in interface com.xpdustry.claj.api.ClajProvider
    • showTextMessage

      public void showTextMessage(com.xpdustry.claj.api.ClajProxy proxy, String text)
      Specified by:
      showTextMessage in interface com.xpdustry.claj.api.ClajProvider
    • showMessage

      public void showMessage(com.xpdustry.claj.api.ClajProxy proxy, com.xpdustry.claj.common.status.MessageType message)
      Specified by:
      showMessage in interface com.xpdustry.claj.api.ClajProvider
    • showPopup

      public void showPopup(com.xpdustry.claj.api.ClajProxy proxy, String text)
      Specified by:
      showPopup in interface com.xpdustry.claj.api.ClajProvider