Class JavaRegistries
java.lang.Object
org.geysermc.geyser.registry.java.JavaRegistries
Defines
JavaRegistryKeys for all registries holding Java content, used across Geyser. These registries may be built-in, or networked registries.
Geyser will load Tags for all registries defined here.
If you need to do any of the following:
- Access the contents of a Java registry, which is networked or in some cases built-in,
- Access
HolderSets for a Java registry, be it built-in or networked, or, - Access tags for a Java registry, be it built-in or networked.
You need to define that registry here. To define a new built-in registry, create a JavaRegistryKey here and add a new registry to BuiltInJavaRegistries.
To define a new networked registry, create a JavaRegistryKey here and add a new JavaRegistryReader to JavaRegistryReaders.
Please try to maintain a sensible order of the registries defined here (see the comments), and mirror that order over at BuiltInJavaRegistries and
JavaRegistryReaders.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JavaRegistryKey<BannerPattern> static final JavaRegistryKey<Integer> static final JavaRegistryKey<Block> static final JavaRegistryKey<RegistryUnit> static final JavaRegistryKey<RegistryUnit> static final JavaRegistryKey<CatEntity.BuiltInVariant> static final JavaRegistryKey<org.geysermc.mcprotocollib.protocol.data.game.chat.ChatType> static final JavaRegistryKey<RegistryUnit> static final JavaRegistryKey<TemperatureVariantAnimal.BuiltInVariant> static final JavaRegistryKey<RegistryUnit> static final JavaRegistryKey<TemperatureVariantAnimal.BuiltInVariant> static final JavaRegistryKey<org.cloudburstmc.protocol.bedrock.data.entity.EntityDamageCause> static final JavaRegistryKey<net.kyori.adventure.key.Key> static final JavaRegistryKey<Dialog> static final JavaRegistryKey<JavaDimension> static final JavaRegistryKey<Enchantment> static final JavaRegistryKey<EntityTypeDefinition<?>> static final JavaRegistryKey<FrogEntity.BuiltInVariant> static final JavaRegistryKey<GeyserInstrument> static final JavaRegistryKey<Item> static final JavaRegistryKey<JukeboxSong> static final JavaRegistryKey<PaintingType> static final JavaRegistryKey<RegistryUnit> static final JavaRegistryKey<TemperatureVariantAnimal.BuiltInVariant> static final JavaRegistryKey<org.geysermc.mcprotocollib.protocol.data.game.item.component.ArmorTrim.TrimMaterial> static final JavaRegistryKey<org.geysermc.mcprotocollib.protocol.data.game.item.component.ArmorTrim.TrimPattern> static final JavaRegistryKey<RegistryUnit> static final JavaRegistryKey<WolfEntity.BuiltInVariant> static final JavaRegistryKey<RegistryUnit> static final JavaRegistryKey<ZombieNautilusEntity.BuiltInVariant> -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable JavaRegistryKey<?> fromKey(net.kyori.adventure.key.Key registryKey) Returns theJavaRegistryKeycorrelating to the givenKey, if it exists.
-
Field Details
-
BLOCK
-
ITEM
-
ENTITY_TYPE
-
CHAT_TYPE
public static final JavaRegistryKey<org.geysermc.mcprotocollib.protocol.data.game.chat.ChatType> CHAT_TYPE -
DIMENSION_TYPE
-
BIOME
-
ENCHANTMENT
-
BANNER_PATTERN
-
INSTRUMENT
-
JUKEBOX_SONG
-
PAINTING_VARIANT
-
TRIM_MATERIAL
public static final JavaRegistryKey<org.geysermc.mcprotocollib.protocol.data.game.item.component.ArmorTrim.TrimMaterial> TRIM_MATERIAL -
TRIM_PATTERN
public static final JavaRegistryKey<org.geysermc.mcprotocollib.protocol.data.game.item.component.ArmorTrim.TrimPattern> TRIM_PATTERN -
DAMAGE_TYPE
public static final JavaRegistryKey<org.cloudburstmc.protocol.bedrock.data.entity.EntityDamageCause> DAMAGE_TYPE -
DIALOG
-
WORLD_CLOCK
-
DECORATED_POT_PATTERN
-
BLOCK_TRANSFORMER
-
CAT_VARIANT
-
FROG_VARIANT
-
WOLF_VARIANT
-
PIG_VARIANT
-
COW_VARIANT
-
CHICKEN_VARIANT
-
ZOMBIE_NAUTILUS_VARIANT
-
CAT_SOUND_VARIANT
-
WOLF_SOUND_VARIANT
-
PIG_SOUND_VARIANT
-
COW_SOUND_VARIANT
-
CHICKEN_SOUND_VARIANT
-
-
Method Details
-
fromKey
Returns theJavaRegistryKeycorrelating to the givenKey, if it exists.When this method returns
nullfor a registry, Geyser should not handle data from that Java registry.- Parameters:
registryKey- theKeyof a Java registry- Returns:
- the
JavaRegistryKeycorrelating to the given key, or null if it doesn't exist
-