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.ChannelBuilderNetworkRegistry.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.ABSENTindicating the absence of the channel on the remote side.static NetworkRegistry.ChannelBuilderNetworkRegistry.ChannelBuilder. named(ResourceLocation channelName)The name of the channel.NetworkRegistry.ChannelBuilderNetworkRegistry.ChannelBuilder. networkProtocolVersion(java.util.function.Supplier<java.lang.String> networkProtocolVersion)The network protocol string for this channel.NetworkRegistry.ChannelBuilderNetworkRegistry.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.ABSENTindicating the absence of the channel on the remote side.
-