接口 Packet<T extends PacketListener>

    • 方法详细资料

      • write

        void write​(PacketByteBuf buf)
        Mappings:
        Namespace Name Mixin selector
        official a Lpf;a(Lob;)V
        intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
        named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
      • apply

        void apply​(T listener)
        Mappings:
        Namespace Name Mixin selector
        official a Lpf;a(Loe;)V
        intermediary method_11054 Lnet/minecraft/class_2596;method_11054(Lnet/minecraft/class_2547;)V
        named apply Lnet/minecraft/network/Packet;apply(Lnet/minecraft/network/listener/PacketListener;)V
      • isWritingErrorSkippable

        default boolean isWritingErrorSkippable()
        Returns whether a throwable in writing of this packet allows the connection to simply skip the packet's sending than disconnecting.
        Mappings:
        Namespace Name Mixin selector
        official a Lpf;a()Z
        intermediary method_11051 Lnet/minecraft/class_2596;method_11051()Z
        named isWritingErrorSkippable Lnet/minecraft/network/Packet;isWritingErrorSkippable()Z