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 TypeMethodDescriptionvoid
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
Adds a factory to the registry.- Parameters:
id
- the id, as specified inINetworkNode.getId()
factory
- the factory
-
get
Returns a factory from the registry.- Parameters:
id
- the id, as specified inINetworkNode.getId()
- Returns:
- the factory, or null if no factory was found
-