Uses of Class
net.minecraftforge.fmllegacy.network.NetworkRegistry.ChannelBuilder
-
Uses of NetworkRegistry.ChannelBuilder in net.minecraftforge.fmllegacy.network
Modifier and TypeMethodDescriptionNetworkRegistry.ChannelBuilder.clientAcceptedVersions(Predicate<String> clientAcceptedVersions)
A predicate run on the client, with thenetworkProtocolVersion(Supplier)
string from the server, or the special valueNetworkRegistry.ABSENT
indicating the absence of the channel on the remote side.NetworkRegistry.ChannelBuilder.named(ResourceLocation channelName)
The name of the channel.NetworkRegistry.ChannelBuilder.networkProtocolVersion(Supplier<String> networkProtocolVersion)
The network protocol string for this channel.NetworkRegistry.ChannelBuilder.serverAcceptedVersions(Predicate<String> serverAcceptedVersions)
A predicate run on the server, with thenetworkProtocolVersion(Supplier)
string from the server, or the special valueNetworkRegistry.ABSENT
indicating the absence of the channel on the remote side.