Interface JavaRegistryKey.RegistryLookup<T>
- Enclosing class:
- JavaRegistryKey<T>
public static interface JavaRegistryKey.RegistryLookup<T>
Implementations should look up an element in the given registry by its value, network ID, or registered key. Return an empty optional if it does not exist.
-
Method Summary
Modifier and TypeMethodDescriptionentry(GeyserSession session, JavaRegistryKey<T> registry, int networkId) entry(GeyserSession session, JavaRegistryKey<T> registry, net.kyori.adventure.key.Key key) entry(GeyserSession session, JavaRegistryKey<T> registry, T object)
-
Method Details
-
entry
Optional<RegistryEntryData<T>> entry(GeyserSession session, JavaRegistryKey<T> registry, int networkId) -
entry
Optional<RegistryEntryData<T>> entry(GeyserSession session, JavaRegistryKey<T> registry, net.kyori.adventure.key.Key key) -
entry
-