public abstract class Registry
extends java.lang.Object
RegistryEntrys and RegistryTags.| Modifier | Constructor | Description |
|---|---|---|
protected |
Registry(net.lenni0451.mcstructs.core.Identifier name) |
| Modifier and Type | Method | Description |
|---|---|---|
net.lenni0451.mcstructs.converter.codec.Codec<RegistryEntry> |
entryCodec() |
|
boolean |
equals(java.lang.Object o) |
|
abstract RegistryEntry |
getEntry(net.lenni0451.mcstructs.core.Identifier id) |
Get the
RegistryEntry for the given id. |
abstract RegistryEntry |
getEntry(int networkId) |
Get the
RegistryEntry for the given network id. |
abstract net.lenni0451.mcstructs.core.Identifier |
getId(int networkId) |
Get the id for the given network id.
|
<T> EitherEntry<T> |
getLeftEntry(net.lenni0451.mcstructs.core.Identifier id) |
Get an
EitherEntry for the given id. |
<T> EitherEntry<T> |
getLeftEntry(int networkId) |
Get an
EitherEntry for the given network id. |
net.lenni0451.mcstructs.core.Identifier |
getName() |
|
abstract java.lang.Integer |
getNetworkId(net.lenni0451.mcstructs.core.Identifier id) |
Get the network id for the given id.
|
abstract RegistryTag |
getTag(net.lenni0451.mcstructs.core.Identifier tag) |
Get the
RegistryTag for the given tag id. |
int |
hashCode() |
|
java.lang.String |
toString() |
protected Registry(@Nonnull
net.lenni0451.mcstructs.core.Identifier name)
public net.lenni0451.mcstructs.core.Identifier getName()
public net.lenni0451.mcstructs.converter.codec.Codec<RegistryEntry> entryCodec()
RegistryEntrys in this registry@Nullable public abstract RegistryEntry getEntry(net.lenni0451.mcstructs.core.Identifier id)
RegistryEntry for the given id.id - The id of the entry@Nullable public abstract RegistryEntry getEntry(int networkId)
RegistryEntry for the given network id.networkId - The network id of the entry@Nullable public abstract java.lang.Integer getNetworkId(net.lenni0451.mcstructs.core.Identifier id)
id - The id of the entry@Nullable public abstract net.lenni0451.mcstructs.core.Identifier getId(int networkId)
networkId - The network id of the entry@Nullable public <T> EitherEntry<T> getLeftEntry(net.lenni0451.mcstructs.core.Identifier id)
EitherEntry for the given id.T - The type of the entryid - The id of the entry@Nullable public <T> EitherEntry<T> getLeftEntry(int networkId)
EitherEntry for the given network id.T - The type of the entrynetworkId - The network id of the entry@Nullable public abstract RegistryTag getTag(net.lenni0451.mcstructs.core.Identifier tag)
RegistryTag for the given tag id.tag - The id of the tagpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object