Skip to content

Latest commit

 

History

History
210 lines (210 loc) · 10.7 KB

cn.nukkit.network.Network.md

File metadata and controls

210 lines (210 loc) · 10.7 KB
  • 成员变量一览

    成员变量 
    修饰符和类 成员变量描述
    static byte CHANNEL_BLOCKS 
    static byte CHANNEL_END 
    static byte CHANNEL_ENTITY_SPAWNING 
    static byte CHANNEL_MOVEMENT 
    static byte CHANNEL_NONE 
    static byte CHANNEL_PRIORITY 
    static byte CHANNEL_TEXT 
    static byte CHANNEL_WORLD_CHUNKS 
    static byte CHANNEL_WORLD_EVENTS 
  • 构造函数一览

    构造函数 
    构造函数描述
    Network(Server server) 
  • 成员函数一览

    All Methods Static Methods Instance Methods Concrete Methods 
    修饰符和类 成员函数描述
    void addStatistics(double upload, double download) 
    void blockAddress(InetAddress address) 
    void blockAddress(InetAddress address, int timeout) 
    static byte[] deflateRaw(byte[][] datas, int level) 
    static byte[] deflateRaw(byte[] data, int level) 
    double getDownload() 
    Set<SourceInterface> getInterfaces() 
    String getName() 
    DataPacket getPacket(int id) 
    Server getServer() 
    String getSubName() 
    double getUpload() 
    static byte[] inflateRaw(byte[] data) 
    void processBatch(BatchPacket packet, Player player) 
    void processBatch(byte[] payload, Collection<DataPacket> packets) 
    void processInterfaces() 
    void processPackets(Player player, List<DataPacket> packets)
    Process packets obtained from batch packets Required to perform additional analyses and filter unnecessary packets
    void registerInterface(SourceInterface interfaz) 
    void registerPacket(byte id, Class<? extends DataPacket> clazz) 
    void resetStatistics() 
    void sendPacket(InetSocketAddress socketAddress, io.netty.buffer.ByteBuf payload) 
    void setName(String name) 
    void setSubName(String subName) 
    void unblockAddress(InetAddress address) 
    void unregisterInterface(SourceInterface sourceInterface) 
    void updateName() 
    • 继承自类 java.lang.Object

      clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait