Package org.geysermc.geyser.registry.java.reader
package org.geysermc.geyser.registry.java.reader
-
ClassDescriptionA
JavaRegistryReaderis a function that takes aJavaRegistryReader.Context, holding anObject(the "registry entry", serialised as NBT), and parses it into aJavaRegistryReader, possibly using other registries provided byJavaRegistryProvideror data from aGeyserSession.Provides context around a registry entry (serialised to NBT), such as aJavaRegistryProvider, and optionally theGeyserSession.DefinesJavaRegistryReaders for all networkedJavaRegistryKeys.This interface weakens the definitions defined inJavaRegistryReader, by taking aRegistryEntryContextasJavaRegistryReader.Context, which providesRegistryEntryContext.id()to access theKeyof the registry entry being parsed.ExpandsJavaRegistryReader.Contextwith aKey.