类 MCRegisterPacketHandler.ChannelList
java.lang.Object
net.minecraftforge.network.MCRegisterPacketHandler.ChannelList
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private Set<ResourceLocation>
bytesToResLocation
(byte[] all) 返回 the unmodifiable set of channel locations sent by the remote side。(专用程序包) byte[]
void
updateFrom
(Supplier<NetworkEvent.Context> source, FriendlyByteBuf buffer, NetworkEvent.RegistrationChangeType changeType)
-
字段详细资料
-
locations
-
remoteLocations
-
-
构造器详细资料
-
ChannelList
public ChannelList()
-
-
方法详细资料
-
updateFrom
public void updateFrom(Supplier<NetworkEvent.Context> source, FriendlyByteBuf buffer, NetworkEvent.RegistrationChangeType changeType) -
toByteArray
byte[] toByteArray() -
bytesToResLocation
-
getRemoteLocations
返回 the unmodifiable set of channel locations sent by the remote side。 This is useful for interacting with other modloaders via the network to inspect registered network channel IDs.- 返回:
- the unmodifiable set of channel locations sent by the remote side
-