Package | Description |
---|---|
net.minecraftforge.fml.network |
Modifier and Type | Method and Description |
---|---|
NetworkRegistry.ChannelBuilder |
NetworkRegistry.ChannelBuilder.clientAcceptedVersions(java.util.function.Predicate<java.lang.String> clientAcceptedVersions)
A predicate run on the client, with the
networkProtocolVersion(Supplier) string from
the server, or the special value NetworkRegistry.ABSENT indicating the absence of
the channel on the remote side. |
static NetworkRegistry.ChannelBuilder |
NetworkRegistry.ChannelBuilder.named(ResourceLocation channelName)
The name of the channel.
|
NetworkRegistry.ChannelBuilder |
NetworkRegistry.ChannelBuilder.networkProtocolVersion(java.util.function.Supplier<java.lang.String> networkProtocolVersion)
The network protocol string for this channel.
|
NetworkRegistry.ChannelBuilder |
NetworkRegistry.ChannelBuilder.serverAcceptedVersions(java.util.function.Predicate<java.lang.String> serverAcceptedVersions)
A predicate run on the server, with the
networkProtocolVersion(Supplier) string from
the server, or the special value NetworkRegistry.ABSENT indicating the absence of
the channel on the remote side. |