类 PayloadChannel
-
嵌套类概要
嵌套类修饰符和类型类说明private static final class
private static final record
PayloadChannel.Message<MSG extends CustomPacketPayload,
BUF extends FriendlyByteBuf> 从类继承的嵌套类/接口 net.minecraftforge.network.Channel
Channel.VersionTest
-
字段概要
字段修饰符和类型字段说明private static final org.apache.logging.log4j.Logger
private static final org.apache.logging.log4j.Marker
private final Map
<ResourceLocation, PayloadChannel.Message<?, ?>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) static PayloadConnection
<CustomPacketPayload> builder
(NetworkInstance instance) void
encode
(FriendlyByteBuf out, CustomPacketPayload message) private void
get
(ResourceLocation type, boolean send) (专用程序包) ResourceLocation
getName
(CustomPacketPayload packet) Retrieves the channel name to use for the specified packet This typically is the main channel's name, but in some cases you want to specify a custom one.private void
protected Packet
<?> toVanillaPacket
(Connection con, CustomPacketPayload message) 从类继承的方法 net.minecraftforge.network.Channel
getName, getProtocolVersion, isRemotePresent, reply, send, send, validate
-
字段详细资料
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
MARKER
private static final org.apache.logging.log4j.Marker MARKER -
payloads
-
-
构造器详细资料
-
PayloadChannel
-
-
方法详细资料
-
builder
-
get
private PayloadChannel.Message<CustomPacketPayload,FriendlyByteBuf> get(ResourceLocation type, boolean send) -
error
-
onPacketReceived
-
toVanillaPacket
- 覆盖:
toVanillaPacket
在类中Channel<CustomPacketPayload>
-
getName
从类复制的说明:Channel
Retrieves the channel name to use for the specified packet This typically is the main channel's name, but in some cases you want to specify a custom one. If your channel haschildren
- 覆盖:
getName
在类中Channel<CustomPacketPayload>
-
encode
- 指定者:
encode
在类中Channel<CustomPacketPayload>
-