Class EaglercraftNetworkManager
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.socket.EaglercraftNetworkManager
-
public class EaglercraftNetworkManager extends java.lang.Object
Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Constructor Summary
Constructors Constructor Description EaglercraftNetworkManager(java.lang.String address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkDisconnected()
void
closeChannel(IChatComponent reason)
void
connect()
EnumEaglerConnectionState
getConnectStatus()
boolean
getIsencrypted()
boolean
isChannelOpen()
boolean
isLocalChannel()
void
processReceivedPackets()
void
sendPacket(Packet pkt)
void
setCompressionTreshold(int compressionTreshold)
void
setConnectionState(EnumConnectionState state)
void
setNetHandler(INetHandler nethandler)
-
-
-
Field Detail
-
logger
public static final Logger logger
-
-
Method Detail
-
connect
public void connect()
-
getConnectStatus
public EnumEaglerConnectionState getConnectStatus()
-
closeChannel
public void closeChannel(IChatComponent reason)
-
setConnectionState
public void setConnectionState(EnumConnectionState state)
-
processReceivedPackets
public void processReceivedPackets() throws java.io.IOException
- Throws:
java.io.IOException
-
sendPacket
public void sendPacket(Packet pkt)
-
setNetHandler
public void setNetHandler(INetHandler nethandler)
-
isLocalChannel
public boolean isLocalChannel()
-
isChannelOpen
public boolean isChannelOpen()
-
getIsencrypted
public boolean getIsencrypted()
-
setCompressionTreshold
public void setCompressionTreshold(int compressionTreshold)
-
checkDisconnected
public boolean checkDisconnected()
-
-