Package net.minecraftforge.network
Class MCRegisterPacketHandler.ChannelList
java.lang.Object
net.minecraftforge.network.MCRegisterPacketHandler.ChannelList
- Enclosing class:
- MCRegisterPacketHandler
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Set<ResourceLocation>
bytesToResLocation
(byte[] all) Returns the unmodifiable set of channel locations sent by the remote side.(package private) byte[]
void
updateFrom
(Supplier<NetworkEvent.Context> source, FriendlyByteBuf buffer, NetworkEvent.RegistrationChangeType changeType)
-
Field Details
-
locations
-
remoteLocations
-
-
Constructor Details
-
ChannelList
public ChannelList()
-
-
Method Details
-
updateFrom
public void updateFrom(Supplier<NetworkEvent.Context> source, FriendlyByteBuf buffer, NetworkEvent.RegistrationChangeType changeType) -
toByteArray
byte[] toByteArray() -
bytesToResLocation
-
getRemoteLocations
Returns 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.- Returns:
- the unmodifiable set of channel locations sent by the remote side
-