Class MCRegisterPacketHandler.ChannelList

java.lang.Object
net.minecraftforge.network.MCRegisterPacketHandler.ChannelList
Enclosing class:
MCRegisterPacketHandler

public static class MCRegisterPacketHandler.ChannelList extends Object
  • Field Details

  • Constructor Details

    • ChannelList

      public ChannelList()
  • Method Details

    • updateFrom

      public void updateFrom(Supplier<NetworkEvent.Context> source, FriendlyByteBuf buffer, NetworkEvent.RegistrationChangeType changeType)
    • toByteArray

      byte[] toByteArray()
    • bytesToResLocation

      private Set<ResourceLocation> bytesToResLocation(byte[] all)
    • getRemoteLocations

      public Set<ResourceLocation> 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