Class MindustryClajProvider
java.lang.Object
com.xpdustry.claj.client.MindustryClajProvider
- All Implemented Interfaces:
com.xpdustry.claj.api.ClajProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.xpdustry.claj.common.status.ClajVersionStored in mod file.static final com.xpdustry.claj.common.status.ClajTypeCLaJ type is"Mindustry"for this implementation.static final mindustry.net.Net.NetProviderstatic final mindustry.net.ArcNetProvider.PacketSerializerstatic final arc.net.Serverstatic final arc.net.NetListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectClient(String host, int port, Runnable success, ByteBuffer joinPacket) arc.net.NetListenergetConnectionListener(com.xpdustry.claj.api.ClajProxy proxy) com.xpdustry.claj.common.packets.ConnectionPayloadPacket.Serializercom.xpdustry.claj.common.status.ClajTypegetType()com.xpdustry.claj.common.status.ClajVersionvoidhandlePingerError(com.xpdustry.claj.api.ClajPinger pinger, Throwable error) voidhandleProxyError(com.xpdustry.claj.api.ClajProxy proxy, Throwable error) com.xpdustry.claj.api.ClajProxynewProxy()void<T> TreadRoomState(long roomId, com.xpdustry.claj.common.status.ClajType type, ByteBuffer buff) voidshowMessage(com.xpdustry.claj.api.ClajProxy proxy, com.xpdustry.claj.common.status.MessageType message) voidvoidshowTextMessage(com.xpdustry.claj.api.ClajProxy proxy, String text) writeRoomState(com.xpdustry.claj.api.ClajProxy proxy) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.xpdustry.claj.api.ClajProvider
newPinger
-
Field Details
-
mindustryProvider
public static final mindustry.net.Net.NetProvider mindustryProvider -
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 clajVersionStored in mod file. -
implType
public static final com.xpdustry.claj.common.status.ClajType implTypeCLaJ type is"Mindustry"for this implementation.
-
-
Constructor Details
-
MindustryClajProvider
public MindustryClajProvider()
-
-
Method Details
-
postTask
- Specified by:
postTaskin interfacecom.xpdustry.claj.api.ClajProvider
-
getExecutor
- Specified by:
getExecutorin interfacecom.xpdustry.claj.api.ClajProvider
-
newProxy
public com.xpdustry.claj.api.ClajProxy newProxy()- Specified by:
newProxyin interfacecom.xpdustry.claj.api.ClajProvider
-
handleProxyError
- Specified by:
handleProxyErrorin interfacecom.xpdustry.claj.api.ClajProvider
-
handlePingerError
- Specified by:
handlePingerErrorin interfacecom.xpdustry.claj.api.ClajProvider
-
getType
public com.xpdustry.claj.common.status.ClajType getType()- Specified by:
getTypein interfacecom.xpdustry.claj.api.ClajProvider
-
getVersion
public com.xpdustry.claj.common.status.ClajVersion getVersion()- Specified by:
getVersionin interfacecom.xpdustry.claj.api.ClajProvider
-
getConnectionListener
public arc.net.NetListener getConnectionListener(com.xpdustry.claj.api.ClajProxy proxy) - Specified by:
getConnectionListenerin interfacecom.xpdustry.claj.api.ClajProvider
-
writeRoomState
- Specified by:
writeRoomStatein interfacecom.xpdustry.claj.api.ClajProvider
-
readRoomState
public <T> T readRoomState(long roomId, com.xpdustry.claj.common.status.ClajType type, ByteBuffer buff) - Specified by:
readRoomStatein interfacecom.xpdustry.claj.api.ClajProvider
-
connectClient
- Specified by:
connectClientin interfacecom.xpdustry.claj.api.ClajProvider
-
getPacketWrapperSerializer
public com.xpdustry.claj.common.packets.ConnectionPayloadPacket.Serializer getPacketWrapperSerializer()- Specified by:
getPacketWrapperSerializerin interfacecom.xpdustry.claj.api.ClajProvider
-
showTextMessage
- Specified by:
showTextMessagein interfacecom.xpdustry.claj.api.ClajProvider
-
showMessage
public void showMessage(com.xpdustry.claj.api.ClajProxy proxy, com.xpdustry.claj.common.status.MessageType message) - Specified by:
showMessagein interfacecom.xpdustry.claj.api.ClajProvider
-
showPopup
- Specified by:
showPopupin interfacecom.xpdustry.claj.api.ClajProvider
-