Package org.geysermc.geyser.registry
Class Registries
java.lang.Object
org.geysermc.geyser.registry.Registries
Holds all the common registries in Geyser.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleRegistry<org.cloudburstmc.nbt.NbtMap>A registry holding a CompoundTag of the known entity identifiers.static final SimpleRegistry<Set<org.cloudburstmc.nbt.NbtMap>>A registry holding a list of all the known entity properties to be sent to the client after start game.static final PacketTranslatorRegistry<org.cloudburstmc.protocol.bedrock.packet.BedrockPacket>A registry containing all the Bedrock packet translators.static final SimpleRegistry<it.unimi.dsi.fastutil.objects.Object2IntMap<String>>A mapped registry which stores Java biome identifiers and their Bedrock biome identifier.static final SimpleRegistry<org.cloudburstmc.nbt.NbtMap>A registry holding a CompoundTag of all the known biomes.static final SimpleMappedRegistry<org.geysermc.mcprotocollib.protocol.data.game.level.block.BlockEntityType,BlockEntityTranslator> A mapped registry which stores a block entity identifier to itsBlockEntityTranslator.static final VersionedRegistry<Map<org.geysermc.mcprotocollib.protocol.data.game.recipe.RecipeType,List<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.RecipeData>>> A versioned registry which holds aRecipeTypeto a corresponding list ofRecipeData.static final SimpleMappedRegistry<Enchantment.JavaEnchantment,EnchantmentData> A registry holding data of all the known enchantments.static final SimpleMappedRegistry<org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType,EntityDefinition<?>> A map containing all entity types and their respective Geyser definitionsstatic final VersionedRegistry<ItemMappings>A versioned registry which holdsItemMappingsfor each version.static final SimpleMappedRegistry<String,EntityDefinition<?>> A map containing all Java entity identifiers and their respective Geyser definitionsstatic final SimpleMappedRegistry<String,Item> static final ListRegistry<Item>A registry containing all Java items ordered by their network ID.static final PacketTranslatorRegistry<org.geysermc.mcprotocollib.network.packet.Packet>A registry containing all the Java packet translators.static final SimpleMappedRegistry<org.geysermc.mcprotocollib.protocol.data.game.level.particle.ParticleType,ParticleMapping> A mapped registry holding theParticleTypeto a correspondingParticleMapping, containing various pieces of data primarily for how Bedrock should handle the particle.static final VersionedRegistry<Set<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.PotionMixData>>A registry holding all the potion mixes.static final SimpleMappedRegistry<Class<?>,ProviderSupplier> A registry holding all the providers.static final VersionedRegistry<it.unimi.dsi.fastutil.ints.Int2ObjectMap<GeyserRecipe>>A versioned registry holding all the recipes, with the net ID being the key, andGeyserRecipeas the value.static final IntMappedRegistry<org.cloudburstmc.protocol.bedrock.data.SoundEvent>A mapped registry holding the available records, with the ID of the record being the key, and theSoundEventas the value.static final DeferredRegistry<Map<String,org.geysermc.geyser.api.pack.ResourcePack>> A mapped registry holdingResourcePack's with the pack uuid as keys.static final SimpleMappedRegistry<org.geysermc.mcprotocollib.protocol.data.game.level.event.LevelEvent,LevelEventTranslator> A mapped registry holdingLevelEvents to their correspondingLevelEventTranslator.static final SimpleMappedRegistry<SoundTranslator,SoundInteractionTranslator<?>> A mapped registry holdingSoundTranslators to their correspondingSoundInteractionTranslator.static final SimpleMappedRegistry<String,SoundMapping> A mapped registry holding sound identifiers to their correspondingSoundMapping. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
A registry holding a CompoundTag of the known entity identifiers. -
BEDROCK_PACKET_TRANSLATORS
public static final PacketTranslatorRegistry<org.cloudburstmc.protocol.bedrock.packet.BedrockPacket> BEDROCK_PACKET_TRANSLATORSA registry containing all the Bedrock packet translators. -
BIOMES_NBT
A registry holding a CompoundTag of all the known biomes. -
BIOME_IDENTIFIERS
public static final SimpleRegistry<it.unimi.dsi.fastutil.objects.Object2IntMap<String>> BIOME_IDENTIFIERSA mapped registry which stores Java biome identifiers and their Bedrock biome identifier. -
BLOCK_ENTITIES
public static final SimpleMappedRegistry<org.geysermc.mcprotocollib.protocol.data.game.level.block.BlockEntityType,BlockEntityTranslator> BLOCK_ENTITIESA mapped registry which stores a block entity identifier to itsBlockEntityTranslator. -
CRAFTING_DATA
public static final VersionedRegistry<Map<org.geysermc.mcprotocollib.protocol.data.game.recipe.RecipeType,List<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.RecipeData>>> CRAFTING_DATAA versioned registry which holds aRecipeTypeto a corresponding list ofRecipeData. -
ENCHANTMENTS
A registry holding data of all the known enchantments. -
ENTITY_DEFINITIONS
public static final SimpleMappedRegistry<org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType,EntityDefinition<?>> ENTITY_DEFINITIONSA map containing all entity types and their respective Geyser definitions -
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
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_TRANSLATORSA registry containing all the Java packet translators. -
JAVA_ITEMS
A registry containing all Java items ordered by their network ID. -
JAVA_ITEM_IDENTIFIERS
-
ITEMS
A versioned registry which holdsItemMappingsfor each version. These item mappings contain primarily Bedrock version-specific data. -
PARTICLES
public static final SimpleMappedRegistry<org.geysermc.mcprotocollib.protocol.data.game.level.particle.ParticleType,ParticleMapping> PARTICLESA mapped registry holding theParticleTypeto a correspondingParticleMapping, containing various pieces of data primarily for how Bedrock should handle the particle. -
POTION_MIXES
public static final VersionedRegistry<Set<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.PotionMixData>> POTION_MIXESA registry holding all the potion mixes. -
RECIPES
public static final VersionedRegistry<it.unimi.dsi.fastutil.ints.Int2ObjectMap<GeyserRecipe>> RECIPESA versioned registry holding all the recipes, with the net ID being the key, andGeyserRecipeas the value. -
RECORDS
A mapped registry holding the available records, with the ID of the record being the key, and theSoundEventas the value. -
RESOURCE_PACKS
public static final DeferredRegistry<Map<String,org.geysermc.geyser.api.pack.ResourcePack>> RESOURCE_PACKSA mapped registry holdingResourcePack's with the pack uuid as keys. -
SOUNDS
A mapped registry holding sound identifiers to their correspondingSoundMapping. -
SOUND_LEVEL_EVENTS
public static final SimpleMappedRegistry<org.geysermc.mcprotocollib.protocol.data.game.level.event.LevelEvent,LevelEventTranslator> SOUND_LEVEL_EVENTSA mapped registry holdingLevelEvents to their correspondingLevelEventTranslator. -
SOUND_TRANSLATORS
public static final SimpleMappedRegistry<SoundTranslator,SoundInteractionTranslator<?>> SOUND_TRANSLATORSA mapped registry holdingSoundTranslators to their correspondingSoundInteractionTranslator.
-
-
Constructor Details
-
Registries
public Registries()
-
-
Method Details
-
init
public static void init()
-