Uses of Class
net.minecraftforge.fml.network.NetworkRegistry.ChannelBuilder
-
Packages that use NetworkRegistry.ChannelBuilder Package Description net.minecraftforge.fml.network -
-
Uses of NetworkRegistry.ChannelBuilder in net.minecraftforge.fml.network
Methods in net.minecraftforge.fml.network that return NetworkRegistry.ChannelBuilder Modifier and Type Method Description NetworkRegistry.ChannelBuilder
NetworkRegistry.ChannelBuilder. clientAcceptedVersions(java.util.function.Predicate<java.lang.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.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 thenetworkProtocolVersion(Supplier)
string from the server, or the special valueNetworkRegistry.ABSENT
indicating the absence of the channel on the remote side.
-