Package cn.nukkit.network
Interface SourceInterface
- All Known Subinterfaces:
AdvancedSourceInterface
- All Known Implementing Classes:
RakNetInterface
public interface SourceInterface
- Author:
- MagicDroidX (Nukkit Project)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
int
getNetworkLatency
(Player player) getSession
(InetSocketAddress address) boolean
process()
default Integer
putPacket
(Player player, DataPacket packet) Deprecated.default Integer
putPacket
(Player player, DataPacket packet, boolean needACK) Deprecated.default Integer
putPacket
(Player player, DataPacket packet, boolean needACK, boolean immediate) Deprecated.putResourcePacket
(Player player, DataPacket packet) void
void
shutdown()
-
Method Details
-
putPacket
Deprecated. -
putPacket
Deprecated. -
putPacket
@Deprecated default Integer putPacket(Player player, DataPacket packet, boolean needACK, boolean immediate) Deprecated. -
getSession
-
getNetworkLatency
-
close
-
close
-
setName
-
process
boolean process() -
shutdown
void shutdown() -
emergencyShutdown
void emergencyShutdown() -
putResourcePacket
-