Uses of Class
net.minecraft.util.registry.Registry
Package
Description
-
Uses of Registry in net.minecraft.block.entity
Modifier and TypeMethodDescriptionstatic BannerPattern
BannerPatterns.initAndGetDefault
(Registry<BannerPattern> registry) -
Uses of Registry in net.minecraft.client.gui.screen
Modifier and TypeMethodDescriptionstatic FlatChunkGeneratorConfig
PresetsScreen.parsePresetString
(Registry<Biome> biomeRegistry, Registry<StructureSet> structureSetRegistry, String preset, FlatChunkGeneratorConfig generatorConfig) -
Uses of Registry in net.minecraft.client.gui.screen.world
Modifier and TypeMethodDescriptionprivate static Optional<List<RegistryEntry<WorldPreset>>>
MoreOptionsDialog.collectPresets
(Registry<WorldPreset> presetRegistry, TagKey<WorldPreset> tag) -
Uses of Registry in net.minecraft.client.network
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 <T> void
ClientPlayNetworkHandler.loadTags
(RegistryKey<? extends Registry<? extends T>> registryKey, TagPacketSerializer.Serialized serialized) -
Uses of Registry in net.minecraft.command
Modifier and TypeMethodDescriptionstatic <T> CommandRegistryWrapper<T>
Returns a new wrapper for theregistry
without any special behaviors.default void
CommandSource.suggestIdentifiers
(Registry<?> registry, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) Modifier and TypeMethodDescription<T> CommandRegistryWrapper<T>
CommandRegistryAccess.createWrapper
(RegistryKey<? extends Registry<T>> registryRef) Creates a registry wrapper that follows the entry list creation policy.CompletableFuture<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>>
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 TypeMethodDescriptionBlockArgumentParser.block
(Registry<Block> registry, com.mojang.brigadier.StringReader reader, boolean allowSnbt) static com.mojang.datafixers.util.Either<BlockArgumentParser.BlockResult,
BlockArgumentParser.TagResult> BlockArgumentParser.blockOrTag
(Registry<Block> registry, com.mojang.brigadier.StringReader reader, boolean allowSnbt) static com.mojang.datafixers.util.Either<BlockArgumentParser.BlockResult,
BlockArgumentParser.TagResult> BlockArgumentParser.blockOrTag
(Registry<Block> registry, String string, boolean allowSnbt) static 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) private static <T> RegistryEntry<T>
RegistryKeyArgumentType.getRegistryEntry
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) static <T> RegistryKeyArgumentType<T>
RegistryKeyArgumentType.registryKey
(RegistryKey<? extends Registry<T>> registryRef) static <T> RegistryPredicateArgumentType<T>
RegistryPredicateArgumentType.registryPredicate
(RegistryKey<? extends Registry<T>> 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) RegistryKeyArgumentType
(RegistryKey<? extends Registry<T>> registryRef) RegistryPredicateArgumentType
(RegistryKey<? extends Registry<T>> registryRef) -
Uses of Registry in net.minecraft.data.report
-
Uses of Registry in net.minecraft.data.server
Modifier and TypeFieldDescriptionAbstractTagProvider.ObjectBuilder.registry
AbstractTagProvider.registry
ModifierConstructorDescriptionprotected
AbstractTagProvider
(DataGenerator root, Registry<T> registry) (package private)
ObjectBuilder
(TagBuilder builder, Registry<T> registry) -
Uses of Registry in net.minecraft.entity.decoration.painting
Modifier and TypeMethodDescriptionstatic PaintingVariant
PaintingVariants.registerAndGetDefault
(Registry<PaintingVariant> registry) -
Uses of Registry in net.minecraft.item
Modifier and TypeMethodDescriptionboolean
ItemStack.canDestroy
(Registry<Block> blockRegistry, CachedBlockPosition pos) boolean
ItemStack.canPlaceOn
(Registry<Block> blockRegistry, CachedBlockPosition pos) boolean
BlockPredicatesChecker.check
(ItemStack stack, Registry<Block> blockRegistry, CachedBlockPosition pos) Returns true if any of the predicates in thestack
's NBT matched against the block atpos
, false otherwise.static Instrument
Instruments.registerAndGetDefault
(Registry<Instrument> registry) -
Uses of Registry in net.minecraft.network
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.message
Modifier and TypeMethodDescriptionstatic RegistryEntry<MessageType>
MessageType.initialize
(Registry<MessageType> registry) -
Uses of Registry in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final Map<RegistryKey<? extends Registry<?>>,
TagPacketSerializer.Serialized> SynchronizeTagsS2CPacket.groups
Modifier and TypeMethodDescriptionMap<RegistryKey<? extends Registry<?>>,
TagPacketSerializer.Serialized> SynchronizeTagsS2CPacket.getGroups()
Modifier and TypeMethodDescriptionChatMessageS2CPacket.getMessageType
(Registry<MessageType> registry) Returns the message type of the chat message.GameMessageS2CPacket.getMessageType
(Registry<MessageType> registry) Returns the message type of the chat message.ModifierConstructorDescriptionSynchronizeTagsS2CPacket
(Map<RegistryKey<? extends Registry<?>>, TagPacketSerializer.Serialized> groups) -
Uses of Registry in net.minecraft.predicate.entity
-
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
Modifier and TypeMethodDescriptionstatic RegistryEntry<StructureSet>
StructureSets.initAndGetDefault
(Registry<StructureSet> 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) static RegistryEntry<StructurePool>
StructurePools.initDefaultPools
(Registry<StructurePool> registry) 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.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
(DynamicRegistryManager dynamicRegistryManager) Modifier and TypeMethodDescriptionstatic <T> void
TagPacketSerializer.loadTags
(RegistryKey<? extends Registry<T>> registryKey, Registry<T> registry, TagPacketSerializer.Serialized serialized, TagPacketSerializer.Loader<T> loader) 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) 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.util
Modifier and TypeFieldDescriptionJsonSerializing.GsonSerializer.registry
JsonSerializing.SerializerBuilder.registry
Modifier and TypeMethodDescriptionstatic <E,
T extends JsonSerializableType<E>>
JsonSerializing.SerializerBuilder<E,T> JsonSerializing.createSerializerBuilder
(Registry<T> registry, String rootFieldName, String idFieldName, Function<E, T> typeGetter) ModifierConstructorDescription(package private)
GsonSerializer
(Registry<T> registry, String rootFieldName, String idFieldName, Function<E, T> typeGetter, T defaultType, @Nullable com.mojang.datafixers.util.Pair<T, JsonSerializing.ElementSerializer<? extends E>> elementSerializer) (package private)
SerializerBuilder
(Registry<T> registry, String rootFieldName, String idFieldName, Function<E, T> typeIdentification) -
Uses of Registry in net.minecraft.util.dynamic
Modifier and TypeFieldDescriptionprivate final RegistryKey<? extends Registry<E>>
RegistryElementCodec.registryRef
private final Map<RegistryKey<? extends Registry<?>>,
RegistryLoader.ValueHolder<?>> RegistryLoader.valueHolders
Modifier and TypeMethodDescriptionstatic <E> com.mojang.serialization.MapCodec<Registry<E>>
RegistryOps.createRegistryCodec
(RegistryKey<? extends Registry<? extends E>> registryRef) RegistryOps.getRegistry
(RegistryKey<? extends Registry<? extends E>> key) <E> com.mojang.serialization.DataResult<? extends Registry<E>>
RegistryLoader.load
(MutableRegistry<E> registry, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> codec, com.mojang.serialization.DynamicOps<JsonElement> ops) <E> com.mojang.serialization.DataResult<? extends Registry<E>>
RegistryLoader.LoaderAccess.load
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> codec, com.mojang.serialization.DynamicOps<JsonElement> ops) Modifier and TypeMethodDescriptionstatic <E> com.mojang.serialization.MapCodec<Registry<E>>
RegistryOps.createRegistryCodec
(RegistryKey<? extends Registry<? extends E>> registryRef) <E> Map<RegistryKey<E>,
EntryLoader.Parseable<E>> EntryLoader.getKnownEntryPaths
(RegistryKey<? extends Registry<E>> key) <E> Map<RegistryKey<E>,
EntryLoader.Parseable<E>> EntryLoader.Impl.getKnownEntryPaths
(RegistryKey<? extends Registry<E>> key) private <E> RegistryLoader.ValueHolder<E>
RegistryLoader.getOrCreateValueHolder
(RegistryKey<? extends Registry<E>> registryRef) RegistryOps.getRegistry
(RegistryKey<? extends Registry<? extends E>> key) <E> com.mojang.serialization.DataResult<? extends Registry<E>>
RegistryLoader.load
(MutableRegistry<E> registry, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> codec, com.mojang.serialization.DynamicOps<JsonElement> ops) (package private) <E> com.mojang.serialization.DataResult<RegistryEntry<E>>
RegistryLoader.load
(MutableRegistry<E> registry, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> codec, RegistryKey<E> entryKey, com.mojang.serialization.DynamicOps<JsonElement> ops) private <E> com.mojang.serialization.DataResult<RegistryEntry<E>>
RegistryLoader.load
(MutableRegistry<E> registry, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> codec, RegistryKey<E> entryKey, Optional<EntryLoader.Parseable<E>> parseable, com.mojang.serialization.DynamicOps<JsonElement> ops) <E> com.mojang.serialization.DataResult<? extends Registry<E>>
RegistryLoader.LoaderAccess.load
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> codec, com.mojang.serialization.DynamicOps<JsonElement> ops) <E> com.mojang.serialization.DataResult<RegistryEntry<E>>
RegistryLoader.LoaderAccess.load
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> codec, RegistryKey<E> entryKey, com.mojang.serialization.DynamicOps<JsonElement> ops) 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) ModifierConstructorDescriptionprivate
RegistryElementCodec
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec, boolean allowInlineDefinitions) -
Uses of Registry in net.minecraft.util.registry
Modifier and TypeClassDescriptionclass
class
class
Modifier and TypeFieldDescriptionRegistry.ACTIVITY
static final Registry<EntityAttribute>
Registry.ATTRIBUTE
static final Registry<BannerPattern>
Registry.BANNER_PATTERN
BuiltinRegistries.BIOME
static final Registry<com.mojang.serialization.Codec<? extends BiomeSource>>
Registry.BIOME_SOURCE
static final Registry<BlockEntityType<?>>
Registry.BLOCK_ENTITY_TYPE
static final Registry<BlockPredicateType<?>>
Registry.BLOCK_PREDICATE_TYPE
static final Registry<BlockStateProviderType<?>>
Registry.BLOCK_STATE_PROVIDER_TYPE
Registry.CARVER
static final Registry<CatVariant>
Registry.CAT_VARIANT
static final Registry<com.mojang.serialization.Codec<? extends ChunkGenerator>>
Registry.CHUNK_GENERATOR
static final Registry<ChunkGeneratorSettings>
BuiltinRegistries.CHUNK_GENERATOR_SETTINGS
static final Registry<ArgumentSerializer<?,
?>> Registry.COMMAND_ARGUMENT_TYPE
static final Registry<ConfiguredCarver<?>>
BuiltinRegistries.CONFIGURED_CARVER
static final Registry<ConfiguredFeature<?,
?>> BuiltinRegistries.CONFIGURED_FEATURE
static final Registry<Identifier>
Registry.CUSTOM_STAT
static final Registry<DensityFunction>
BuiltinRegistries.DENSITY_FUNCTION
static final Registry<com.mojang.serialization.Codec<? extends DensityFunction>>
Registry.DENSITY_FUNCTION_TYPE
static final Registry<DimensionType>
BuiltinRegistries.DIMENSION_TYPE
static final Registry<Enchantment>
Registry.ENCHANTMENT
Registry.FEATURE
static final Registry<FeatureSizeType<?>>
Registry.FEATURE_SIZE_TYPE
static final Registry<FlatLevelGeneratorPreset>
BuiltinRegistries.FLAT_LEVEL_GENERATOR_PRESET
static final Registry<FloatProviderType<?>>
Registry.FLOAT_PROVIDER_TYPE
static final Registry<FoliagePlacerType<?>>
Registry.FOLIAGE_PLACER_TYPE
static final Registry<FrogVariant>
Registry.FROG_VARIANT
static final Registry<HeightProviderType<?>>
Registry.HEIGHT_PROVIDER_TYPE
static final Registry<Instrument>
Registry.INSTRUMENT
static final Registry<IntProviderType<?>>
Registry.INT_PROVIDER_TYPE
static final Registry<LootConditionType>
Registry.LOOT_CONDITION_TYPE
static final Registry<LootFunctionType>
Registry.LOOT_FUNCTION_TYPE
static final Registry<LootNbtProviderType>
Registry.LOOT_NBT_PROVIDER_TYPE
static final Registry<LootNumberProviderType>
Registry.LOOT_NUMBER_PROVIDER_TYPE
static final Registry<LootPoolEntryType>
Registry.LOOT_POOL_ENTRY_TYPE
static final Registry<LootScoreProviderType>
Registry.LOOT_SCORE_PROVIDER_TYPE
static final Registry<com.mojang.serialization.Codec<? extends MaterialRules.MaterialCondition>>
Registry.MATERIAL_CONDITION
static final Registry<com.mojang.serialization.Codec<? extends MaterialRules.MaterialRule>>
Registry.MATERIAL_RULE
static final Registry<MessageType>
BuiltinRegistries.MESSAGE_TYPE
static final Registry<DoublePerlinNoiseSampler.NoiseParameters>
BuiltinRegistries.NOISE_PARAMETERS
static final Registry<ParticleType<?>>
Registry.PARTICLE_TYPE
static final Registry<PlacedFeature>
BuiltinRegistries.PLACED_FEATURE
static final Registry<PlacementModifierType<?>>
Registry.PLACEMENT_MODIFIER_TYPE
static final Registry<PointOfInterestType>
Registry.POINT_OF_INTEREST_TYPE
static final Registry<PosRuleTestType<?>>
Registry.POS_RULE_TEST
static final Registry<PositionSourceType<?>>
Registry.POSITION_SOURCE_TYPE
static final Registry<RecipeSerializer<?>>
Registry.RECIPE_SERIALIZER
static final Registry<RecipeType<?>>
Registry.RECIPE_TYPE
BuiltinRegistries.REGISTRIES
Registry.REGISTRIES
RegistryEntry.Reference.registry
RegistryEntryList.Named.registry
static final Registry<RootPlacerType<?>>
Registry.ROOT_PLACER_TYPE
static final Registry<RuleTestType<?>>
Registry.RULE_TEST
Registry.SCHEDULE
static final Registry<ScreenHandlerType<?>>
Registry.SCREEN_HANDLER
static final Registry<SoundEvent>
Registry.SOUND_EVENT
Registry.STAT_TYPE
static final Registry<StatusEffect>
Registry.STATUS_EFFECT
BuiltinRegistries.STRUCTURE
static final Registry<StructurePieceType>
Registry.STRUCTURE_PIECE
static final Registry<StructurePlacementType<?>>
Registry.STRUCTURE_PLACEMENT
static final Registry<StructurePool>
BuiltinRegistries.STRUCTURE_POOL
static final Registry<StructurePoolElementType<?>>
Registry.STRUCTURE_POOL_ELEMENT
static final Registry<StructureProcessorType<?>>
Registry.STRUCTURE_PROCESSOR
static final Registry<StructureProcessorList>
BuiltinRegistries.STRUCTURE_PROCESSOR_LIST
static final Registry<StructureSet>
BuiltinRegistries.STRUCTURE_SET
static final Registry<StructureType<?>>
Registry.STRUCTURE_TYPE
static final Registry<TreeDecoratorType<?>>
Registry.TREE_DECORATOR_TYPE
static final Registry<TrunkPlacerType<?>>
Registry.TRUNK_PLACER_TYPE
DynamicRegistryManager.Entry.value
The field for thevalue
record component.static final Registry<WorldPreset>
BuiltinRegistries.WORLD_PRESET
Modifier and TypeFieldDescriptionstatic final RegistryKey<Registry<Activity>>
Registry.ACTIVITY_KEY
static final RegistryKey<Registry<EntityAttribute>>
Registry.ATTRIBUTE_KEY
static final RegistryKey<Registry<BannerPattern>>
Registry.BANNER_PATTERN_KEY
static final RegistryKey<Registry<Biome>>
Registry.BIOME_KEY
static final RegistryKey<Registry<com.mojang.serialization.Codec<? extends BiomeSource>>>
Registry.BIOME_SOURCE_KEY
static final RegistryKey<Registry<BlockEntityType<?>>>
Registry.BLOCK_ENTITY_TYPE_KEY
static final RegistryKey<Registry<Block>>
Registry.BLOCK_KEY
static final RegistryKey<Registry<BlockPredicateType<?>>>
Registry.BLOCK_PREDICATE_TYPE_KEY
static final RegistryKey<Registry<BlockStateProviderType<?>>>
Registry.BLOCK_STATE_PROVIDER_TYPE_KEY
static final RegistryKey<Registry<Carver<?>>>
Registry.CARVER_KEY
static final RegistryKey<Registry<CatVariant>>
Registry.CAT_VARIANT_KEY
static final RegistryKey<Registry<com.mojang.serialization.Codec<? extends ChunkGenerator>>>
Registry.CHUNK_GENERATOR_KEY
static final RegistryKey<Registry<ChunkGeneratorSettings>>
Registry.CHUNK_GENERATOR_SETTINGS_KEY
static final RegistryKey<Registry<ChunkStatus>>
Registry.CHUNK_STATUS_KEY
static final RegistryKey<Registry<ArgumentSerializer<?,
?>>> Registry.COMMAND_ARGUMENT_TYPE_KEY
static final RegistryKey<Registry<ConfiguredCarver<?>>>
Registry.CONFIGURED_CARVER_KEY
static final RegistryKey<Registry<ConfiguredFeature<?,
?>>> Registry.CONFIGURED_FEATURE_KEY
static final RegistryKey<Registry<Identifier>>
Registry.CUSTOM_STAT_KEY
static final RegistryKey<Registry<DensityFunction>>
Registry.DENSITY_FUNCTION_KEY
static final RegistryKey<Registry<com.mojang.serialization.Codec<? extends DensityFunction>>>
Registry.DENSITY_FUNCTION_TYPE_KEY
static final RegistryKey<Registry<DimensionOptions>>
Registry.DIMENSION_KEY
A registry key representing theDimensionOptions
type.static final RegistryKey<Registry<DimensionType>>
Registry.DIMENSION_TYPE_KEY
static final RegistryKey<Registry<Enchantment>>
Registry.ENCHANTMENT_KEY
static final RegistryKey<Registry<EntityType<?>>>
Registry.ENTITY_TYPE_KEY
static final RegistryKey<Registry<Feature<?>>>
Registry.FEATURE_KEY
static final RegistryKey<Registry<FeatureSizeType<?>>>
Registry.FEATURE_SIZE_TYPE_KEY
static final RegistryKey<Registry<FlatLevelGeneratorPreset>>
Registry.FLAT_LEVEL_GENERATOR_PRESET_KEY
static final RegistryKey<Registry<FloatProviderType<?>>>
Registry.FLOAT_PROVIDER_TYPE_KEY
static final RegistryKey<Registry<Fluid>>
Registry.FLUID_KEY
static final RegistryKey<Registry<FoliagePlacerType<?>>>
Registry.FOLIAGE_PLACER_TYPE_KEY
static final RegistryKey<Registry<FrogVariant>>
Registry.FROG_VARIANT_KEY
static final RegistryKey<Registry<GameEvent>>
Registry.GAME_EVENT_KEY
static final RegistryKey<Registry<HeightProviderType<?>>>
Registry.HEIGHT_PROVIDER_TYPE_KEY
static final Map<RegistryKey<? extends Registry<?>>,
DynamicRegistryManager.Info<?>> DynamicRegistryManager.INFOS
static final RegistryKey<Registry<Instrument>>
Registry.INSTRUMENT_KEY
static final RegistryKey<Registry<IntProviderType<?>>>
Registry.INT_PROVIDER_TYPE_KEY
static final RegistryKey<Registry<Item>>
Registry.ITEM_KEY
private final RegistryKey<? extends Registry<T>>
DynamicRegistryManager.Entry.key
The field for thekey
record component.static final RegistryKey<Registry<LootConditionType>>
Registry.LOOT_CONDITION_TYPE_KEY
static final RegistryKey<Registry<LootFunctionType>>
Registry.LOOT_FUNCTION_TYPE_KEY
static final RegistryKey<Registry<LootNbtProviderType>>
Registry.LOOT_NBT_PROVIDER_TYPE_KEY
static final RegistryKey<Registry<LootNumberProviderType>>
Registry.LOOT_NUMBER_PROVIDER_TYPE_KEY
static final RegistryKey<Registry<LootPoolEntryType>>
Registry.LOOT_POOL_ENTRY_TYPE_KEY
static final RegistryKey<Registry<LootScoreProviderType>>
Registry.LOOT_SCORE_PROVIDER_TYPE_KEY
static final RegistryKey<Registry<com.mojang.serialization.Codec<? extends MaterialRules.MaterialCondition>>>
Registry.MATERIAL_CONDITION_KEY
static final RegistryKey<Registry<com.mojang.serialization.Codec<? extends MaterialRules.MaterialRule>>>
Registry.MATERIAL_RULE_KEY
static final RegistryKey<Registry<MemoryModuleType<?>>>
Registry.MEMORY_MODULE_TYPE_KEY
static final RegistryKey<Registry<ScreenHandlerType<?>>>
Registry.MENU_KEY
static final RegistryKey<Registry<MessageType>>
Registry.MESSAGE_TYPE_KEY
static final RegistryKey<Registry<StatusEffect>>
Registry.MOB_EFFECT_KEY
private final Map<? extends RegistryKey<? extends Registry<?>>,
? extends MutableRegistry<?>> DynamicRegistryManager.MutableImpl.mutableRegistries
static final RegistryKey<Registry<DoublePerlinNoiseSampler.NoiseParameters>>
Registry.NOISE_KEY
static final RegistryKey<Registry<PaintingVariant>>
Registry.PAINTING_VARIANT_KEY
static final RegistryKey<Registry<ParticleType<?>>>
Registry.PARTICLE_TYPE_KEY
static final RegistryKey<Registry<PlacedFeature>>
Registry.PLACED_FEATURE_KEY
static final RegistryKey<Registry<PlacementModifierType<?>>>
Registry.PLACEMENT_MODIFIER_TYPE_KEY
static final RegistryKey<Registry<PointOfInterestType>>
Registry.POINT_OF_INTEREST_TYPE_KEY
static final RegistryKey<Registry<PosRuleTestType<?>>>
Registry.POS_RULE_TEST_KEY
static final RegistryKey<Registry<PositionSourceType<?>>>
Registry.POSITION_SOURCE_TYPE_KEY
static final RegistryKey<Registry<Potion>>
Registry.POTION_KEY
static final RegistryKey<Registry<RecipeSerializer<?>>>
Registry.RECIPE_SERIALIZER_KEY
static final RegistryKey<Registry<RecipeType<?>>>
Registry.RECIPE_TYPE_KEY
private final Map<? extends RegistryKey<? extends Registry<?>>,
? extends Registry<?>> DynamicRegistryManager.ImmutableImpl.registries
private final Map<? extends RegistryKey<? extends Registry<?>>,
? extends Registry<?>> DynamicRegistryManager.ImmutableImpl.registries
BuiltinRegistries.REGISTRIES
Registry.REGISTRIES
private final RegistryKey<? extends Registry<E>>
DynamicRegistryManager.Info.registry
The field for theregistry
record component.private final RegistryKey<? extends Registry<E>>
RegistryEntryListCodec.registry
private final RegistryKey<? extends Registry<E>>
RegistryFixedCodec.registry
private final RegistryKey<? extends Registry<T>>
Registry.registryKey
The key representing the type of elements held by this registry.static final RegistryKey<Registry<RootPlacerType<?>>>
Registry.ROOT_PLACER_TYPE_KEY
static final RegistryKey<Registry<RuleTestType<?>>>
Registry.RULE_TEST_KEY
static final RegistryKey<Registry<Schedule>>
Registry.SCHEDULE_KEY
static final RegistryKey<Registry<SensorType<?>>>
Registry.SENSOR_TYPE_KEY
static final RegistryKey<Registry<SoundEvent>>
Registry.SOUND_EVENT_KEY
static final RegistryKey<Registry<StatType<?>>>
Registry.STAT_TYPE_KEY
static final RegistryKey<Registry<Structure>>
Registry.STRUCTURE_KEY
static final RegistryKey<Registry<StructurePieceType>>
Registry.STRUCTURE_PIECE_KEY
static final RegistryKey<Registry<StructurePlacementType<?>>>
Registry.STRUCTURE_PLACEMENT_KEY
static final RegistryKey<Registry<StructurePoolElementType<?>>>
Registry.STRUCTURE_POOL_ELEMENT_KEY
static final RegistryKey<Registry<StructurePool>>
Registry.STRUCTURE_POOL_KEY
static final RegistryKey<Registry<StructureProcessorType<?>>>
Registry.STRUCTURE_PROCESSOR_KEY
static final RegistryKey<Registry<StructureProcessorList>>
Registry.STRUCTURE_PROCESSOR_LIST_KEY
static final RegistryKey<Registry<StructureSet>>
Registry.STRUCTURE_SET_KEY
static final RegistryKey<Registry<StructureType<?>>>
Registry.STRUCTURE_TYPE_KEY
static final RegistryKey<Registry<TreeDecoratorType<?>>>
Registry.TREE_DECORATOR_TYPE_KEY
static final RegistryKey<Registry<TrunkPlacerType<?>>>
Registry.TRUNK_PLACER_TYPE_KEY
static final RegistryKey<Registry<VillagerProfession>>
Registry.VILLAGER_PROFESSION_KEY
static final RegistryKey<Registry<VillagerType>>
Registry.VILLAGER_TYPE_KEY
static final RegistryKey<Registry<World>>
Registry.WORLD_KEY
A registry key representing theWorld
type.static final RegistryKey<Registry<WorldPreset>>
Registry.WORLD_PRESET_KEY
Modifier and TypeMethodDescriptionprivate static <K extends RegistryKey<? extends Registry<?>>,
V extends Registry<?>>
com.mojang.serialization.Codec<DynamicRegistryManager>DynamicRegistryManager.createCodec
(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> originalCodec) private static <K extends RegistryKey<? extends Registry<?>>,
V extends Registry<?>>
com.mojang.serialization.Codec<DynamicRegistryManager>DynamicRegistryManager.createCodec
(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> originalCodec) private static <T,
R extends Registry<? extends T>>
DynamicRegistryManager.Entry<T>DynamicRegistryManager.Entry.of
(Map.Entry<? extends RegistryKey<? extends Registry<?>>, R> entry) static <T extends Registry<?>>
voidModifier and TypeMethodDescriptionprivate static <T> Registry<T>
BuiltinRegistries.addRegistry
(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, BuiltinRegistries.Initializer<T> initializer) private static <T> Registry<T>
BuiltinRegistries.addRegistry
(RegistryKey<? extends Registry<T>> registryRef, BuiltinRegistries.Initializer<T> initializer) private static <T> Registry<T>
Registry.create
(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, Function<T, RegistryEntry.Reference<T>> valueToEntryFunction, Registry.DefaultEntryGetter<T> defaultEntryGetter) private static <T> Registry<T>
Registry.create
(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, Registry.DefaultEntryGetter<T> defaultEntryGetter) private static <T> Registry<T>
Registry.create
(RegistryKey<? extends Registry<T>> key, Registry.DefaultEntryGetter<T> defaultEntryGetter) static <E> Registry<E>
DynamicRegistryManager.createRegistry
(RegistryKey<? extends Registry<? extends E>> registryRef, com.mojang.serialization.Dynamic<?> dynamic) Registry.freeze()
SimpleRegistry.freeze()
default <E> Registry<E>
DynamicRegistryManager.get
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry from this manager orREGISTRIES
, or throws an exception when the registry does not exist.default <E> Registry<E>
DynamicRegistryManager.getManaged
(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 TypeMethodDescriptionprivate static Map<RegistryKey<? extends Registry<?>>,
? extends MutableRegistry<?>> DynamicRegistryManager.createMutableRegistries()
static <T> com.mojang.serialization.Codec<Registry<T>>
RegistryCodecs.createRegistryCodec
(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<T> elementCodec) private static <E> com.mojang.serialization.Decoder<Registry<E>>
RegistryCodecs.createRegistryDecoder
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> codec, com.mojang.serialization.Decoder<Map<RegistryKey<E>, E>> entryMapDecoder, com.mojang.serialization.Lifecycle lifecycle) private static <T> RegistryKey<Registry<T>>
Registry.createRegistryKey
(String registryId) static <E> com.mojang.serialization.Codec<Registry<E>>
RegistryCodecs.dynamicRegistry
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<E> elementCodec) RegistryKey<? extends Registry<T>>
Registry.getKey()
DynamicRegistryManager.getOptional
(RegistryKey<? extends Registry<? extends E>> key) DynamicRegistryManager.getOptionalManaged
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry optionally from this manager.DynamicRegistryManager.ImmutableImpl.getOptionalManaged
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry optionally from this manager.DynamicRegistryManager.MutableImpl.getOptionalManaged
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry optionally from this manager.RegistryKey<? extends Registry<T>>
DynamicRegistryManager.Entry.key()
Returns the value of thekey
record component.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.RegistryKey<? extends Registry<E>>
DynamicRegistryManager.Info.registry()
Returns the value of theregistry
record component.Modifier and TypeMethodDescriptionstatic <T> RegistryEntry<T>
static <T> RegistryEntry<T>
BuiltinRegistries.add
(Registry<T> registry, Identifier id, T object) static <T> RegistryEntry<T>
BuiltinRegistries.add
(Registry<T> registry, RegistryKey<T> key, T object) static <V extends T,
T>
RegistryEntry<V>static <T> RegistryEntry.Reference<T>
Deprecated.boolean
boolean
boolean
boolean
RegistryEntry.Direct.matchesRegistry
(Registry<T> registry) boolean
RegistryEntry.matchesRegistry
(Registry<T> registry) boolean
RegistryEntry.Reference.matchesRegistry
(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>
Tstatic <V,
T extends V>
TRegistry.register
(Registry<V> registry, Identifier id, T entry) static <V,
T extends V>
TRegistry.register
(Registry<V> registry, RegistryKey<V> key, T entry) RegistryEntry<? extends T>
static <T> RegistryEntry.Reference<T>
RegistryEntry.Reference.standAlone
(Registry<T> registry, RegistryKey<T> registryKey) static <T extends Registry<?>>
voidModifier and TypeMethodDescriptionprivate static <T> Registry<T>
BuiltinRegistries.addRegistry
(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, BuiltinRegistries.Initializer<T> initializer) private static <T> Registry<T>
BuiltinRegistries.addRegistry
(RegistryKey<? extends Registry<T>> registryRef, BuiltinRegistries.Initializer<T> initializer) private static <T,
R extends MutableRegistry<T>>
RBuiltinRegistries.addRegistry
(RegistryKey<? extends Registry<T>> registryRef, R registry, BuiltinRegistries.Initializer<T> initializer, com.mojang.serialization.Lifecycle lifecycle) private static <T> Registry<T>
Registry.create
(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, Function<T, RegistryEntry.Reference<T>> valueToEntryFunction, Registry.DefaultEntryGetter<T> defaultEntryGetter) private static <T> Registry<T>
Registry.create
(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, Registry.DefaultEntryGetter<T> defaultEntryGetter) private static <T> DefaultedRegistry<T>
Registry.create
(RegistryKey<? extends Registry<T>> key, String defaultId, com.mojang.serialization.Lifecycle lifecycle, Function<T, RegistryEntry.Reference<T>> valueToEntryFunction, Registry.DefaultEntryGetter<T> defaultEntryGetter) private static <T> DefaultedRegistry<T>
Registry.create
(RegistryKey<? extends Registry<T>> key, String defaultId, com.mojang.serialization.Lifecycle lifecycle, Registry.DefaultEntryGetter<T> defaultEntryGetter) private static <T> DefaultedRegistry<T>
Registry.create
(RegistryKey<? extends Registry<T>> key, String defaultId, Function<T, RegistryEntry.Reference<T>> valueToEntryFunction, Registry.DefaultEntryGetter<T> defaultEntryGetter) private static <T> DefaultedRegistry<T>
Registry.create
(RegistryKey<? extends Registry<T>> key, String defaultId, Registry.DefaultEntryGetter<T> defaultEntryGetter) private static <T> Registry<T>
Registry.create
(RegistryKey<? extends Registry<T>> key, Registry.DefaultEntryGetter<T> defaultEntryGetter) private static <T,
R extends MutableRegistry<T>>
RRegistry.create
(RegistryKey<? extends Registry<T>> key, R registry, Registry.DefaultEntryGetter<T> defaultEntryGetter, com.mojang.serialization.Lifecycle lifecycle) static <E> com.mojang.serialization.Codec<RegistryEntryList<E>>
RegistryEntryListCodec.create
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<RegistryEntry<E>> entryCodec, boolean alwaysSerializeAsList) static <T> com.mojang.serialization.Codec<RegistryKey<T>>
RegistryKey.createCodec
(RegistryKey<? extends Registry<T>> registry) static <E> Registry<E>
DynamicRegistryManager.createRegistry
(RegistryKey<? extends Registry<? extends E>> registryRef, com.mojang.serialization.Dynamic<?> dynamic) static <T> com.mojang.serialization.Codec<Registry<T>>
RegistryCodecs.createRegistryCodec
(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<T> elementCodec) private static <E> com.mojang.serialization.Decoder<Registry<E>>
RegistryCodecs.createRegistryDecoder
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> codec, com.mojang.serialization.Decoder<Map<RegistryKey<E>, E>> entryMapDecoder, com.mojang.serialization.Lifecycle lifecycle) static <E> MutableRegistry<?>
DynamicRegistryManager.createSimpleRegistry
(RegistryKey<? extends Registry<?>> registryRef) static <E> com.mojang.serialization.Codec<Registry<E>>
RegistryCodecs.dynamicRegistry
(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<E> elementCodec) 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) default <E> Registry<E>
DynamicRegistryManager.get
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry from this manager orREGISTRIES
, or throws an exception when the registry does not exist.default <E> Registry<E>
DynamicRegistryManager.getManaged
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry from this manager, or throws an exception when the registry does not exist.default <E> MutableRegistry<E>
DynamicRegistryManager.Mutable.getMutable
(RegistryKey<? extends Registry<? extends E>> key) private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>>
DynamicRegistryManager.getNetworkEntryCodec
(RegistryKey<? extends Registry<E>> registryKey) DynamicRegistryManager.getOptional
(RegistryKey<? extends Registry<? extends E>> key) DynamicRegistryManager.getOptionalManaged
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry optionally from this manager.DynamicRegistryManager.ImmutableImpl.getOptionalManaged
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry optionally from this manager.DynamicRegistryManager.MutableImpl.getOptionalManaged
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry optionally from this manager.<E> Optional<MutableRegistry<E>>
DynamicRegistryManager.Mutable.getOptionalMutable
(RegistryKey<? extends Registry<? extends E>> key) <E> Optional<MutableRegistry<E>>
DynamicRegistryManager.MutableImpl.getOptionalMutable
(RegistryKey<? extends Registry<? extends E>> key) 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).private static <T> com.mojang.serialization.MapCodec<RegistryCodecs.RegistryManagerEntry<T>>
RegistryCodecs.managerEntry
(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.MapCodec<T> elementCodec) 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
(RegistryEntry.Reference<? extends Registry<? extends T>> entry) private static <T> DynamicRegistryManager.Entry<T>
DynamicRegistryManager.Entry.of
(RegistryKey<? extends Registry<?>> key, Registry<?> value) static <E> RegistryFixedCodec<E>
RegistryFixedCodec.of
(RegistryKey<? extends Registry<E>> registry) 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 <E> void
DynamicRegistryManager.register
(ImmutableMap.Builder<RegistryKey<? extends Registry<?>>, DynamicRegistryManager.Info<?>> infosBuilder, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> entryCodec) private static <E> void
DynamicRegistryManager.register
(ImmutableMap.Builder<RegistryKey<? extends Registry<?>>, DynamicRegistryManager.Info<?>> infosBuilder, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> entryCodec) private static <E> void
DynamicRegistryManager.register
(ImmutableMap.Builder<RegistryKey<? extends Registry<?>>, DynamicRegistryManager.Info<?>> infosBuilder, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> entryCodec, com.mojang.serialization.Codec<E> networkEntryCodec) private static <E> void
DynamicRegistryManager.register
(ImmutableMap.Builder<RegistryKey<? extends Registry<?>>, DynamicRegistryManager.Info<?>> infosBuilder, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> entryCodec, com.mojang.serialization.Codec<E> networkEntryCodec) private static <T> com.mojang.serialization.Codec<Map<RegistryKey<T>,
T>> RegistryCodecs.registryMap
(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Codec<T> elementCodec) <E> Optional<RegistryKey<E>>
RegistryKey.tryCast
(RegistryKey<? extends Registry<E>> registryRef) ModifierConstructorDescription(package private)
private
Reference
(RegistryEntry.Reference.Type referenceType, Registry<T> registry, @Nullable RegistryKey<T> registryKey, T value) ModifierConstructorDescriptionDefaultedRegistry
(String defaultId, RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, @Nullable Function<T, RegistryEntry.Reference<T>> valueToEntryFunction) ImmutableImpl
(Map<? extends RegistryKey<? extends Registry<?>>, ? extends Registry<?>> registries) ImmutableImpl
(Map<? extends RegistryKey<? extends Registry<?>>, ? extends Registry<?>> registries) Info
(RegistryKey<? extends Registry<E>> registry, com.mojang.serialization.Codec<E> entryCodec, @Nullable com.mojang.serialization.Codec<E> networkEntryCodec) Creates an instance of aInfo
record class.(package private)
MutableImpl
(Map<? extends RegistryKey<? extends Registry<?>>, ? extends MutableRegistry<?>> mutableRegistries) MutableRegistry
(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) protected
Registry
(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) private
RegistryEntryListCodec
(RegistryKey<? extends Registry<E>> registry, com.mojang.serialization.Codec<RegistryEntry<E>> entryCodec, boolean alwaysSerializeAsList) private
RegistryFixedCodec
(RegistryKey<? extends Registry<E>> registry) SimpleRegistry
(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, @Nullable Function<T, RegistryEntry.Reference<T>> valueToEntryFunction) -
Uses of Registry in net.minecraft.world
Modifier and TypeFieldDescriptionStructureLocator.biomeRegistry
StructureLocator.structureRegistry
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec<class_7522<RegistryEntry<Biome>>>
ChunkSerializer.createCodec
(Registry<Biome> biomeRegistry) -
Uses of Registry in net.minecraft.world.biome
Modifier and TypeMethodDescriptionstatic RegistryEntry<Biome>
BuiltinBiomes.getDefaultBiome
(Registry<Biome> registry) -
Uses of Registry in net.minecraft.world.biome.source
Modifier and TypeFieldDescriptionMultiNoiseBiomeSource.Instance.biomeRegistry
The field for thebiomeRegistry
record component.Modifier and TypeFieldDescriptionprivate final Function<Registry<Biome>,
MultiNoiseUtil.Entries<RegistryEntry<Biome>>> MultiNoiseBiomeSource.Preset.biomeSourceFunction
Modifier and TypeMethodDescriptionMultiNoiseBiomeSource.Instance.biomeRegistry()
Returns the value of thebiomeRegistry
record component.Modifier and TypeMethodDescriptionMultiNoiseBiomeSource.Preset.getBiomeSource
(Registry<Biome> biomeRegistry) MultiNoiseBiomeSource.Preset.getBiomeSource
(Registry<Biome> biomeRegistry, boolean useInstance) static com.mojang.serialization.Codec<? extends BiomeSource>
BiomeSources.registerAndGetDefault
(Registry<com.mojang.serialization.Codec<? extends BiomeSource>> registry) ModifierConstructorDescription(package private)
Instance
(MultiNoiseBiomeSource.Preset preset, Registry<Biome> biomeRegistry) Creates an instance of aInstance
record class.TheEndBiomeSource
(Registry<Biome> biomeRegistry) ModifierConstructorDescriptionPreset
(Identifier id, Function<Registry<Biome>, MultiNoiseUtil.Entries<RegistryEntry<Biome>>> biomeSourceFunction) -
Uses of Registry in net.minecraft.world.chunk
Modifier and TypeMethodDescriptionprivate static void
Chunk.fillSectionArray
(HeightLimitView world, Registry<Biome> biome, ChunkSection[] sectionArray) ModifierConstructorDescriptionChunk
(ChunkPos pos, UpgradeData upgradeData, HeightLimitView heightLimitView, Registry<Biome> biome, long inhabitedTime, @Nullable ChunkSection[] sectionArrayInitializer, @Nullable BlendingData blendingData) ChunkSection
(int chunkPos, 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 TypeMethodDescriptionstatic Registry<DimensionOptions>
DimensionOptions.createRegistry
(Registry<DimensionOptions> registry) Modifier and TypeMethodDescriptionstatic Registry<DimensionOptions>
DimensionOptions.createRegistry
(Registry<DimensionOptions> registry) static boolean
DimensionOptions.hasDefaultSettings
(Registry<DimensionOptions> registry) static RegistryEntry<DimensionType>
DimensionTypeRegistrar.initAndGetDefault
(Registry<DimensionType> registry) -
Uses of Registry in net.minecraft.world.gen
Modifier and TypeFieldDescriptionFlatLevelGeneratorPresets.Registrar.biomeRegistry
WorldPresets.Registrar.biomeRegistry
private final Registry<ChunkGeneratorSettings>
WorldPresets.Registrar.chunkGeneratorSettingsRegistry
private final Registry<DimensionType>
WorldPresets.Registrar.dimensionTypeRegistry
private final Registry<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.Registrar.flatLevelGeneratorPresetRegistry
private final Registry<DoublePerlinNoiseSampler.NoiseParameters>
WorldPresets.Registrar.noiseParametersRegistry
private final Registry<DimensionOptions>
GeneratorOptions.options
private final Registry<StructureSet>
FlatLevelGeneratorPresets.Registrar.structureSetRegistry
private final Registry<StructureSet>
WorldPresets.Registrar.structureSetRegistry
private final Registry<WorldPreset>
WorldPresets.Registrar.worldPresetRegistry
Modifier and TypeMethodDescriptionprivate Registry<DimensionOptions>
WorldPreset.createDimensionOptionsRegistry()
GeneratorOptions.getDimensions()
static Registry<DimensionOptions>
GeneratorOptions.getRegistryWithReplacedOverworld
(Registry<DimensionOptions> options, RegistryEntry<DimensionType> dimensionType, ChunkGenerator overworldGenerator) static Registry<DimensionOptions>
GeneratorOptions.getRegistryWithReplacedOverworldGenerator
(Registry<DimensionType> dimensionTypeRegistry, Registry<DimensionOptions> options, ChunkGenerator overworldGenerator) Modifier and TypeMethodDescriptionstatic Registry<DimensionOptions>
GeneratorOptions.getRegistryWithReplacedOverworld
(Registry<DimensionOptions> options, RegistryEntry<DimensionType> dimensionType, ChunkGenerator overworldGenerator) static Registry<DimensionOptions>
GeneratorOptions.getRegistryWithReplacedOverworldGenerator
(Registry<DimensionType> dimensionTypeRegistry, Registry<DimensionOptions> options, ChunkGenerator overworldGenerator) FlatLevelGeneratorPresets.initAndGetDefault
(Registry<FlatLevelGeneratorPreset> registry) static RegistryEntry<WorldPreset>
WorldPresets.initAndGetDefault
(Registry<WorldPreset> registry) ModifierConstructorDescriptionGeneratorOptions
(long seed, boolean generateStructures, boolean bonusChest, Registry<DimensionOptions> options) private
GeneratorOptions
(long seed, boolean generateStructures, boolean bonusChest, Registry<DimensionOptions> options, Optional<String> legacyCustomOptions) (package private)
Registrar
(Registry<FlatLevelGeneratorPreset> registry) (package private)
Registrar
(Registry<WorldPreset> registry) -
Uses of Registry in net.minecraft.world.gen.chunk
Modifier and TypeFieldDescriptionDebugChunkGenerator.biomeRegistry
FlatChunkGeneratorConfig.biomeRegistry
private final Registry<DoublePerlinNoiseSampler.NoiseParameters>
NoiseChunkGenerator.noiseRegistry
protected final Registry<StructureSet>
ChunkGenerator.structureSetRegistry
Modifier and TypeMethodDescriptionprotected static <T extends ChunkGenerator>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Registry<StructureSet>> ChunkGenerator.createStructureSetRegistryGetter
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) Modifier and TypeMethodDescriptionstatic FlatChunkGeneratorConfig
FlatChunkGeneratorConfig.getDefaultConfig
(Registry<Biome> biomeRegistry, Registry<StructureSet> structureSetRegistry) static RegistryEntry<ChunkGeneratorSettings>
ChunkGeneratorSettings.initAndGetDefault
(Registry<ChunkGeneratorSettings> registry) void
NoiseChunkGenerator.method_41538
(Chunk chunk, HeightContext heightContext, NoiseConfig noiseConfig, StructureAccessor structureAccessor, BiomeAccess biomeAccess, Registry<Biome> registry, Blender blender) ChunkGenerator.populateBiomes
(Registry<Biome> biomeRegistry, Executor executor, NoiseConfig noiseConfig, Blender blender, StructureAccessor structureAccessor, Chunk chunk) NoiseChunkGenerator.populateBiomes
(Registry<Biome> biomeRegistry, Executor executor, NoiseConfig noiseConfig, Blender blender, StructureAccessor structureAccessor, Chunk chunk) private static RegistryEntry<ChunkGeneratorSettings>
ChunkGeneratorSettings.register
(Registry<ChunkGeneratorSettings> registry, RegistryKey<ChunkGeneratorSettings> key, ChunkGeneratorSettings chunkGeneratorSettings) static com.mojang.serialization.Codec<? extends ChunkGenerator>
ChunkGenerators.registerAndGetDefault
(Registry<com.mojang.serialization.Codec<? extends ChunkGenerator>> registry) ModifierConstructorDescriptionChunkGenerator
(Registry<StructureSet> structureSetRegistry, Optional<RegistryEntryList<StructureSet>> structureOverrides, BiomeSource biomeSource) ChunkGenerator
(Registry<StructureSet> structureSetRegistry, Optional<RegistryEntryList<StructureSet>> structureOverrides, BiomeSource biomeSource, Function<RegistryEntry<Biome>, GenerationSettings> generationSettingsGetter) DebugChunkGenerator
(Registry<StructureSet> structureSetRegistry, Registry<Biome> biomeRegistry) FlatChunkGenerator
(Registry<StructureSet> structureSetRegistry, FlatChunkGeneratorConfig config) FlatChunkGeneratorConfig
(Optional<RegistryEntryList<StructureSet>> structureOverrides, Registry<Biome> biomeRegistry) private
FlatChunkGeneratorConfig
(Registry<Biome> biomeRegistry, Optional<RegistryEntryList<StructureSet>> structureOverrides, List<FlatChunkGeneratorLayer> layers, boolean hasLakes, boolean hasFeatures, Optional<RegistryEntry<Biome>> biome) NoiseChunkGenerator
(Registry<StructureSet> structureSetRegistry, Registry<DoublePerlinNoiseSampler.NoiseParameters> noiseRegistry, BiomeSource populationSource, RegistryEntry<ChunkGeneratorSettings> registryEntry) -
Uses of Registry in net.minecraft.world.gen.densityfunction
Modifier and TypeMethodDescriptionprivate static DensityFunction
DensityFunctions.createCavesEntrancesOverworldFunction
(Registry<DensityFunction> registry) protected static NoiseRouter
DensityFunctions.createCavesNoiseRouter
(Registry<DensityFunction> registry) private static DensityFunction
DensityFunctions.createCavesNoodleOverworldFunction
(Registry<DensityFunction> registry) private static DensityFunction
DensityFunctions.createCavesSpaghetti2dOverworldFunction
(Registry<DensityFunction> registry) protected static NoiseRouter
DensityFunctions.createEndNoiseRouter
(Registry<DensityFunction> registry) protected static NoiseRouter
DensityFunctions.createFloatingIslandsNoiseRouter
(Registry<DensityFunction> registry) protected static NoiseRouter
DensityFunctions.createNetherNoiseRouter
(Registry<DensityFunction> registry) protected static NoiseRouter
DensityFunctions.createSurfaceNoiseRouter
(Registry<DensityFunction> registry, boolean bool, boolean bool2) static RegistryEntry<? extends DensityFunction>
DensityFunctions.initAndGetDefault
(Registry<DensityFunction> registry) private static DensityFunction
DensityFunctions.method_41101
(Registry<DensityFunction> registry, DensityFunction densityFunction) private static DensityFunction
DensityFunctions.method_41116
(Registry<DensityFunction> registry, RegistryKey<DensityFunction> registryKey) private static NoiseRouter
DensityFunctions.method_41211
(Registry<DensityFunction> registry, DensityFunction densityFunction) private static void
DensityFunctions.method_41548
(Registry<DensityFunction> registry, DensityFunction densityFunction, RegistryEntry<DensityFunction> registryEntry, RegistryEntry<DensityFunction> registryEntry2, RegistryKey<DensityFunction> registryKey, RegistryKey<DensityFunction> registryKey2, RegistryKey<DensityFunction> registryKey3, RegistryKey<DensityFunction> registryKey4, RegistryKey<DensityFunction> registryKey5, boolean bool) private static DensityFunction
DensityFunctions.method_41551
(Registry<DensityFunction> registry, RegistryKey<DensityFunction> registryKey, DensityFunction densityFunction) private static DensityFunction
DensityFunctions.method_42363
(Registry<DensityFunction> registry, int int2, int int3) private static RegistryEntry<DensityFunction>
DensityFunctions.register
(Registry<DensityFunction> registry, RegistryKey<DensityFunction> key, DensityFunction densityFunction) private static com.mojang.serialization.Codec<? extends DensityFunction>
DensityFunctionTypes.register
(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry, String id, CodecHolder<? extends DensityFunction> codecHolder) static com.mojang.serialization.Codec<? extends DensityFunction>
DensityFunctionTypes.registerAndGetDefault
(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry) -
Uses of Registry in net.minecraft.world.gen.feature
Modifier and TypeMethodDescriptionstatic RegistryEntry<? extends ConfiguredFeature<?,
?>> ConfiguredFeatures.getDefaultConfiguredFeature
(Registry<ConfiguredFeature<?, ?>> registry) static RegistryEntry<PlacedFeature>
PlacedFeatures.getDefaultPlacedFeature
(Registry<PlacedFeature> registry) -
Uses of Registry in net.minecraft.world.gen.noise
Modifier and TypeFieldDescriptionprivate final Registry<DoublePerlinNoiseSampler.NoiseParameters>
NoiseConfig.noiseParametersRegistry
Modifier and TypeMethodDescriptionstatic NoiseConfig
NoiseConfig.create
(ChunkGeneratorSettings chunkGeneratorSettings, Registry<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersRegistry, long legacyWorldSeed) static DoublePerlinNoiseSampler
NoiseParametersKeys.createNoiseSampler
(Registry<DoublePerlinNoiseSampler.NoiseParameters> registry, RandomSplitter randomSplitter, RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> registryKey) BuiltinNoiseParameters.init
(Registry<DoublePerlinNoiseSampler.NoiseParameters> registry) private static void
BuiltinNoiseParameters.register
(Registry<DoublePerlinNoiseSampler.NoiseParameters> registry, int int2, RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> registryKey, RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> registryKey2, RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> registryKey3, RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> registryKey4) private static RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters>
BuiltinNoiseParameters.register
(Registry<DoublePerlinNoiseSampler.NoiseParameters> registry, RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> registryKey, int int2, double double2, double[] double3) ModifierConstructorDescriptionprivate
NoiseConfig
(ChunkGeneratorSettings chunkGeneratorSettings, Registry<DoublePerlinNoiseSampler.NoiseParameters> noiseRegistry, long seed) -
Uses of Registry in net.minecraft.world.gen.structure
Modifier and TypeMethodDescriptionstatic RegistryEntry<? extends Structure>
Structures.getDefault
(Registry<Structure> 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.Codec<? extends A>
MaterialRules.register
(Registry<com.mojang.serialization.Codec<? extends A>> registry, String id, CodecHolder<? extends A> codecHolder) static com.mojang.serialization.Codec<? extends MaterialRules.MaterialCondition>
MaterialRules.MaterialCondition.registerAndGetDefault
(Registry<com.mojang.serialization.Codec<? extends MaterialRules.MaterialCondition>> registry) static com.mojang.serialization.Codec<? extends MaterialRules.MaterialRule>
MaterialRules.MaterialRule.registerAndGetDefault
(Registry<com.mojang.serialization.Codec<? 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.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)