public static class NetworkRegistry.ChannelBuilder
extends java.lang.Object
| コンストラクタと説明 | 
|---|
| 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 valueNetworkRegistry.ABSENTindicating the absence of
 the channel on the remote side. | 
| EventNetworkChannel | eventNetworkChannel()Build a new  EventNetworkChannelwith this builder's configuration. | 
| static NetworkRegistry.ChannelBuilder | named(ResourceLocation channelName)The name of the channel. | 
| NetworkRegistry.ChannelBuilder | networkProtocolVersion(java.util.function.Supplier<java.lang.String> networkProtocolVersion)The network protocol string for this channel. | 
| 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 valueNetworkRegistry.ABSENTindicating the absence of
 the channel on the remote side. | 
| SimpleChannel | simpleChannel()Build a new  SimpleChannelwith this builder's configuration. | 
public static NetworkRegistry.ChannelBuilder named(ResourceLocation channelName)
channelName - The name of the channelpublic NetworkRegistry.ChannelBuilder networkProtocolVersion(java.util.function.Supplier<java.lang.String> networkProtocolVersion)
networkProtocolVersion - A supplier of strings for network protocol version testingserverAcceptedVersions(Predicate), 
clientAcceptedVersions(Predicate)public NetworkRegistry.ChannelBuilder clientAcceptedVersions(java.util.function.Predicate<java.lang.String> clientAcceptedVersions)
networkProtocolVersion(Supplier) string from
 the server, or the special value NetworkRegistry.ABSENT indicating the absence of
 the channel on the remote side.clientAcceptedVersions - A predicate for testingpublic NetworkRegistry.ChannelBuilder serverAcceptedVersions(java.util.function.Predicate<java.lang.String> serverAcceptedVersions)
networkProtocolVersion(Supplier) string from
 the server, or the special value NetworkRegistry.ABSENT indicating the absence of
 the channel on the remote side.serverAcceptedVersions - A predicate for testingpublic SimpleChannel simpleChannel()
SimpleChannel with this builder's configuration.SimpleChannelpublic EventNetworkChannel eventNetworkChannel()
EventNetworkChannel with this builder's configuration.EventNetworkChannel