类 MCRegisterPacketHandler.ChannelList

java.lang.Object
net.minecraftforge.network.MCRegisterPacketHandler.ChannelList
封闭类:
MCRegisterPacketHandler

public static class MCRegisterPacketHandler.ChannelList extends Object
  • 字段详细资料

  • 构造器详细资料

    • ChannelList

      public ChannelList()
  • 方法详细资料

    • 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()
      返回 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