类 VanillaPacketSplitter
java.lang.Object
net.minecraftforge.network.filters.VanillaPacketSplitter
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.
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final ResourceLocation
private static final org.apache.logging.log4j.Logger
private static final int
private static final int
private static final int
private static final List<FriendlyByteBuf>
private static final byte
private static final byte
private static final String
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
appendPackets
(ConnectionProtocol protocol, PacketFlow direction, Packet<?> packet, List<? super Packet<?>> out) Append the given packet to the given list.private static <T extends PacketListener>
voidgenericsFtw
(Packet<T> pkt, Object listener) getRemoteCompatibility
(Connection manager) private static boolean
heuristicIsDefinitelySmallEnough
(Packet<?> packet) static boolean
isRemoteCompatible
(Connection manager) private static void
static void
register()
-
字段详细资料
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
CHANNEL
-
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
-
-
构造器详细资料
-
VanillaPacketSplitter
public VanillaPacketSplitter()
-
-
方法详细资料
-
register
public static void register() -
appendPackets
public static void appendPackets(ConnectionProtocol protocol, PacketFlow direction, Packet<?> packet, List<? super Packet<?>> out) Append the given packet to the given list. If the packet needs to be split, multiple packets will be appened. Otherwise only the packet itself. -
heuristicIsDefinitelySmallEnough
-
onClientPacket
-
genericsFtw
-
getRemoteCompatibility
-
isRemoteCompatible
-