Class RegistryLoaders
java.lang.Object
org.geysermc.geyser.registry.loader.RegistryLoaders
Holds common
RegistryLoaders or utility methods surrounding them.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BiomeLoaderTheRegistryLoaderresponsible for loading biome data.static final NbtRegistryLoaderTheRegistryLoaderresponsible for loading NBT.static final ResourcePackLoaderTheRegistryLoaderresponsible for loading resource packs. -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> RegistryLoader<Object,V> Wraps the surroundingSupplierin aRegistryLoaderwhich does not take in any input value.static <I,V> RegistryLoader<I, V> Returns aRegistryLoaderwhich has not taken in any input value.
-
Field Details
-
NBT
TheRegistryLoaderresponsible for loading NBT. -
BIOME_LOADER
TheRegistryLoaderresponsible for loading biome data. -
RESOURCE_PACKS
TheRegistryLoaderresponsible for loading resource packs.
-
-
Method Details
-
empty
Wraps the surroundingSupplierin aRegistryLoaderwhich does not take in any input value.- Type Parameters:
V- the value- Parameters:
supplier- the supplier- Returns:
- a RegistryLoader wrapping the given Supplier
-
uninitialized
Returns aRegistryLoaderwhich has not taken in any input value.- Type Parameters:
I- the inputV- the value- Returns:
- a RegistryLoader that is yet to contain a value.
-