public class NoOpRegistry extends Registry
| Constructor and Description |
|---|
NoOpRegistry(com.viaversion.viaversion.libs.mcstructs.core.Identifier name) |
| Modifier and Type | Method and Description |
|---|---|
RegistryEntry |
getEntry(com.viaversion.viaversion.libs.mcstructs.core.Identifier id)
Get the
RegistryEntry for the given id. |
RegistryEntry |
getEntry(int networkId)
Get the
RegistryEntry for the given network id. |
com.viaversion.viaversion.libs.mcstructs.core.Identifier |
getId(int networkId)
Get the id for the given network id.
|
java.lang.Integer |
getNetworkId(com.viaversion.viaversion.libs.mcstructs.core.Identifier id)
Get the network id for the given id.
|
TagKey |
getTag(com.viaversion.viaversion.libs.mcstructs.core.Identifier tag)
Get the
TagKey for the given tag id. |
public NoOpRegistry(com.viaversion.viaversion.libs.mcstructs.core.Identifier name)
@Nullable public RegistryEntry getEntry(com.viaversion.viaversion.libs.mcstructs.core.Identifier id)
RegistryRegistryEntry for the given id.@Nullable public RegistryEntry getEntry(int networkId)
RegistryRegistryEntry for the given network id.@Nullable public java.lang.Integer getNetworkId(com.viaversion.viaversion.libs.mcstructs.core.Identifier id)
RegistrygetNetworkId in class Registryid - The id of the entry@Nullable public com.viaversion.viaversion.libs.mcstructs.core.Identifier getId(int networkId)
Registry