接口 SimpleChannel.ProtocolFactory<BUF extends FriendlyByteBuf,BASE>
- 所有超级接口:
ChannelBuildable<Object>
,SimpleBuildable
,SimpleConnection<BASE>
- 所有已知实现类:
SimpleChannel.Flow
,SimpleChannel.HandlerFlow
,SimpleChannel.HandlerProtocol
,SimpleChannel.Protocol
- 封闭类:
SimpleChannel
private static interface SimpleChannel.ProtocolFactory<BUF extends FriendlyByteBuf,BASE>
extends SimpleConnection<BASE>, SimpleBuildable
-
方法概要
修饰符和类型方法说明default SimpleChannel
build()
ctx()
default <NEWBUF extends FriendlyByteBuf,
CTX, NEWBASE extends SimplePacket<CTX>>
SimpleHandlerProtocol<NEWBUF, NEWBASE> protocol
(io.netty.util.AttributeKey<CTX> context, NetworkProtocol<NEWBUF> protocol) Creates a builder grouping together all packets under the same protocol.default <NEWBUF extends FriendlyByteBuf,
NEWBASE>
SimpleProtocol<NEWBUF, NEWBASE> protocol
(NetworkProtocol<NEWBUF> protocol) Creates a builder grouping together all packets under the same protocol.从接口继承的方法 net.minecraftforge.network.simple.SimpleConnection
any, any, any, any, configuration, configuration, configuration, configuration, login, login, login, login, play, play, play, play, protocol, protocol
-
方法详细资料
-
ctx
SimpleChannel.SimpleContext<BUF,BASE> ctx() -
protocol
default <NEWBUF extends FriendlyByteBuf,NEWBASE> SimpleProtocol<NEWBUF,NEWBASE> protocol(NetworkProtocol<NEWBUF> protocol) 从接口复制的说明:SimpleConnection
Creates a builder grouping together all packets under the same protocol. This will validate that the protocol matches before the packet is sent or received.- 指定者:
protocol
在接口中SimpleConnection<BUF extends FriendlyByteBuf>
-
protocol
default <NEWBUF extends FriendlyByteBuf,CTX, SimpleHandlerProtocol<NEWBUF,NEWBASE extends SimplePacket<CTX>> NEWBASE> protocol(io.netty.util.AttributeKey<CTX> context, NetworkProtocol<NEWBUF> protocol) 从接口复制的说明:SimpleConnection
Creates a builder grouping together all packets under the same protocol. This will validate that the protocol matches before the packet is sent or received.- 指定者:
protocol
在接口中SimpleConnection<BUF extends FriendlyByteBuf>
-
build
- 指定者:
build
在接口中ChannelBuildable<BUF extends FriendlyByteBuf>
- 指定者:
build
在接口中SimpleBuildable
-