类 VanillaPacketSplitter

java.lang.Object
net.minecraftforge.network.filters.VanillaPacketSplitter

public class VanillaPacketSplitter extends Object
A custom payload channel that allows sending vanilla server-to-client packets, even if they would normally be too large for the vanilla protocol. This is achieved by splitting them into multiple custom payload packets.
  • 字段详细资料

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • CHANNEL

      private static final ResourceLocation CHANNEL
    • VERSION

      private static final String VERSION
      另请参阅:
    • PROTOCOL_MAX

      private static final int PROTOCOL_MAX
      另请参阅:
    • PAYLOAD_TO_CLIENT_MAX

      private static final int PAYLOAD_TO_CLIENT_MAX
      另请参阅:
    • PART_SIZE

      private static final int PART_SIZE
      另请参阅:
    • STATE_FIRST

      private static final byte STATE_FIRST
      另请参阅:
    • STATE_LAST

      private static final byte STATE_LAST
      另请参阅:
    • receivedBuffers

      private static final List<FriendlyByteBuf> receivedBuffers
  • 构造器详细资料

    • VanillaPacketSplitter

      public VanillaPacketSplitter()
  • 方法详细资料