ProtocolInfo.java
net.minecraft.network.ProtocolInfo
信息
- 全限定名:net.minecraft.network.ProtocolInfo
- 类型:public interface
- 包:net.minecraft.network
- 源码路径:src/main/java/net/minecraft/network/ProtocolInfo.java
- 起始行号:L12
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
-
net.minecraft.network.ProtocolInfo.Details- 类型:
interface - 修饰符:
public - 源码定位:
L21 - 说明:
TODO
- 类型:
-
net.minecraft.network.ProtocolInfo.Details.PacketVisitor- 类型:
interface - 修饰符:
public - 源码定位:
L30 - 说明:
TODO
- 类型:
-
net.minecraft.network.ProtocolInfo.DetailsProvider- 类型:
interface - 修饰符:
public - 源码定位:
L35 - 说明:
TODO
- 类型:
构造器
- 无
方法
下面的方法块按源码顺序生成。
ConnectionProtocol id() @ L13
- 方法名:id
- 源码定位:L13
- 返回类型:ConnectionProtocol
- 修饰符:package-private
参数:
- 无
说明:
TODO
PacketFlow flow() @ L15
- 方法名:flow
- 源码定位:L15
- 返回类型:PacketFlow
- 修饰符:package-private
参数:
- 无
说明:
TODO
StreamCodec<ByteBuf,Packet<?super T>> codec() @ L17
- 方法名:codec
- 源码定位:L17
- 返回类型:StreamCodec<ByteBuf,Packet<?super T>>
- 修饰符:package-private
参数:
- 无
说明:
TODO
BundlerInfo bundlerInfo() @ L19
- 方法名:bundlerInfo
- 源码定位:L19
- 返回类型:BundlerInfo
- 修饰符:package-private
参数:
- 无
说明:
TODO
代码
public interface ProtocolInfo<T extends PacketListener> {
ConnectionProtocol id();
PacketFlow flow();
StreamCodec<ByteBuf, Packet<? super T>> codec();
@Nullable BundlerInfo bundlerInfo();
public interface Details {
ConnectionProtocol id();
PacketFlow flow();
@VisibleForDebug
void listPackets(ProtocolInfo.Details.PacketVisitor output);
@FunctionalInterface
public interface PacketVisitor {
void accept(PacketType<?> type, int networkId);
}
}
public interface DetailsProvider {
ProtocolInfo.Details details();
}
}引用的其他类
-
- 引用位置:
返回值
- 引用位置:
-
- 引用位置:
返回值
- 引用位置:
-
- 引用位置:
返回值
- 引用位置:
-
- 引用位置:
返回值
- 引用位置:
-
- 引用位置:
返回值
- 引用位置: