Uses of Interface
net.minecraft.registry.Registry
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of Registry in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionstatic Criterion
<?> Criteria.getDefault
(Registry<Criterion<?>> registry) -
Uses of Registry in net.minecraft.block
Modifier and TypeMethodDescriptionprivate void
NyliumBlock.generate
(Registry<ConfiguredFeature<?, ?>> registry, RegistryKey<ConfiguredFeature<?, ?>> key, ServerWorld world, ChunkGenerator chunkGenerator, Random random, BlockPos pos) static com.mojang.serialization.MapCodec
<? extends Block> BlockTypes.registerAndGetDefault
(Registry<com.mojang.serialization.MapCodec<? extends Block>> registry) static String
DecoratedPotPatterns.registerAndGetDefault
(Registry<String> registry) -
Uses of Registry in net.minecraft.client.gui.screen.world
Modifier and TypeMethodDescriptionprivate static Optional
<List<WorldCreator.WorldType>> WorldCreator.getWorldPresetList
(Registry<WorldPreset> registry, TagKey<WorldPreset> tag) -
Uses of Registry in net.minecraft.client.network
Modifier and TypeFieldDescriptionprivate final Map
<RegistryKey<? extends Registry<?>>, List<SerializableRegistries.SerializedRegistryEntry>> ClientRegistries.DynamicRegistries.dynamicRegistries
private final Map
<RegistryKey<? extends Registry<?>>, TagPacketSerializer.Serialized> ClientTagLoader.tagsByRegistry
Modifier and TypeMethodDescriptionCompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> ClientCommandSource.listIdSuggestions
(RegistryKey<? extends Registry<?>> registryRef, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, com.mojang.brigadier.context.CommandContext<?> context) private void
ClientTagLoader.load
(DynamicRegistryManager registryManager, Predicate<RegistryKey<? extends Registry<?>>> predicate) void
ClientRegistries.DynamicRegistries.put
(RegistryKey<? extends Registry<?>> registryRef, List<SerializableRegistries.SerializedRegistryEntry> entries) void
ClientTagLoader.put
(RegistryKey<? extends Registry<?>> registryRef, TagPacketSerializer.Serialized serialized) void
ClientRegistries.putDynamicRegistry
(RegistryKey<? extends Registry<?>> registryRef, List<SerializableRegistries.SerializedRegistryEntry> entries) void
ClientRegistries.putTags
(Map<RegistryKey<? extends Registry<?>>, TagPacketSerializer.Serialized> tags) -
Uses of Registry in net.minecraft.client.world
Modifier and TypeFieldDescriptionprivate final Registry
<DimensionOptions> GeneratorOptionsHolder.dimensionOptionsRegistry
The field for thedimensionOptionsRegistry
record component.Modifier and TypeMethodDescriptionGeneratorOptionsHolder.dimensionOptionsRegistry()
Returns the value of thedimensionOptionsRegistry
record component.ModifierConstructorDescriptionGeneratorOptionsHolder
(GeneratorOptions generatorOptions, Registry<DimensionOptions> registry, DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder, CombinedDynamicRegistries<ServerDynamicRegistryType> combinedDynamicRegistries, DataPackContents dataPackContents, DataConfiguration dataConfiguration) -
Uses of Registry in net.minecraft.command
Modifier and TypeMethodDescriptiondefault void
CommandSource.suggestIdentifiers
(Registry<?> registry, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) Modifier and TypeMethodDescriptionCompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> CommandSource.listIdSuggestions
(RegistryKey<? extends Registry<?>> registryRef, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, com.mojang.brigadier.context.CommandContext<?> context) -
Uses of Registry in net.minecraft.command.argument
Modifier and TypeFieldDescription(package private) final RegistryKey
<? extends Registry<T>> RegistryEntryPredicateArgumentType.registryRef
(package private) final RegistryKey
<? extends Registry<T>> RegistryEntryPredicateArgumentType.Serializer.Properties.registryRef
(package private) final RegistryKey
<? extends Registry<T>> RegistryEntryReferenceArgumentType.registryRef
(package private) final RegistryKey
<? extends Registry<T>> RegistryEntryReferenceArgumentType.Serializer.Properties.registryRef
(package private) final RegistryKey
<? extends Registry<T>> RegistryKeyArgumentType.registryRef
(package private) final RegistryKey
<? extends Registry<T>> RegistryKeyArgumentType.Serializer.Properties.registryRef
(package private) final RegistryKey
<? extends Registry<T>> RegistryPredicateArgumentType.registryRef
(package private) final RegistryKey
<? extends Registry<T>> RegistryPredicateArgumentType.Serializer.Properties.registryRef
Modifier and TypeMethodDescriptionprivate static <T> Registry
<T> RegistryKeyArgumentType.getRegistry
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryKey<? extends Registry<T>> registryRef) Modifier and TypeMethodDescriptionstatic ArgumentSerializer
<?, ?> ArgumentTypes.register
(Registry<ArgumentSerializer<?, ?>> registry) private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>,
T extends ArgumentSerializer.ArgumentTypeProperties<A>>
ArgumentSerializer<A, T> ArgumentTypes.register
(Registry<ArgumentSerializer<?, ?>> registry, String id, Class<? extends A> clazz, ArgumentSerializer<A, T> serializer) Registers an argument type's serializer.Modifier and TypeMethodDescriptionprivate static <T> RegistryKey
<T> RegistryKeyArgumentType.getKey
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) static <T> RegistryPredicateArgumentType.RegistryPredicate
<T> RegistryPredicateArgumentType.getPredicate
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) private static <T> Registry
<T> RegistryKeyArgumentType.getRegistry
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryKey<? extends Registry<T>> registryRef) static <T> RegistryEntry.Reference
<T> RegistryEntryReferenceArgumentType.getRegistryEntry
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef) private static <T> RegistryEntry.Reference
<T> RegistryKeyArgumentType.getRegistryEntry
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) static <T> RegistryEntryPredicateArgumentType.EntryPredicate
<T> RegistryEntryPredicateArgumentType.getRegistryEntryPredicate
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef) static <T> RegistryEntryReferenceArgumentType
<T> RegistryEntryReferenceArgumentType.registryEntry
(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) static <T> RegistryEntryPredicateArgumentType
<T> RegistryEntryPredicateArgumentType.registryEntryPredicate
(CommandRegistryAccess registryRef, RegistryKey<? extends Registry<T>> registryAccess) static <T> RegistryKeyArgumentType
<T> RegistryKeyArgumentType.registryKey
(RegistryKey<? extends Registry<T>> registryRef) static <T> RegistryPredicateArgumentType
<T> RegistryPredicateArgumentType.registryPredicate
(RegistryKey<? extends Registry<T>> registryRef) RegistryEntryPredicateArgumentType.EntryBased.tryCast
(RegistryKey<? extends Registry<E>> registryRef) RegistryEntryPredicateArgumentType.EntryPredicate.tryCast
(RegistryKey<? extends Registry<E>> registryRef) RegistryEntryPredicateArgumentType.TagBased.tryCast
(RegistryKey<? extends Registry<E>> registryRef) RegistryPredicateArgumentType.RegistryKeyBased.tryCast
(RegistryKey<? extends Registry<E>> registryRef) RegistryPredicateArgumentType.RegistryPredicate.tryCast
(RegistryKey<? extends Registry<E>> registryRef) RegistryPredicateArgumentType.TagBased.tryCast
(RegistryKey<? extends Registry<E>> registryRef) ModifierConstructorDescription(package private)
Properties
(RegistryKey<? extends Registry<T>> registryRef) (package private)
Properties
(RegistryKey<? extends Registry<T>> registryRef) (package private)
Properties
(RegistryKey<? extends Registry<T>> registryRef) (package private)
Properties
(RegistryKey<? extends Registry<T>> registryRef) protected
RegistryEntryArgumentType
(CommandRegistryAccess registryAccess, RegistryKey<Registry<T>> registry, com.mojang.serialization.Codec<RegistryEntry<T>> entryCodec) RegistryEntryPredicateArgumentType
(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) RegistryEntryReferenceArgumentType
(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) RegistryKeyArgumentType
(RegistryKey<? extends Registry<T>> registryRef) RegistryPredicateArgumentType
(RegistryKey<? extends Registry<T>> registryRef) -
Uses of Registry in net.minecraft.component
Modifier and TypeMethodDescriptionstatic DataComponentType
<?> DataComponentTypes.getDefault
(Registry<DataComponentType<?>> registry) -
Uses of Registry in net.minecraft.component.type
Modifier and TypeMethodDescriptionprivate static <T> RegistryEntryList
<T> ItemEnchantmentsComponent.getTooltipOrderList
(RegistryWrapper.WrapperLookup registryLookup, RegistryKey<Registry<T>> registryRef, TagKey<T> tooltipOrderTag) -
Uses of Registry in net.minecraft.data.report
-
Uses of Registry in net.minecraft.data.server.tag
Modifier and TypeFieldDescriptionprotected final RegistryKey
<? extends Registry<T>> TagProvider.registryRef
ModifierConstructorDescriptionprotected
TagProvider
(DataOutput output, RegistryKey<? extends Registry<T>> registryRef, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookupFuture) protected
TagProvider
(DataOutput output, RegistryKey<? extends Registry<T>> registryRef, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookupFuture, CompletableFuture<TagProvider.TagLookup<T>> parentTagLookupFuture) ValueLookupTagProvider
(DataOutput output, RegistryKey<? extends Registry<T>> registryRef, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookupFuture, CompletableFuture<TagProvider.TagLookup<T>> parentTagLookupFuture, Function<T, RegistryKey<T>> valueToKey) ValueLookupTagProvider
(DataOutput output, RegistryKey<? extends Registry<T>> registryRef, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookupFuture, Function<T, RegistryKey<T>> valueToKey) -
Uses of Registry in net.minecraft.entity.attribute
Modifier and TypeMethodDescriptionstatic RegistryEntry
<EntityAttribute> EntityAttributes.registerAndGetDefault
(Registry<EntityAttribute> registry) -
Uses of Registry in net.minecraft.entity.damage
-
Uses of Registry in net.minecraft.entity.decoration.painting
Modifier and TypeMethodDescriptionstatic PaintingVariant
PaintingVariants.registerAndGetDefault
(Registry<PaintingVariant> registry) -
Uses of Registry in net.minecraft.entity.effect
Modifier and TypeMethodDescriptionstatic RegistryEntry
<StatusEffect> StatusEffects.registerAndGetDefault
(Registry<StatusEffect> registry) -
Uses of Registry in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionprivate static CatVariant
CatVariant.register
(Registry<CatVariant> registry, RegistryKey<CatVariant> key, String textureId) private static FrogVariant
FrogVariant.register
(Registry<FrogVariant> registry, RegistryKey<FrogVariant> key, String id) static CatVariant
CatVariant.registerAndGetDefault
(Registry<CatVariant> registry) static FrogVariant
FrogVariant.registerAndGetDefault
(Registry<FrogVariant> registry) -
Uses of Registry in net.minecraft.item
Modifier and TypeMethodDescriptionstatic RegistryEntry
<ArmorMaterial> ArmorMaterials.getDefault
(Registry<ArmorMaterial> registry) static Instrument
Instruments.registerAndGetDefault
(Registry<Instrument> registry) static ItemGroup
ItemGroups.registerAndGetDefault
(Registry<ItemGroup> registry) -
Uses of Registry in net.minecraft.item.map
Modifier and TypeMethodDescriptionstatic RegistryEntry
<MapDecorationType> MapDecorationTypes.getDefault
(Registry<MapDecorationType> registry) -
Uses of Registry in net.minecraft.loot
Modifier and TypeFieldDescriptionprivate final RegistryKey
<Registry<T>> LootDataType.registryKey
The field for theregistryKey
record component.Modifier and TypeMethodDescriptionLootDataType.registryKey()
Returns the value of theregistryKey
record component.ModifierConstructorDescriptionLootDataType
(RegistryKey<Registry<T>> registryKey, com.mojang.serialization.Codec<T> codec, String string, LootDataType.Validator<T> validator) -
Uses of Registry in net.minecraft.network
Modifier and TypeMethodDescription<T> RegistryKey
<? extends Registry<T>> PacketByteBuf.readRegistryRefKey()
Reads a registry key referencing another registry key from this buf.Modifier and TypeMethodDescription<T> RegistryKey
<T> PacketByteBuf.readRegistryKey
(RegistryKey<? extends Registry<T>> registryRef) Reads a registry key from this buf. -
Uses of Registry in net.minecraft.network.codec
Modifier and TypeMethodDescriptionprivate static <T,
R> PacketCodec <RegistryByteBuf, R> PacketCodecs.registry
(RegistryKey<? extends Registry<T>> registry, Function<Registry<T>, IndexedIterable<R>> registryTransformer) private static <T,
R> PacketCodec <RegistryByteBuf, R> PacketCodecs.registry
(RegistryKey<? extends Registry<T>> registry, Function<Registry<T>, IndexedIterable<R>> registryTransformer) static <T> PacketCodec
<RegistryByteBuf, RegistryEntry<T>> PacketCodecs.registryEntry
(RegistryKey<? extends Registry<T>> registry) Returns a codec for a referenceRegistryEntry
.static <T> PacketCodec
<RegistryByteBuf, RegistryEntry<T>> PacketCodecs.registryEntry
(RegistryKey<? extends Registry<T>> registry, PacketCodec<? super RegistryByteBuf, T> directCodec) Returns a codec for aRegistryEntry
.static <T> PacketCodec
<RegistryByteBuf, RegistryEntryList<T>> PacketCodecs.registryEntryList
(RegistryKey<? extends Registry<T>> registryRef) static <T> PacketCodec
<RegistryByteBuf, T> PacketCodecs.registryValue
(RegistryKey<? extends Registry<T>> registry) Returns a codec for aRegistry
-registered value. -
Uses of Registry in net.minecraft.network.packet.s2c.common
Modifier and TypeFieldDescriptionprivate final Map
<RegistryKey<? extends Registry<?>>, TagPacketSerializer.Serialized> SynchronizeTagsS2CPacket.groups
Modifier and TypeMethodDescriptionMap
<RegistryKey<? extends Registry<?>>, TagPacketSerializer.Serialized> SynchronizeTagsS2CPacket.getGroups()
ModifierConstructorDescriptionSynchronizeTagsS2CPacket
(Map<RegistryKey<? extends Registry<?>>, TagPacketSerializer.Serialized> groups) -
Uses of Registry in net.minecraft.network.packet.s2c.config
Modifier and TypeFieldDescriptionprivate final RegistryKey
<? extends Registry<?>> DynamicRegistriesS2CPacket.registry
The field for theregistry
record component.private static final PacketCodec
<ByteBuf, RegistryKey<? extends Registry<?>>> DynamicRegistriesS2CPacket.REGISTRY_KEY_CODEC
Modifier and TypeMethodDescriptionRegistryKey
<? extends Registry<?>> DynamicRegistriesS2CPacket.registry()
Returns the value of theregistry
record component.ModifierConstructorDescriptionDynamicRegistriesS2CPacket
(RegistryKey<? extends Registry<?>> registryKey, List<SerializableRegistries.SerializedRegistryEntry> list) -
Uses of Registry in net.minecraft.potion
Modifier and TypeMethodDescriptionstatic RegistryEntry
<Potion> Potions.registerAndGetDefault
(Registry<Potion> registry) -
Uses of Registry in net.minecraft.predicate
Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec
<TagPredicate<T>> TagPredicate.createCodec
(RegistryKey<? extends Registry<T>> registryRef) -
Uses of Registry in net.minecraft.predicate.entity
Modifier and TypeMethodDescriptionstatic <V> EntitySubPredicateTypes.VariantType
<V> EntitySubPredicateTypes.VariantType.create
(Registry<V> registry, Function<Entity, Optional<V>> variantGetter) static com.mojang.serialization.MapCodec
<? extends EntitySubPredicate> EntitySubPredicateTypes.getDefault
(Registry<com.mojang.serialization.MapCodec<? extends EntitySubPredicate>> registry) Modifier and TypeMethodDescriptionstatic <V> EntitySubPredicateTypes.DynamicVariantType
<V> EntitySubPredicateTypes.DynamicVariantType.create
(RegistryKey<? extends Registry<V>> registryRef, Function<Entity, Optional<RegistryEntry<V>>> variantGetter) ModifierConstructorDescriptionDynamicVariantType
(RegistryKey<? extends Registry<V>> registryRef, Function<Entity, Optional<RegistryEntry<V>>> variantGetter) -
Uses of Registry in net.minecraft.predicate.item
Modifier and TypeMethodDescriptionstatic ItemSubPredicate.Type
<?> ItemSubPredicateTypes.getDefault
(Registry<ItemSubPredicate.Type<?>> registry) -
Uses of Registry in net.minecraft.registry
Modifier and TypeInterfaceDescriptioninterface
interface
A registry that allows adding or modifying values.Modifier and TypeClassDescriptionclass
An implementation ofRegistry
with a default ID and value for unknown lookups.class
An implementation of a mutable registry.Modifier and TypeFieldDescriptionRegistries.ACTIVITY
static final Registry
<ArmorMaterial> Registries.ARMOR_MATERIAL
static final Registry
<EntityAttribute> Registries.ATTRIBUTE
static final Registry
<com.mojang.serialization.MapCodec<? extends BiomeSource>> Registries.BIOME_SOURCE
static final Registry
<BlockEntityType<?>> Registries.BLOCK_ENTITY_TYPE
static final Registry
<BlockPredicateType<?>> Registries.BLOCK_PREDICATE_TYPE
static final Registry
<BlockStateProviderType<?>> Registries.BLOCK_STATE_PROVIDER_TYPE
Registries.BLOCK_TYPE
Registries.CARVER
static final Registry
<CatVariant> Registries.CAT_VARIANT
static final Registry
<com.mojang.serialization.MapCodec<? extends ChunkGenerator>> Registries.CHUNK_GENERATOR
static final Registry
<ArgumentSerializer<?, ?>> Registries.COMMAND_ARGUMENT_TYPE
Registries.CRITERION
static final Registry
<Identifier> Registries.CUSTOM_STAT
static final Registry
<DataComponentType<?>> Registries.DATA_COMPONENT_TYPE
Registries.DECORATED_POT_PATTERN
static final Registry
<com.mojang.serialization.MapCodec<? extends DensityFunction>> Registries.DENSITY_FUNCTION_TYPE
static final Registry
<Enchantment> Registries.ENCHANTMENT
static final Registry
<com.mojang.serialization.MapCodec<? extends EntitySubPredicate>> Registries.ENTITY_SUB_PREDICATE_TYPE
Registries.FEATURE
static final Registry
<FeatureSizeType<?>> Registries.FEATURE_SIZE_TYPE
static final Registry
<FloatProviderType<?>> Registries.FLOAT_PROVIDER_TYPE
static final Registry
<FoliagePlacerType<?>> Registries.FOLIAGE_PLACER_TYPE
static final Registry
<FrogVariant> Registries.FROG_VARIANT
static final Registry
<HeightProviderType<?>> Registries.HEIGHT_PROVIDER_TYPE
static final Registry
<Instrument> Registries.INSTRUMENT
static final Registry
<IntProviderType<?>> Registries.INT_PROVIDER_TYPE
Registries.ITEM_GROUP
static final Registry
<ItemSubPredicate.Type<?>> Registries.ITEM_SUB_PREDICATE_TYPE
static final Registry
<LootConditionType> Registries.LOOT_CONDITION_TYPE
static final Registry
<LootFunctionType<?>> Registries.LOOT_FUNCTION_TYPE
static final Registry
<LootNbtProviderType> Registries.LOOT_NBT_PROVIDER_TYPE
static final Registry
<LootNumberProviderType> Registries.LOOT_NUMBER_PROVIDER_TYPE
static final Registry
<LootPoolEntryType> Registries.LOOT_POOL_ENTRY_TYPE
static final Registry
<LootScoreProviderType> Registries.LOOT_SCORE_PROVIDER_TYPE
static final Registry
<MapDecorationType> Registries.MAP_DECORATION_TYPE
static final Registry
<com.mojang.serialization.MapCodec<? extends MaterialRules.MaterialCondition>> Registries.MATERIAL_CONDITION
static final Registry
<com.mojang.serialization.MapCodec<? extends MaterialRules.MaterialRule>> Registries.MATERIAL_RULE
static final Registry
<NumberFormatType<?>> Registries.NUMBER_FORMAT_TYPE
static final Registry
<ParticleType<?>> Registries.PARTICLE_TYPE
static final Registry
<PlacementModifierType<?>> Registries.PLACEMENT_MODIFIER_TYPE
static final Registry
<PointOfInterestType> Registries.POINT_OF_INTEREST_TYPE
static final Registry
<com.mojang.serialization.MapCodec<? extends StructurePoolAliasBinding>> Registries.POOL_ALIAS_BINDING
static final Registry
<PosRuleTestType<?>> Registries.POS_RULE_TEST
static final Registry
<PositionSourceType<?>> Registries.POSITION_SOURCE_TYPE
Registries.POTION
static final Registry
<RecipeSerializer<?>> Registries.RECIPE_SERIALIZER
static final Registry
<RecipeType<?>> Registries.RECIPE_TYPE
Registries.REGISTRIES
static final Registry
<RootPlacerType<?>> Registries.ROOT_PLACER_TYPE
static final Registry
<RuleBlockEntityModifierType<?>> Registries.RULE_BLOCK_ENTITY_MODIFIER
static final Registry
<RuleTestType<?>> Registries.RULE_TEST
Registries.SCHEDULE
static final Registry
<ScreenHandlerType<?>> Registries.SCREEN_HANDLER
static final Registry
<SoundEvent> Registries.SOUND_EVENT
Registries.STAT_TYPE
static final Registry
<StatusEffect> Registries.STATUS_EFFECT
static final Registry
<StructurePieceType> Registries.STRUCTURE_PIECE
static final Registry
<StructurePlacementType<?>> Registries.STRUCTURE_PLACEMENT
static final Registry
<StructurePoolElementType<?>> Registries.STRUCTURE_POOL_ELEMENT
static final Registry
<StructureProcessorType<?>> Registries.STRUCTURE_PROCESSOR
static final Registry
<StructureType<?>> Registries.STRUCTURE_TYPE
static final Registry
<TreeDecoratorType<?>> Registries.TREE_DECORATOR_TYPE
static final Registry
<TrunkPlacerType<?>> Registries.TRUNK_PLACER_TYPE
DynamicRegistryManager.Entry.value
The field for thevalue
record component.Modifier and TypeFieldDescriptionstatic final RegistryKey
<Registry<Activity>> RegistryKeys.ACTIVITY
static final RegistryKey
<Registry<ArmorMaterial>> RegistryKeys.ARMOR_MATERIAL
static final RegistryKey
<Registry<EntityAttribute>> RegistryKeys.ATTRIBUTE
static final RegistryKey
<Registry<BannerPattern>> RegistryKeys.BANNER_PATTERN
static final RegistryKey
<Registry<Biome>> RegistryKeys.BIOME
static final RegistryKey
<Registry<com.mojang.serialization.MapCodec<? extends BiomeSource>>> RegistryKeys.BIOME_SOURCE
static final RegistryKey
<Registry<Block>> RegistryKeys.BLOCK
static final RegistryKey
<Registry<BlockEntityType<?>>> RegistryKeys.BLOCK_ENTITY_TYPE
static final RegistryKey
<Registry<BlockPredicateType<?>>> RegistryKeys.BLOCK_PREDICATE_TYPE
static final RegistryKey
<Registry<BlockStateProviderType<?>>> RegistryKeys.BLOCK_STATE_PROVIDER_TYPE
static final RegistryKey
<Registry<com.mojang.serialization.MapCodec<? extends Block>>> RegistryKeys.BLOCK_TYPE
private final Map
<RegistryKey<? extends Registry<?>>, Optional<? extends RegistryOps.RegistryInfo<?>>> RegistryOps.CachedRegistryInfoGetter.cache
static final RegistryKey
<Registry<Carver<?>>> RegistryKeys.CARVER
static final RegistryKey
<Registry<CatVariant>> RegistryKeys.CAT_VARIANT
static final RegistryKey
<Registry<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> RegistryKeys.CHUNK_GENERATOR
static final RegistryKey
<Registry<ChunkGeneratorSettings>> RegistryKeys.CHUNK_GENERATOR_SETTINGS
static final RegistryKey
<Registry<ChunkStatus>> RegistryKeys.CHUNK_STATUS
static final RegistryKey
<Registry<ArgumentSerializer<?, ?>>> RegistryKeys.COMMAND_ARGUMENT_TYPE
static final RegistryKey
<Registry<ConfiguredCarver<?>>> RegistryKeys.CONFIGURED_CARVER
static final RegistryKey
<Registry<ConfiguredFeature<?, ?>>> RegistryKeys.CONFIGURED_FEATURE
static final RegistryKey
<Registry<Criterion<?>>> RegistryKeys.CRITERION
static final RegistryKey
<Registry<Identifier>> RegistryKeys.CUSTOM_STAT
static final RegistryKey
<Registry<DamageType>> RegistryKeys.DAMAGE_TYPE
static final RegistryKey
<Registry<DataComponentType<?>>> RegistryKeys.DATA_COMPONENT_TYPE
static final RegistryKey
<Registry<String>> RegistryKeys.DECORATED_POT_PATTERN
static final RegistryKey
<Registry<DensityFunction>> RegistryKeys.DENSITY_FUNCTION
static final RegistryKey
<Registry<com.mojang.serialization.MapCodec<? extends DensityFunction>>> RegistryKeys.DENSITY_FUNCTION_TYPE
static final RegistryKey
<Registry<DimensionOptions>> RegistryKeys.DIMENSION
static final RegistryKey
<Registry<DimensionType>> RegistryKeys.DIMENSION_TYPE
static final RegistryKey
<Registry<Enchantment>> RegistryKeys.ENCHANTMENT
static final RegistryKey
<Registry<com.mojang.serialization.MapCodec<? extends EntitySubPredicate>>> RegistryKeys.ENTITY_SUB_PREDICATE_TYPE
static final RegistryKey
<Registry<EntityType<?>>> RegistryKeys.ENTITY_TYPE
static final RegistryKey
<Registry<Feature<?>>> RegistryKeys.FEATURE
static final RegistryKey
<Registry<FeatureSizeType<?>>> RegistryKeys.FEATURE_SIZE_TYPE
static final RegistryKey
<Registry<FlatLevelGeneratorPreset>> RegistryKeys.FLAT_LEVEL_GENERATOR_PRESET
static final RegistryKey
<Registry<FloatProviderType<?>>> RegistryKeys.FLOAT_PROVIDER_TYPE
static final RegistryKey
<Registry<Fluid>> RegistryKeys.FLUID
static final RegistryKey
<Registry<FoliagePlacerType<?>>> RegistryKeys.FOLIAGE_PLACER_TYPE
static final RegistryKey
<Registry<FrogVariant>> RegistryKeys.FROG_VARIANT
static final RegistryKey
<Registry<GameEvent>> RegistryKeys.GAME_EVENT
static final RegistryKey
<Registry<HeightProviderType<?>>> RegistryKeys.HEIGHT_PROVIDER_TYPE
static final RegistryKey
<Registry<Instrument>> RegistryKeys.INSTRUMENT
static final RegistryKey
<Registry<IntProviderType<?>>> RegistryKeys.INT_PROVIDER_TYPE
static final RegistryKey
<Registry<Item>> RegistryKeys.ITEM
static final RegistryKey
<Registry<ItemGroup>> RegistryKeys.ITEM_GROUP
static final RegistryKey
<Registry<LootFunction>> RegistryKeys.ITEM_MODIFIER
static final RegistryKey
<Registry<ItemSubPredicate.Type<?>>> RegistryKeys.ITEM_SUB_PREDICATE_TYPE
private final RegistryKey
<? extends Registry<T>> DynamicRegistryManager.Entry.key
The field for thekey
record component.private final RegistryKey
<? extends Registry<? extends T>> RegistryBuilder.InitializedRegistry.key
The field for thekey
record component.private final RegistryKey
<? extends Registry<T>> RegistryBuilder.RegistryInfo.key
The field for thekey
record component.private final RegistryKey
<? extends Registry<T>> RegistryLoader.Entry.key
The field for thekey
record component.(package private) final RegistryKey
<? extends Registry<T>> SimpleRegistry.key
static final RegistryKey
<Registry<LootConditionType>> RegistryKeys.LOOT_CONDITION_TYPE
static final RegistryKey
<Registry<LootFunctionType<?>>> RegistryKeys.LOOT_FUNCTION_TYPE
static final RegistryKey
<Registry<LootNbtProviderType>> RegistryKeys.LOOT_NBT_PROVIDER_TYPE
static final RegistryKey
<Registry<LootNumberProviderType>> RegistryKeys.LOOT_NUMBER_PROVIDER_TYPE
static final RegistryKey
<Registry<LootPoolEntryType>> RegistryKeys.LOOT_POOL_ENTRY_TYPE
static final RegistryKey
<Registry<LootScoreProviderType>> RegistryKeys.LOOT_SCORE_PROVIDER_TYPE
static final RegistryKey
<Registry<LootTable>> RegistryKeys.LOOT_TABLE
static final RegistryKey
<Registry<MapDecorationType>> RegistryKeys.MAP_DECORATION_TYPE
static final RegistryKey
<Registry<com.mojang.serialization.MapCodec<? extends MaterialRules.MaterialCondition>>> RegistryKeys.MATERIAL_CONDITION
static final RegistryKey
<Registry<com.mojang.serialization.MapCodec<? extends MaterialRules.MaterialRule>>> RegistryKeys.MATERIAL_RULE
static final RegistryKey
<Registry<MemoryModuleType<?>>> RegistryKeys.MEMORY_MODULE_TYPE
static final RegistryKey
<Registry<MessageType>> RegistryKeys.MESSAGE_TYPE
static final RegistryKey
<Registry<MultiNoiseBiomeSourceParameterList>> RegistryKeys.MULTI_NOISE_BIOME_SOURCE_PARAMETER_LIST
static final RegistryKey
<Registry<DoublePerlinNoiseSampler.NoiseParameters>> RegistryKeys.NOISE_PARAMETERS
static final RegistryKey
<Registry<NumberFormatType<?>>> RegistryKeys.NUMBER_FORMAT_TYPE
static final RegistryKey
<Registry<PaintingVariant>> RegistryKeys.PAINTING_VARIANT
static final RegistryKey
<Registry<ParticleType<?>>> RegistryKeys.PARTICLE_TYPE
static final RegistryKey
<Registry<PlacedFeature>> RegistryKeys.PLACED_FEATURE
static final RegistryKey
<Registry<PlacementModifierType<?>>> RegistryKeys.PLACEMENT_MODIFIER_TYPE
static final RegistryKey
<Registry<PointOfInterestType>> RegistryKeys.POINT_OF_INTEREST_TYPE
static final RegistryKey
<Registry<com.mojang.serialization.MapCodec<? extends StructurePoolAliasBinding>>> RegistryKeys.POOL_ALIAS_BINDING
static final RegistryKey
<Registry<PosRuleTestType<?>>> RegistryKeys.POS_RULE_TEST
static final RegistryKey
<Registry<PositionSourceType<?>>> RegistryKeys.POSITION_SOURCE_TYPE
static final RegistryKey
<Registry<Potion>> RegistryKeys.POTION
static final RegistryKey
<Registry<LootCondition>> RegistryKeys.PREDICATE
static final RegistryKey
<Registry<StructureProcessorList>> RegistryKeys.PROCESSOR_LIST
static final RegistryKey
<Registry<RecipeSerializer<?>>> RegistryKeys.RECIPE_SERIALIZER
static final RegistryKey
<Registry<RecipeType<?>>> RegistryKeys.RECIPE_TYPE
private final Map
<? extends RegistryKey<? extends Registry<?>>, ? extends Registry<?>> DynamicRegistryManager.ImmutableImpl.registries
private final Map
<? extends RegistryKey<? extends Registry<?>>, ? extends Registry<?>> DynamicRegistryManager.ImmutableImpl.registries
private final Map
<RegistryKey<? extends Registry<?>>, RegistryCloner<?>> RegistryCloner.CloneableRegistries.registries
Registries.REGISTRIES
static final RegistryKey
<Registry<RootPlacerType<?>>> RegistryKeys.ROOT_PLACER_TYPE
static final RegistryKey
<Registry<RuleBlockEntityModifierType<?>>> RegistryKeys.RULE_BLOCK_ENTITY_MODIFIER
static final RegistryKey
<Registry<RuleTestType<?>>> RegistryKeys.RULE_TEST
static final RegistryKey
<Registry<Schedule>> RegistryKeys.SCHEDULE
static final RegistryKey
<Registry<ScreenHandlerType<?>>> RegistryKeys.SCREEN_HANDLER
static final RegistryKey
<Registry<SensorType<?>>> RegistryKeys.SENSOR_TYPE
static final RegistryKey
<Registry<SoundEvent>> RegistryKeys.SOUND_EVENT
static final RegistryKey
<Registry<StatType<?>>> RegistryKeys.STAT_TYPE
static final RegistryKey
<Registry<StatusEffect>> RegistryKeys.STATUS_EFFECT
static final RegistryKey
<Registry<Structure>> RegistryKeys.STRUCTURE
static final RegistryKey
<Registry<StructurePieceType>> RegistryKeys.STRUCTURE_PIECE
static final RegistryKey
<Registry<StructurePlacementType<?>>> RegistryKeys.STRUCTURE_PLACEMENT
static final RegistryKey
<Registry<StructurePoolElementType<?>>> RegistryKeys.STRUCTURE_POOL_ELEMENT
static final RegistryKey
<Registry<StructureProcessorType<?>>> RegistryKeys.STRUCTURE_PROCESSOR
static final RegistryKey
<Registry<StructureSet>> RegistryKeys.STRUCTURE_SET
static final RegistryKey
<Registry<StructureType<?>>> RegistryKeys.STRUCTURE_TYPE
static final Set
<RegistryKey<? extends Registry<?>>> SerializableRegistries.SYNCED_REGISTRIES
static final RegistryKey
<Registry<StructurePool>> RegistryKeys.TEMPLATE_POOL
static final RegistryKey
<Registry<TreeDecoratorType<?>>> RegistryKeys.TREE_DECORATOR_TYPE
static final RegistryKey
<Registry<ArmorTrimMaterial>> RegistryKeys.TRIM_MATERIAL
static final RegistryKey
<Registry<ArmorTrimPattern>> RegistryKeys.TRIM_PATTERN
static final RegistryKey
<Registry<TrunkPlacerType<?>>> RegistryKeys.TRUNK_PLACER_TYPE
static final RegistryKey
<Registry<VillagerProfession>> RegistryKeys.VILLAGER_PROFESSION
static final RegistryKey
<Registry<VillagerType>> RegistryKeys.VILLAGER_TYPE
static final RegistryKey
<Registry<WolfVariant>> RegistryKeys.WOLF_VARIANT
static final RegistryKey
<Registry<World>> RegistryKeys.WORLD
static final RegistryKey
<Registry<WorldPreset>> RegistryKeys.WORLD_PRESET
Modifier and TypeMethodDescriptionprivate static <T,
R extends Registry<? extends T>>
DynamicRegistryManager.Entry<T> DynamicRegistryManager.Entry.of
(Map.Entry<? extends RegistryKey<? extends Registry<?>>, R> entry) private static <T extends Registry<?>>
voidModifier and TypeMethodDescriptionprivate static <T> Registry
<T> Registries.create
(RegistryKey<? extends Registry<T>> key, Registries.Initializer<T> initializer) private static <T> Registry
<T> Registries.createIntrusive
(RegistryKey<? extends Registry<T>> key, Registries.Initializer<T> initializer) Registry.freeze()
SimpleRegistry.freeze()
default <E> Registry
<E> DynamicRegistryManager.get
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry from this manager, or throws an exception when the registry does not exist.DynamicRegistryManager.Entry.value()
Returns the value of thevalue
record component.Modifier and TypeMethodDescriptionRegistryKey
<? extends Registry<T>> Registry.getKey()
Returns the registry key that identifies this registry.RegistryKey
<? extends Registry<T>> SimpleRegistry.getKey()
Returns the registry key that identifies this registry.DynamicRegistryManager.getOptional
(RegistryKey<? extends Registry<? extends E>> key) DynamicRegistryManager.ImmutableImpl.getOptional
(RegistryKey<? extends Registry<? extends E>> key) default RegistryKey
<? extends Registry<? extends T>> RegistryWrapper.Impl.Delegating.getRegistryKey()
RegistryKey
<? extends Registry<? extends T>> RegistryWrapper.Impl.getRegistryKey()
RegistryKey.getRegistryRef()
RegistryKey
<? extends Registry<T>> DynamicRegistryManager.Entry.key()
Returns the value of thekey
record component.RegistryKey
<? extends Registry<? extends T>> RegistryBuilder.InitializedRegistry.key()
Returns the value of thekey
record component.RegistryKey
<? extends Registry<T>> RegistryBuilder.RegistryInfo.key()
Returns the value of thekey
record component.RegistryKey
<? extends Registry<T>> RegistryLoader.Entry.key()
Returns the value of thekey
record component.private static <T> RegistryKey
<Registry<T>> static <T> RegistryKey
<Registry<T>> RegistryKey.ofRegistry
(Identifier registry) Creates a registry key for a registry in the root registry (registry of all registries) with an identifier for the registry.default Stream
<RegistryKey<? extends Registry<?>>> DynamicRegistryManager.streamAllRegistryKeys()
Stream
<RegistryKey<? extends Registry<?>>> RegistryWrapper.WrapperLookup.streamAllRegistryKeys()
Stream
<RegistryKey<? extends Registry<?>>> ReloadableRegistries.ReloadableWrapperLookup.streamAllRegistryKeys()
private static Map
<RegistryKey<? extends Registry<?>>, Registry<?>> CombinedDynamicRegistries.toRegistryMap
(Stream<? extends DynamicRegistryManager> registryManagers) private static Map
<RegistryKey<? extends Registry<?>>, Registry<?>> CombinedDynamicRegistries.toRegistryMap
(Stream<? extends DynamicRegistryManager> registryManagers) Modifier and TypeMethodDescriptionprivate static <T> RegistryOps.RegistryInfo
<T> RegistryLoader.createInfo
(Registry<T> registry) private static <T> DynamicRegistryManager.Entry
<T> DynamicRegistryManager.Entry.of
(RegistryKey<? extends Registry<?>> key, Registry<?> value) static <T> T
static <V,
T extends V>
TRegistry.register
(Registry<V> registry, RegistryKey<V> key, T entry) Registersentry
toregistry
underkey
.static <V,
T extends V>
TRegistry.register
(Registry<V> registry, Identifier id, T entry) Registersentry
toregistry
underid
.static <T> RegistryEntry.Reference
<T> Registry.registerReference
(Registry<T> registry, RegistryKey<T> key, T entry) static <T> RegistryEntry.Reference
<T> Registry.registerReference
(Registry<T> registry, Identifier id, T entry) private static <T extends Registry<?>>
voidModifier and TypeMethodDescriptionRegistryCloner.CloneableRegistries.add
(RegistryKey<? extends Registry<? extends T>> registryRef, com.mojang.serialization.Codec<T> elementCodec) <T> RegistryBuilder
RegistryBuilder.addRegistry
(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, RegistryBuilder.BootstrapFunction<T> bootstrapFunction) <T> RegistryBuilder
RegistryBuilder.addRegistry
(RegistryKey<? extends Registry<T>> registryRef, RegistryBuilder.BootstrapFunction<T> bootstrapFunction) void
RegistryLoader.Entry.addToCloner
(BiConsumer<RegistryKey<? extends Registry<T>>, com.mojang.serialization.Codec<T>> callback) private <T> RegistryWrapper.Impl
<T> RegistryBuilder.applyPatches
(RegistryEntryOwner<T> owner, RegistryCloner.CloneableRegistries cloneableRegistries, RegistryKey<? extends Registry<? extends T>> registryRef, RegistryWrapper.WrapperLookup patches, RegistryWrapper.WrapperLookup base, MutableObject<RegistryWrapper.WrapperLookup> lazyWrapper) private Optional
<RegistryOps.RegistryInfo<Object>> RegistryOps.CachedRegistryInfoGetter.compute
(RegistryKey<? extends Registry<?>> registryRef) private static <T> DefaultedRegistry
<T> Registries.create
(RegistryKey<? extends Registry<T>> key, String defaultId, Registries.Initializer<T> initializer) private static <T> Registry
<T> Registries.create
(RegistryKey<? extends Registry<T>> key, Registries.Initializer<T> initializer) private static <T,
R extends MutableRegistry<T>>
RRegistries.create
(RegistryKey<? extends Registry<T>> key, R registry, Registries.Initializer<T> initializer) static <T> com.mojang.serialization.Codec
<RegistryKey<T>> RegistryKey.createCodec
(RegistryKey<? extends Registry<T>> registry) private RegistryWrapper.WrapperLookup
RegistryBuilder.createFullWrapperLookup
(DynamicRegistryManager registryManager, RegistryWrapper.WrapperLookup base, RegistryCloner.CloneableRegistries cloneableRegistries, Map<RegistryKey<? extends Registry<?>>, RegistryBuilder.InitializedRegistry<?>> initializedRegistries, RegistryWrapper.WrapperLookup patches) private static <T> DefaultedRegistry
<T> Registries.createIntrusive
(RegistryKey<? extends Registry<T>> key, String defaultId, Registries.Initializer<T> initializer) private static <T> Registry
<T> Registries.createIntrusive
(RegistryKey<? extends Registry<T>> key, Registries.Initializer<T> initializer) static <T> PacketCodec
<ByteBuf, RegistryKey<T>> RegistryKey.createPacketCodec
(RegistryKey<? extends Registry<T>> registry) (package private) static <T> RegistryWrapper.Impl
<T> RegistryBuilder.createWrapper
(RegistryKey<? extends Registry<? extends T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, RegistryEntryOwner<T> owner, Map<RegistryKey<T>, RegistryEntry.Reference<T>> entries) static <E> com.mojang.serialization.Codec
<RegistryEntryList<E>> RegistryCodecs.entryList
(RegistryKey<? extends Registry<E>> registryRef) static <E> com.mojang.serialization.Codec
<RegistryEntryList<E>> RegistryCodecs.entryList
(RegistryKey<? extends Registry<E>> registryRef, boolean alwaysSerializeAsList) static <E> com.mojang.serialization.Codec
<RegistryEntryList<E>> RegistryCodecs.entryList
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec) static <E> com.mojang.serialization.Codec
<RegistryEntryList<E>> RegistryCodecs.entryList
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec, boolean alwaysSerializeAsList) static void
SerializableRegistries.forEachSyncedRegistry
(com.mojang.serialization.DynamicOps<NbtElement> nbtOps, DynamicRegistryManager registryManager, Set<VersionedIdentifier> knownPacks, BiConsumer<RegistryKey<? extends Registry<?>>, List<SerializableRegistries.SerializedRegistryEntry>> callback) default <E> Registry
<E> DynamicRegistryManager.get
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry from this manager, or throws an exception when the registry does not exist.<T> @Nullable RegistryCloner
<T> RegistryCloner.CloneableRegistries.get
(RegistryKey<? extends Registry<? extends T>> registryRef) <E> Optional
<RegistryEntryLookup<E>> RegistryOps.getEntryLookup
(RegistryKey<? extends Registry<? extends E>> registryRef) static <E,
O> com.mojang.serialization.codecs.RecordCodecBuilder <O, RegistryEntryLookup<E>> RegistryOps.getEntryLookupCodec
(RegistryKey<? extends Registry<? extends E>> registryRef) ReloadableRegistries.Lookup.getIds
(RegistryKey<? extends Registry<?>> registryRef) DynamicRegistryManager.getOptional
(RegistryKey<? extends Registry<? extends E>> key) DynamicRegistryManager.ImmutableImpl.getOptional
(RegistryKey<? extends Registry<? extends E>> key) <T> Optional
<RegistryEntryLookup<T>> RegistryEntryLookup.RegistryLookup.getOptional
(RegistryKey<? extends Registry<? extends T>> registryRef) default <T> Optional
<RegistryEntry.Reference<T>> RegistryEntryLookup.RegistryLookup.getOptionalEntry
(RegistryKey<? extends Registry<? extends T>> registryRef, RegistryKey<T> key) default <T> Optional
<RegistryWrapper.Impl<T>> DynamicRegistryManager.getOptionalWrapper
(RegistryKey<? extends Registry<? extends T>> registryRef) <T> Optional
<RegistryWrapper.Impl<T>> RegistryWrapper.WrapperLookup.getOptionalWrapper
(RegistryKey<? extends Registry<? extends T>> registryRef) <T> Optional
<RegistryWrapper.Impl<T>> ReloadableRegistries.ReloadableWrapperLookup.getOptionalWrapper
(RegistryKey<? extends Registry<? extends T>> registryRef) default <T> RegistryEntryLookup
<T> RegistryEntryLookup.RegistryLookup.getOrThrow
(RegistryKey<? extends Registry<? extends T>> registryRef) <E> Optional
<RegistryEntryOwner<E>> RegistryOps.getOwner
(RegistryKey<? extends Registry<? extends E>> registryRef) <E> Optional
<RegistryOps.RegistryInfo<E>> RegistryOps.CachedRegistryInfoGetter.getRegistryInfo
(RegistryKey<? extends Registry<? extends E>> registryRef) <T> Optional
<RegistryOps.RegistryInfo<T>> RegistryOps.RegistryInfoGetter.getRegistryInfo
(RegistryKey<? extends Registry<? extends T>> registryRef) <S> RegistryEntryLookup
<S> Registerable.getRegistryLookup
(RegistryKey<? extends Registry<? extends S>> registryRef) default <T> RegistryWrapper.Impl
<T> RegistryWrapper.WrapperLookup.getWrapperOrThrow
(RegistryKey<? extends Registry<? extends T>> registryRef) boolean
RegistryKey.isOf
(RegistryKey<? extends Registry<?>> registry) Returns whether this registry key belongs to the given registry (according to its type, not whether the registry actually contains this key).void
RegistryLoader.Loader.loadFromNetwork
(Map<RegistryKey<? extends Registry<?>>, List<SerializableRegistries.SerializedRegistryEntry>> data, ResourceFactory factory, RegistryOps.RegistryInfoGetter infoGetter) RegistryLoader.loadFromNetwork
(Map<RegistryKey<? extends Registry<?>>, List<SerializableRegistries.SerializedRegistryEntry>> data, ResourceFactory factory, DynamicRegistryManager registryManager, List<RegistryLoader.Entry<?>> entries) (package private) static <E> void
RegistryLoader.loadFromNetwork
(Map<RegistryKey<? extends Registry<?>>, List<SerializableRegistries.SerializedRegistryEntry>> data, ResourceFactory factory, RegistryOps.RegistryInfoGetter infoGetter, MutableRegistry<E> registry, com.mojang.serialization.Decoder<E> decoder, Map<RegistryKey<?>, Exception> loadingErrors) private static <T,
R extends Registry<? extends T>>
DynamicRegistryManager.Entry<T> DynamicRegistryManager.Entry.of
(Map.Entry<? extends RegistryKey<? extends Registry<?>>, R> entry) private static <T> DynamicRegistryManager.Entry
<T> DynamicRegistryManager.Entry.of
(RegistryKey<? extends Registry<?>> key, Registry<?> value) static RegistryBuilder.Registries
RegistryBuilder.Registries.of
(DynamicRegistryManager dynamicRegistryManager, Stream<RegistryKey<? extends Registry<?>>> registryRefs) static <T> RegistryKey
<T> RegistryKey.of
(RegistryKey<? extends Registry<T>> registry, Identifier value) Creates a registry key for a value in a registry with a registry key for the value-holding registry in the root registry and an identifier of the value.private static <T> void
SerializableRegistries.serialize
(com.mojang.serialization.DynamicOps<NbtElement> nbtOps, RegistryLoader.Entry<T> entry, DynamicRegistryManager registryManager, Set<VersionedIdentifier> knownPacks, BiConsumer<RegistryKey<? extends Registry<?>>, List<SerializableRegistries.SerializedRegistryEntry>> callback) <E> Optional
<RegistryKey<E>> RegistryKey.tryCast
(RegistryKey<? extends Registry<E>> registryRef) ModifierConstructorDescriptionModifierConstructorDescriptionEntry
(RegistryKey<? extends Registry<T>> registryKey, com.mojang.serialization.Codec<T> codec) ImmutableImpl
(List<? extends Registry<?>> registries) ImmutableImpl
(Map<? extends RegistryKey<? extends Registry<?>>, ? extends Registry<?>> registries) ImmutableImpl
(Map<? extends RegistryKey<? extends Registry<?>>, ? extends Registry<?>> registries) (package private)
InitializedRegistry
(RegistryKey<? extends Registry<? extends T>> registryKey, com.mojang.serialization.Lifecycle lifecycle, Map<RegistryKey<T>, RegistryBuilder.EntryAssociatedValue<T>> map) (package private)
RegistryInfo
(RegistryKey<? extends Registry<T>> registryKey, com.mojang.serialization.Lifecycle lifecycle, RegistryBuilder.BootstrapFunction<T> bootstrapFunction) SimpleDefaultedRegistry
(String defaultId, RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, boolean intrusive) SimpleRegistry
(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) SimpleRegistry
(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, boolean intrusive) -
Uses of Registry in net.minecraft.registry.entry
Modifier and TypeFieldDescriptionprivate final RegistryKey
<? extends Registry<E>> RegistryEntryListCodec.registry
private final RegistryKey
<? extends Registry<E>> RegistryFixedCodec.registry
private final RegistryKey
<? extends Registry<E>> RegistryElementCodec.registryRef
Modifier and TypeMethodDescriptionstatic <E> com.mojang.serialization.Codec
<RegistryEntryList<E>> RegistryEntryListCodec.create
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<RegistryEntry<E>> entryCodec, boolean alwaysSerializeAsList) static <E> RegistryElementCodec
<E> RegistryElementCodec.of
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec) static <E> RegistryElementCodec
<E> RegistryElementCodec.of
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec, boolean allowInlineDefinitions) static <E> RegistryFixedCodec
<E> RegistryFixedCodec.of
(RegistryKey<? extends Registry<E>> registry) ModifierConstructorDescriptionprivate
RegistryElementCodec
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec, boolean allowInlineDefinitions) private
RegistryEntryListCodec
(RegistryKey<? extends Registry<E>> registry, com.mojang.serialization.Codec<RegistryEntry<E>> entryCodec, boolean alwaysSerializeAsList) private
RegistryFixedCodec
(RegistryKey<? extends Registry<E>> registry) -
Uses of Registry in net.minecraft.registry.tag
Modifier and TypeFieldDescriptionprivate static final Map
<RegistryKey<? extends Registry<?>>, String> TagManagerLoader.DIRECTORIES
private final RegistryKey
<? extends Registry<T>> TagManagerLoader.RegistryTags.key
The field for thekey
record component.private final RegistryKey
<? extends Registry<T>> TagKey.registry
The field for theregistry
record component.Modifier and TypeMethodDescriptionRegistryKey
<? extends Registry<T>> TagManagerLoader.RegistryTags.key()
Returns the value of thekey
record component.RegistryKey
<? extends Registry<T>> TagKey.registry()
Returns the value of theregistry
record component.static Map
<RegistryKey<? extends Registry<?>>, TagPacketSerializer.Serialized> TagPacketSerializer.serializeTags
(CombinedDynamicRegistries<ServerDynamicRegistryType> dynamicRegistryManager) Modifier and TypeMethodDescription(package private) static <T> void
TagPacketSerializer.loadTags
(RegistryKey<? extends Registry<T>> registryKey, Registry<T> registry, TagPacketSerializer.Serialized serialized, TagPacketSerializer.Loader<T> loader) <T> void
private static <T> TagPacketSerializer.Serialized
TagPacketSerializer.serializeTags
(Registry<T> registry) Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec
<TagKey<T>> TagKey.codec
(RegistryKey<? extends Registry<T>> registry) static String
TagManagerLoader.getPath
(RegistryKey<? extends Registry<?>> registry) boolean
TagKey.isOf
(RegistryKey<? extends Registry<?>> registryRef) (package private) static <T> void
TagPacketSerializer.loadTags
(RegistryKey<? extends Registry<T>> registryKey, Registry<T> registry, TagPacketSerializer.Serialized serialized, TagPacketSerializer.Loader<T> loader) static <T> TagKey
<T> TagKey.of
(RegistryKey<? extends Registry<T>> registry, Identifier id) TagKey.tryCast
(RegistryKey<? extends Registry<E>> registryRef) static <T> com.mojang.serialization.Codec
<TagKey<T>> TagKey.unprefixedCodec
(RegistryKey<? extends Registry<T>> registry) ModifierConstructorDescriptionRegistryTags
(RegistryKey<? extends Registry<T>> registryKey, Map<Identifier, Collection<RegistryEntry<T>>> map) TagKey
(RegistryKey<? extends Registry<T>> registryKey, Identifier identifier) Deprecated. -
Uses of Registry in net.minecraft.resource.featuretoggle
Modifier and TypeFieldDescriptionstatic final Set
<RegistryKey<? extends Registry<? extends ToggleableFeature>>> ToggleableFeature.FEATURE_ENABLED_REGISTRY_KEYS
-
Uses of Registry in net.minecraft.scoreboard.number
Modifier and TypeMethodDescriptionstatic NumberFormatType
<?> NumberFormatTypes.registerAndGetDefault
(Registry<NumberFormatType<?>> registry) -
Uses of Registry in net.minecraft.server
Modifier and TypeMethodDescriptionStream
<RegistryKey<? extends Registry<?>>> DataPackContents.ConfigurableWrapperLookup.streamAllRegistryKeys()
Modifier and TypeMethodDescription<T> Optional
<RegistryWrapper.Impl<T>> DataPackContents.ConfigurableWrapperLookup.getOptionalWrapper
(RegistryKey<? extends Registry<? extends T>> registryRef) -
Uses of Registry in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static Optional
<? extends RegistryEntryList.ListBacked<Structure>> LocateCommand.getStructureListForPredicate
(RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate, Registry<Structure> structureRegistry) Modifier and TypeMethodDescriptionCompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> ServerCommandSource.listIdSuggestions
(RegistryKey<? extends Registry<?>> registryRef, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, com.mojang.brigadier.context.CommandContext<?> context) -
Uses of Registry in net.minecraft.stat
Modifier and TypeMethodDescriptionprivate static <T> StatType
<T> Stats.registerType
(String id, Registry<T> registry) -
Uses of Registry in net.minecraft.structure.pool
Modifier and TypeFieldDescriptionprivate final Registry
<StructurePool> StructurePoolBasedGenerator.StructurePoolGenerator.registry
Modifier and TypeMethodDescriptionprivate static void
StructurePoolBasedGenerator.generate
(NoiseConfig noiseConfig, int maxSize, boolean modifyBoundingBox, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, HeightLimitView heightLimitView, Random random, Registry<StructurePool> structurePoolRegistry, PoolStructurePiece firstPiece, List<PoolStructurePiece> pieces, VoxelShape pieceShape, StructurePoolAliasLookup aliasLookup) ModifierConstructorDescription(package private)
StructurePoolGenerator
(Registry<StructurePool> registry, int maxSize, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, List<? super PoolStructurePiece> children, Random random) -
Uses of Registry in net.minecraft.structure.pool.alias
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.MapCodec
<? extends StructurePoolAliasBinding> StructurePoolAliasBindings.registerAndGetDefault
(Registry<com.mojang.serialization.MapCodec<? extends StructurePoolAliasBinding>> registry) -
Uses of Registry in net.minecraft.util
Modifier and TypeMethodDescriptionstatic <T> String
Util.registryValueToString
(Registry<T> registry, T value) -
Uses of Registry in net.minecraft.world
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec
<ReadableContainer<RegistryEntry<Biome>>> ChunkSerializer.createCodec
(Registry<Biome> biomeRegistry) Modifier and TypeMethodDescriptiondefault <T> RegistryWrapper
<T> WorldView.createCommandRegistryWrapper
(RegistryKey<? extends Registry<? extends T>> registryRef) -
Uses of Registry in net.minecraft.world.biome.source
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.MapCodec
<? extends BiomeSource> BiomeSources.registerAndGetDefault
(Registry<com.mojang.serialization.MapCodec<? extends BiomeSource>> registry) -
Uses of Registry in net.minecraft.world.chunk
Modifier and TypeMethodDescriptionprivate static void
Chunk.fillSectionArray
(Registry<Biome> biomeRegistry, ChunkSection[] sectionArray) ModifierConstructorDescriptionChunk
(ChunkPos pos, UpgradeData upgradeData, HeightLimitView heightLimitView, Registry<Biome> biomeRegistry, long inhabitedTime, @Nullable ChunkSection[] sectionArray, @Nullable BlendingData blendingData) ChunkSection
(Registry<Biome> biomeRegistry) ProtoChunk
(ChunkPos pos, UpgradeData upgradeData, @Nullable ChunkSection[] sections, SimpleTickScheduler<Block> blockTickScheduler, SimpleTickScheduler<Fluid> fluidTickScheduler, HeightLimitView world, Registry<Biome> biomeRegistry, @Nullable BlendingData blendingData) ProtoChunk
(ChunkPos pos, UpgradeData upgradeData, HeightLimitView world, Registry<Biome> biomeRegistry, @Nullable BlendingData blendingData) -
Uses of Registry in net.minecraft.world.dimension
Modifier and TypeFieldDescriptionprivate final Registry
<DimensionOptions> DimensionOptionsRegistryHolder.DimensionsConfig.dimensions
The field for thedimensions
record component.Modifier and TypeMethodDescriptionDimensionOptionsRegistryHolder.DimensionsConfig.dimensions()
Returns the value of thedimensions
record component.Modifier and TypeMethodDescriptionstatic Map
<RegistryKey<DimensionOptions>, DimensionOptions> DimensionOptionsRegistryHolder.createRegistry
(Registry<DimensionType> dynamicRegistry, Map<RegistryKey<DimensionOptions>, DimensionOptions> map, ChunkGenerator chunkGenerator) private static LevelProperties.SpecialProperty
DimensionOptionsRegistryHolder.getSpecialProperty
(Registry<DimensionOptions> dimensionOptionsRegistry) DimensionOptionsRegistryHolder.toConfig
(Registry<DimensionOptions> existingRegistry) ModifierConstructorDescriptionDimensionsConfig
(Registry<DimensionOptions> registry, LevelProperties.SpecialProperty specialProperty) -
Uses of Registry in net.minecraft.world.event
Modifier and TypeMethodDescriptionstatic RegistryEntry
<GameEvent> GameEvent.registerAndGetDefault
(Registry<GameEvent> registry) -
Uses of Registry in net.minecraft.world.gen.chunk
Modifier and TypeMethodDescriptionvoid
NoiseChunkGenerator.buildSurface
(Chunk chunk, HeightContext heightContext, NoiseConfig noiseConfig, StructureAccessor structureAccessor, BiomeAccess biomeAccess, Registry<Biome> biomeRegistry, Blender blender) static com.mojang.serialization.MapCodec
<? extends ChunkGenerator> ChunkGenerators.registerAndGetDefault
(Registry<com.mojang.serialization.MapCodec<? extends ChunkGenerator>> registry) -
Uses of Registry in net.minecraft.world.gen.densityfunction
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.MapCodec
<? extends DensityFunction> DensityFunctionTypes.register
(Registry<com.mojang.serialization.MapCodec<? extends DensityFunction>> registry, String id, CodecHolder<? extends DensityFunction> codecHolder) static com.mojang.serialization.MapCodec
<? extends DensityFunction> DensityFunctionTypes.registerAndGetDefault
(Registry<com.mojang.serialization.MapCodec<? extends DensityFunction>> registry) -
Uses of Registry in net.minecraft.world.gen.surfacebuilder
Modifier and TypeMethodDescriptionvoid
SurfaceBuilder.buildSurface
(NoiseConfig noiseConfig, BiomeAccess biomeAccess, Registry<Biome> biomeRegistry, boolean useLegacyRandom, HeightContext heightContext, Chunk chunk, ChunkNoiseSampler chunkNoiseSampler, MaterialRules.MaterialRule materialRule) (package private) static <A> com.mojang.serialization.MapCodec
<? extends A> MaterialRules.register
(Registry<com.mojang.serialization.MapCodec<? extends A>> registry, String id, CodecHolder<? extends A> codecHolder) static com.mojang.serialization.MapCodec
<? extends MaterialRules.MaterialCondition> MaterialRules.MaterialCondition.registerAndGetDefault
(Registry<com.mojang.serialization.MapCodec<? extends MaterialRules.MaterialCondition>> registry) static com.mojang.serialization.MapCodec
<? extends MaterialRules.MaterialRule> MaterialRules.MaterialRule.registerAndGetDefault
(Registry<com.mojang.serialization.MapCodec<? extends MaterialRules.MaterialRule>> registry) ModifierConstructorDescriptionprotected
MaterialRuleContext
(SurfaceBuilder surfaceBuilder, NoiseConfig noiseConfig, Chunk chunk, ChunkNoiseSampler chunkNoiseSampler, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Registry<Biome> registry, HeightContext heightContext) -
Uses of Registry in net.minecraft.world.level.storage
Modifier and TypeMethodDescriptionstatic ParsedSaveProperties
LevelStorage.parseSaveProperties
(com.mojang.serialization.Dynamic<?> dynamic, DataConfiguration dataConfiguration, Registry<DimensionOptions> dimensionsRegistry, DynamicRegistryManager.Immutable registryManager) -
Uses of Registry in net.minecraft.world.poi
Modifier and TypeMethodDescriptionprivate static PointOfInterestType
PointOfInterestTypes.register
(Registry<PointOfInterestType> registry, RegistryKey<PointOfInterestType> key, Set<BlockState> states, int ticketCount, int searchDistance) static PointOfInterestType
PointOfInterestTypes.registerAndGetDefault
(Registry<PointOfInterestType> registry) -
Uses of Registry in net.minecraft.world.updater
Modifier and TypeFieldDescription(package private) final Registry
<DimensionOptions> WorldUpdater.dimensionOptionsRegistry