Class Registries

java.lang.Object
org.geysermc.geyser.registry.Registries

public final class Registries extends Object
Holds all the common registries in Geyser.
  • Field Details

    • PROVIDERS

      public static final SimpleMappedRegistry<Class<?>,ProviderSupplier> PROVIDERS
      A registry holding all the providers. This has to be initialized first to allow extensions to access providers during other registry events.
    • BEDROCK_ENTITY_IDENTIFIERS

      public static final SimpleDeferredRegistry<org.cloudburstmc.nbt.NbtMap> BEDROCK_ENTITY_IDENTIFIERS
      A registry holding a NbtMap of the known entity identifiers.
    • BEDROCK_PACKET_TRANSLATORS

      public static final PacketTranslatorRegistry<org.cloudburstmc.protocol.bedrock.packet.BedrockPacket> BEDROCK_PACKET_TRANSLATORS
      A registry containing all the Bedrock packet translators.
    • BIOMES_NBT

      public static final SimpleDeferredRegistry<org.cloudburstmc.nbt.NbtMap> BIOMES_NBT
      A registry holding a NbtMap of all the known biomes. Remove once 1.21.80 is lowest supported version - replaced by BIOMES
    • BIOMES

      public static final SimpleDeferredRegistry<org.cloudburstmc.protocol.bedrock.data.biome.BiomeDefinitions> BIOMES
      A registry holding biome data for all known biomes.
    • BIOME_IDENTIFIERS

      public static final SimpleDeferredRegistry<it.unimi.dsi.fastutil.objects.Object2IntMap<String>> BIOME_IDENTIFIERS
      A mapped registry which stores Java biome identifiers and their Bedrock biome identifier.
    • BLOCK_ENTITIES

      public static final SimpleMappedDeferredRegistry<org.geysermc.mcprotocollib.protocol.data.game.level.block.BlockEntityType,BlockEntityTranslator> BLOCK_ENTITIES
      A mapped registry which stores a block entity identifier to its BlockEntityTranslator.
    • ENTITY_DEFINITIONS

      public static final SimpleMappedRegistry<org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType,EntityDefinition<?>> ENTITY_DEFINITIONS
      A map containing all entity types and their respective Geyser definitions
    • BEDROCK_ENTITY_PROPERTIES

      public static final SimpleRegistry<Set<org.cloudburstmc.nbt.NbtMap>> BEDROCK_ENTITY_PROPERTIES
      A registry holding a list of all the known entity properties to be sent to the client after start game.
    • JAVA_ENTITY_IDENTIFIERS

      public static final SimpleMappedRegistry<String,EntityDefinition<?>> JAVA_ENTITY_IDENTIFIERS
      A map containing all Java entity identifiers and their respective Geyser definitions
    • JAVA_PACKET_TRANSLATORS

      public static final PacketTranslatorRegistry<org.geysermc.mcprotocollib.network.packet.Packet> JAVA_PACKET_TRANSLATORS
      A registry containing all the Java packet translators.
    • JAVA_ITEMS

      public static final ListRegistry<Item> JAVA_ITEMS
      A registry containing all Java items ordered by their network ID.
    • JAVA_ITEM_IDENTIFIERS

      public static final SimpleMappedRegistry<String,Item> JAVA_ITEM_IDENTIFIERS
      A registry containing item identifiers.
    • DEFAULT_DATA_COMPONENTS

      public static final ListRegistry<org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents> DEFAULT_DATA_COMPONENTS
    • ITEMS

      public static final VersionedRegistry<ItemMappings> ITEMS
      A versioned registry which holds ItemMappings for each version. These item mappings contain primarily Bedrock version-specific data.
    • PARTICLES

      public static final SimpleMappedDeferredRegistry<org.geysermc.mcprotocollib.protocol.data.game.level.particle.ParticleType,ParticleMapping> PARTICLES
      A mapped registry holding the ParticleType to a corresponding ParticleMapping, containing various pieces of data primarily for how Bedrock should handle the particle.
    • POTION_MIXES

      public static final VersionedDeferredRegistry<Set<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.PotionMixData>> POTION_MIXES
      A registry holding all the potion mixes.
    • RESOURCE_PACKS

      public static final SimpleMappedDeferredRegistry<UUID,ResourcePackHolder> RESOURCE_PACKS
      A mapped registry holding ResourcePackHolder's with the pack uuid as keys.
    • TAGS

      public static final VersionedRegistry<it.unimi.dsi.fastutil.objects.Object2ObjectMap<int[],String>> TAGS
      A versioned registry holding most Bedrock tags, with the Java item list (sorted) being the key, and the tag name as the value.
    • SOUNDS

      public static final SimpleMappedDeferredRegistry<String,SoundMapping> SOUNDS
      A mapped registry holding sound identifiers to their corresponding SoundMapping.
    • SOUND_LEVEL_EVENTS

      public static final SimpleMappedDeferredRegistry<org.geysermc.mcprotocollib.protocol.data.game.level.event.LevelEvent,LevelEventTranslator> SOUND_LEVEL_EVENTS
      A mapped registry holding LevelEvents to their corresponding LevelEventTranslator.
    • SOUND_TRANSLATORS

      public static final SimpleMappedDeferredRegistry<SoundTranslator,SoundInteractionTranslator<?>> SOUND_TRANSLATORS
      A mapped registry holding SoundTranslators to their corresponding SoundInteractionTranslator.
    • GAME_MASTER_BLOCKS

      public static final ListDeferredRegistry<net.kyori.adventure.key.Key> GAME_MASTER_BLOCKS
      A registry containing all of Java's "game master blocks" - blocks that can't be broken without operator permission level 2 or higher.
    • DANGEROUS_BLOCK_ENTITIES

      public static final ListDeferredRegistry<net.kyori.adventure.key.Key> DANGEROUS_BLOCK_ENTITIES
      A registry containing all block entities Java considers "dangerous" - these have a red warning in the item tooltip on Java.
    • DANGEROUS_ENTITIES

      public static final ListDeferredRegistry<net.kyori.adventure.key.Key> DANGEROUS_ENTITIES
      A registry containing all entities Java considers "dangerous" - spawn eggs of these entities have a red warning in the item tooltip on Java.
  • Constructor Details

    • Registries

      public Registries()
  • Method Details

    • load

      public static void load()
    • populate

      public static void populate()