Interface INetworkNodeRegistry

All Known Implementing Classes:
NetworkNodeRegistry

public interface INetworkNodeRegistry
This registry holds factories for reading and writing network nodes from and to NBT.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(net.minecraft.resources.ResourceLocation id, INetworkNodeFactory factory)
    Adds a factory to the registry.
    get(net.minecraft.resources.ResourceLocation id)
    Returns a factory from the registry.
  • Method Details

    • add

      void add(net.minecraft.resources.ResourceLocation id, INetworkNodeFactory factory)
      Adds a factory to the registry.
      Parameters:
      id - the id, as specified in INetworkNode.getId()
      factory - the factory
    • get

      @Nullable INetworkNodeFactory get(net.minecraft.resources.ResourceLocation id)
      Returns a factory from the registry.
      Parameters:
      id - the id, as specified in INetworkNode.getId()
      Returns:
      the factory, or null if no factory was found