Package org.geysermc.geyser.registry
Class Registries
java.lang.Object
org.geysermc.geyser.registry.Registries
Holds all the common registries in Geyser.
-
Field Summary
Modifier and TypeFieldDescriptionstatic SimpleRegistry<com.nukkitx.nbt.NbtMap>
A registry holding a CompoundTag of the known entity identifiers.static PacketTranslatorRegistry<com.nukkitx.protocol.bedrock.BedrockPacket>
A registry containing all the Bedrock packet translators.static SimpleRegistry<it.unimi.dsi.fastutil.objects.Object2IntMap<String>>
A mapped registry which stores Java biome identifiers and their Bedrock biome identifier.static SimpleRegistry<com.nukkitx.nbt.NbtMap>
A registry holding a CompoundTag of all the known biomes.static SimpleMappedRegistry<com.github.steveice10.mc.protocol.data.game.level.block.BlockEntityType,BlockEntityTranslator>
A mapped registry which stores a block entity identifier to itsBlockEntityTranslator
.static SimpleMappedRegistry<Integer,BlockCollision>
A mapped registry containing which holds block IDs to itsBlockCollision
.static VersionedRegistry<Map<com.github.steveice10.mc.protocol.data.game.recipe.RecipeType,List<com.nukkitx.protocol.bedrock.data.inventory.CraftingData>>>
A versioned registry which holds aRecipeType
to a corresponding list ofCraftingData
.A registry holding data of all the known enchantments.static SimpleMappedRegistry<com.github.steveice10.mc.protocol.data.game.entity.type.EntityType,EntityDefinition<?>>
A map containing all entity types and their respective Geyser definitionsstatic VersionedRegistry<ItemMappings>
A versioned registry which holdsItemMappings
for each version.static SimpleMappedRegistry<String,EntityDefinition<?>>
A map containing all Java entity identifiers and their respective Geyser definitionsstatic PacketTranslatorRegistry<com.github.steveice10.packetlib.packet.Packet>
A registry containing all the Java packet translators.static SimpleMappedRegistry<com.github.steveice10.mc.protocol.data.game.level.particle.ParticleType,ParticleMapping>
A mapped registry holding theParticleType
to a correspondingParticleMapping
, containing various pieces of data primarily for how Bedrock should handle the particle.static SimpleRegistry<Set<com.nukkitx.protocol.bedrock.data.inventory.PotionMixData>>
A registry holding all the potion mixes.static VersionedRegistry<it.unimi.dsi.fastutil.ints.Int2ObjectMap<com.github.steveice10.mc.protocol.data.game.recipe.Recipe>>
A versioned registry holding all the recipes, with the net ID being the key, andRecipe
as the value.static SimpleMappedRegistry<Integer,com.nukkitx.protocol.bedrock.data.SoundEvent>
A mapped registry holding the available records, with the ID of the record being the key, and theSoundEvent
as the value.static SimpleMappedRegistry<com.github.steveice10.mc.protocol.data.game.level.event.SoundEvent,LevelEventTranslator>
A mapped registry holdingSoundEvent
s to their correspondingLevelEventTranslator
.A mapped registry holdingSoundTranslator
s to their correspondingSoundInteractionTranslator
.static SimpleMappedRegistry<String,SoundMapping>
A mapped registry holding sound identifiers to their correspondingSoundMapping
. -
Constructor Summary
-
Method Summary
-
Field Details
-
BEDROCK_ENTITY_IDENTIFIERS
A registry holding a CompoundTag of the known entity identifiers. -
BEDROCK_PACKET_TRANSLATORS
public static final PacketTranslatorRegistry<com.nukkitx.protocol.bedrock.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<com.github.steveice10.mc.protocol.data.game.level.block.BlockEntityType,BlockEntityTranslator> BLOCK_ENTITIESA mapped registry which stores a block entity identifier to itsBlockEntityTranslator
. -
COLLISIONS
A mapped registry containing which holds block IDs to itsBlockCollision
. -
CRAFTING_DATA
public static final VersionedRegistry<Map<com.github.steveice10.mc.protocol.data.game.recipe.RecipeType,List<com.nukkitx.protocol.bedrock.data.inventory.CraftingData>>> CRAFTING_DATAA versioned registry which holds aRecipeType
to a corresponding list ofCraftingData
. -
ENCHANTMENTS
A registry holding data of all the known enchantments. -
ENTITY_DEFINITIONS
public static final SimpleMappedRegistry<com.github.steveice10.mc.protocol.data.game.entity.type.EntityType,EntityDefinition<?>> ENTITY_DEFINITIONSA map containing all entity types and their respective Geyser definitions -
JAVA_ENTITY_IDENTIFIERS
A map containing all Java entity identifiers and their respective Geyser definitions -
JAVA_PACKET_TRANSLATORS
public static final PacketTranslatorRegistry<com.github.steveice10.packetlib.packet.Packet> JAVA_PACKET_TRANSLATORSA registry containing all the Java packet translators. -
ITEMS
A versioned registry which holdsItemMappings
for each version. These item mappings contain primarily Bedrock version-specific data. -
PARTICLES
public static final SimpleMappedRegistry<com.github.steveice10.mc.protocol.data.game.level.particle.ParticleType,ParticleMapping> PARTICLESA mapped registry holding theParticleType
to a correspondingParticleMapping
, containing various pieces of data primarily for how Bedrock should handle the particle. -
POTION_MIXES
public static final SimpleRegistry<Set<com.nukkitx.protocol.bedrock.data.inventory.PotionMixData>> POTION_MIXESA registry holding all the potion mixes. -
RECIPES
public static final VersionedRegistry<it.unimi.dsi.fastutil.ints.Int2ObjectMap<com.github.steveice10.mc.protocol.data.game.recipe.Recipe>> RECIPESA versioned registry holding all the recipes, with the net ID being the key, andRecipe
as the value. -
RECORDS
public static final SimpleMappedRegistry<Integer,com.nukkitx.protocol.bedrock.data.SoundEvent> RECORDSA mapped registry holding the available records, with the ID of the record being the key, and theSoundEvent
as the value. -
SOUNDS
A mapped registry holding sound identifiers to their correspondingSoundMapping
. -
SOUND_EVENTS
public static final SimpleMappedRegistry<com.github.steveice10.mc.protocol.data.game.level.event.SoundEvent,LevelEventTranslator> SOUND_EVENTSA mapped registry holdingSoundEvent
s to their correspondingLevelEventTranslator
. -
SOUND_TRANSLATORS
public static final SimpleMappedRegistry<SoundTranslator,SoundInteractionTranslator<?>> SOUND_TRANSLATORSA mapped registry holdingSoundTranslator
s to their correspondingSoundInteractionTranslator
.
-
-
Constructor Details
-
Registries
public Registries()
-
-
Method Details
-
init
public static void init()
-