类 DinnerboneProtocolUtils
java.lang.Object
net.neoforged.neoforge.network.payload.DinnerboneProtocolUtils
Protocol utilities for communicating over Dinnerbone's protocol.
-
字段概要
字段修饰符和类型字段说明static final StreamCodec
<FriendlyByteBuf, Set<ResourceLocation>> static final org.slf4j.Logger
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static void
parseAndAddChannel
(StringBuilder builder, Set<ResourceLocation> channels) private static Set
<ResourceLocation> Reads a set of channels from the buffer.private static void
writeChannels
(FriendlyByteBuf buf, Set<ResourceLocation> channels) Writes a set of channels to the buffer.
-
字段详细资料
-
LOGGER
public static final org.slf4j.Logger LOGGER -
CHANNELS_CODEC
-
-
构造器详细资料
-
DinnerboneProtocolUtils
private DinnerboneProtocolUtils()
-
-
方法详细资料
-
readChannels
Reads a set of channels from the buffer. Each channel is a null-terminated string. If a string is not a valid channel, it is ignored.- 参数:
buf
- the buffer- 返回:
- the channels
-
parseAndAddChannel
-
writeChannels
Writes a set of channels to the buffer. Each channel is a null-terminated string.- 参数:
buf
- the bufferchannels
- the channels
-