Uses of Class
net.minecraft.util.registry.Registry
Packages that use Registry
Package
Description
-
Uses of Registry in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as RegistryFields in net.minecraft.client.gui.screen with type parameters of type RegistryMethods in net.minecraft.client.gui.screen with parameters of type RegistryModifier and TypeMethodDescription(package private) static StringPresetsScreen.getGeneratorConfigString(Registry<Biome> biomeRegistry, FlatChunkGeneratorConfig generatorConfig) static FlatChunkGeneratorConfigPresetsScreen.parsePresetString(Registry<Biome> biomeRegistry, String preset, FlatChunkGeneratorConfig generatorConfig) Constructor parameters in net.minecraft.client.gui.screen with type arguments of type RegistryModifierConstructorDescriptionSuperflatPreset(Item icon, Text name, Function<Registry<Biome>, FlatChunkGeneratorConfig> generatorConfigProvider) -
Uses of Registry in net.minecraft.data.report
Methods in net.minecraft.data.report with type parameters of type RegistryModifier and TypeMethodDescriptionprivate static <E,T extends Registry<E>>
voidWorldgenListProvider.writeRegistryEntries(Path path, DataCache cache, com.mojang.serialization.DynamicOps<JsonElement> json, RegistryKey<? extends T> registryKey, T registry, com.mojang.serialization.Encoder<E> encoder) Methods in net.minecraft.data.report with parameters of type Registry -
Uses of Registry in net.minecraft.data.server
Fields in net.minecraft.data.server declared as RegistryModifier and TypeFieldDescriptionAbstractTagProvider.ObjectBuilder.registryAbstractTagProvider.registryConstructors in net.minecraft.data.server with parameters of type RegistryModifierConstructorDescriptionprotectedAbstractTagProvider(DataGenerator root, Registry<T> registry) (package private)ObjectBuilder(Tag.Builder builder, Registry<T> registry, String source) -
Uses of Registry in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play with type parameters of type RegistryModifier and TypeFieldDescriptionprivate final Map<RegistryKey<? extends Registry<?>>,TagGroup.Serialized> SynchronizeTagsS2CPacket.groupsMethods in net.minecraft.network.packet.s2c.play that return types with arguments of type RegistryModifier and TypeMethodDescriptionMap<RegistryKey<? extends Registry<?>>,TagGroup.Serialized> SynchronizeTagsS2CPacket.getGroups()Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type RegistryModifierConstructorDescriptionSynchronizeTagsS2CPacket(Map<RegistryKey<? extends Registry<?>>, TagGroup.Serialized> groups) -
Uses of Registry in net.minecraft.stat
Fields in net.minecraft.stat declared as RegistryMethods in net.minecraft.stat that return RegistryMethods in net.minecraft.stat with parameters of type RegistryModifier and TypeMethodDescriptionprivate static <T> StatType<T>Stats.registerType(String id, Registry<T> registry) Constructors in net.minecraft.stat with parameters of type Registry -
Uses of Registry in net.minecraft.structure.pool
Fields in net.minecraft.structure.pool declared as RegistryModifier and TypeFieldDescriptionprivate final Registry<StructurePool>StructurePoolBasedGenerator.StructurePoolGenerator.registryConstructors in net.minecraft.structure.pool with parameters of type RegistryModifierConstructorDescription(package private)StructurePoolGenerator(Registry<StructurePool> registry, int maxSize, StructurePoolBasedGenerator.PieceFactory pieceFactory, ChunkGenerator chunkGenerator, StructureManager structureManager, List<? super PoolStructurePiece> children, Random random) -
Uses of Registry in net.minecraft.tag
Fields in net.minecraft.tag with type parameters of type RegistryModifier and TypeFieldDescriptionprivate final ImmutableMap.Builder<RegistryKey<? extends Registry<?>>,TagGroup<?>> TagManager.Builder.groupsprivate final RegistryKey<? extends Registry<T>>RequiredTagList.registryKeyprivate final Map<RegistryKey<? extends Registry<?>>,TagGroup<?>> TagManager.tagGroupsMethods in net.minecraft.tag that return types with arguments of type RegistryModifier and TypeMethodDescriptionstatic Multimap<RegistryKey<? extends Registry<?>>,Identifier> RequiredTagListRegistry.getMissingTags(TagManager tagManager) RegistryKey<? extends Registry<T>>RequiredTagList.getRegistryKey()Returns the registry key representing the type of object in this list.Map<RegistryKey<? extends Registry<?>>,TagGroup.Serialized> TagManager.toPacket(DynamicRegistryManager registryManager) Methods in net.minecraft.tag with parameters of type RegistryModifier and TypeMethodDescriptionstatic <T> TagGroup<T>TagGroup.deserialize(TagGroup.Serialized serialized, Registry<? extends T> registry) Deserializes a serialized tag group.default TagGroup.SerializedSerializes this tag group.Method parameters in net.minecraft.tag with type arguments of type RegistryModifier and TypeMethodDescriptionTagManager.Builder.add(RegistryKey<? extends Registry<? extends T>> type, TagGroup<T> tagGroup) static TagManagerTagManager.fromPacket(DynamicRegistryManager registryManager, Map<RegistryKey<? extends Registry<?>>, TagGroup.Serialized> groups) <T> TagGroup<T>TagManager.getOrCreateTagGroup(RegistryKey<? extends Registry<T>> registryKey) TagManager.getTag(RegistryKey<? extends Registry<T>> registryKey, Identifier id, Function<Identifier, E> exceptionFactory) TagManager.getTagGroup(RegistryKey<? extends Registry<T>> registryKey) <T,E extends Exception>
IdentifierTagManager.getTagId(RegistryKey<? extends Registry<T>> registryKey, Tag<T> tag, Supplier<E> exceptionSupplier) private static <T> voidTagManager.offerTo(TagManager.Visitor visitor, RegistryKey<? extends Registry<?>> type, TagGroup<?> group) static <T> RequiredTagList<T>RequiredTagListRegistry.register(RegistryKey<? extends Registry<T>> registryKey, String dataType) Creates and registers a required tag list.private static <T> voidTagManager.tryAdd(DynamicRegistryManager registryManager, TagManager.Builder builder, RegistryKey<? extends Registry<? extends T>> type, TagGroup.Serialized group) <T> voidTagManager.Visitor.visit(RegistryKey<? extends Registry<T>> type, TagGroup<T> group) Constructor parameters in net.minecraft.tag with type arguments of type RegistryModifierConstructorDescriptionRequiredTagList(RegistryKey<? extends Registry<T>> registryKey, String dataType) (package private)TagManager(Map<RegistryKey<? extends Registry<?>>, TagGroup<?>> tagGroups) -
Uses of Registry in net.minecraft.test
Constructors in net.minecraft.test with parameters of type RegistryModifierConstructorDescriptionprivateTestServer(Thread serverThread, LevelStorage.Session session, ResourcePackManager dataPackManager, ServerResourceManager serverResourceManager, Collection<GameTestBatch> batches, BlockPos pos, DynamicRegistryManager.Impl registryManager, Registry<Biome> biomeRegistry, Registry<DimensionType> dimensionTypeRegistry) -
Uses of Registry in net.minecraft.util
Fields in net.minecraft.util declared as RegistryModifier and TypeFieldDescriptionJsonSerializing.GsonSerializer.registryJsonSerializing.SerializerBuilder.registryMethods in net.minecraft.util with parameters of type RegistryModifier and TypeMethodDescriptionstatic <E,T extends JsonSerializableType<E>>
JsonSerializing.SerializerBuilder<E,T> JsonSerializing.createSerializerBuilder(Registry<T> registry, String rootFieldName, String idFieldName, Function<E, T> typeGetter) Constructors in net.minecraft.util with parameters of type RegistryModifierConstructorDescription(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
Fields in net.minecraft.util.dynamic with type parameters of type RegistryModifier and TypeFieldDescriptionprivate final RegistryKey<? extends Registry<E>>RegistryLookupCodec.registryKeyprivate final RegistryKey<? extends Registry<E>>RegistryCodec.registryRefprivate final RegistryKey<? extends Registry<E>>RegistryElementCodec.registryRefprivate final Map<RegistryKey<? extends Registry<?>>,RegistryOps.ValueHolder<?>> RegistryOps.valueHoldersMethods in net.minecraft.util.dynamic that return types with arguments of type RegistryModifier and TypeMethodDescriptionRegistryLookupCodec.decode(com.mojang.serialization.DynamicOps<T> dynamicOps, com.mojang.serialization.MapLike<T> mapLike) protected <E> com.mojang.serialization.DataResult<Registry<E>>RegistryOps.getRegistry(RegistryKey<? extends Registry<E>> key) Methods in net.minecraft.util.dynamic with parameters of type RegistryModifier and TypeMethodDescriptionprivate static <E> Supplier<E>RegistryOps.createEntrySupplier(Registry<E> registry, RegistryKey<E> key) <T> com.mojang.serialization.RecordBuilder<T>RegistryLookupCodec.encode(Registry<E> registry, com.mojang.serialization.DynamicOps<T> dynamicOps, com.mojang.serialization.RecordBuilder<T> recordBuilder) Method parameters in net.minecraft.util.dynamic with type arguments of type RegistryModifier and TypeMethodDescriptionRegistryOps.decodeOrId(T t, RegistryKey<? extends Registry<E>> key, com.mojang.serialization.Codec<E> codec, boolean allowInlineDefinitions) Encode an id for a registry element than a full object if possible.protected <E> com.mojang.serialization.DataResult<T>RegistryReadingOps.encodeOrId(E input, T prefix, RegistryKey<? extends Registry<E>> registryReference, com.mojang.serialization.Codec<E> codec) Encode an id for a registry element than a full object if possible.<E> Collection<RegistryKey<E>>EntryLoader.getKnownEntryPaths(RegistryKey<? extends Registry<E>> key) <E> Collection<RegistryKey<E>>EntryLoader.Impl.getKnownEntryPaths(RegistryKey<? extends Registry<E>> key) protected <E> com.mojang.serialization.DataResult<Registry<E>>RegistryOps.getRegistry(RegistryKey<? extends Registry<E>> key) private <E> RegistryOps.ValueHolder<E>RegistryOps.getValueHolder(RegistryKey<? extends Registry<E>> registryRef) <E> Optional<com.mojang.serialization.DataResult<EntryLoader.Entry<E>>>EntryLoader.Impl.load(com.mojang.serialization.DynamicOps<JsonElement> json, RegistryKey<? extends Registry<E>> registryId, RegistryKey<E> entryId, com.mojang.serialization.Decoder<E> decoder) <E> Optional<com.mojang.serialization.DataResult<EntryLoader.Entry<E>>>EntryLoader.load(com.mojang.serialization.DynamicOps<JsonElement> json, RegistryKey<? extends Registry<E>> registryId, RegistryKey<E> entryId, com.mojang.serialization.Decoder<E> decoder) <E> com.mojang.serialization.DataResult<SimpleRegistry<E>>RegistryOps.loadToRegistry(SimpleRegistry<E> registry, RegistryKey<? extends Registry<E>> key, com.mojang.serialization.Codec<E> codec) Loads elements into a registry just loaded from a decoder.RegistryElementCodec.method_31194(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec) static <E> RegistryCodec<E>RegistryCodec.of(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<E> codec) static <E> RegistryElementCodec<E>RegistryElementCodec.of(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec) private static <E> RegistryElementCodec<E>RegistryElementCodec.of(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec, boolean allowInlineDefinitions) static <E> RegistryLookupCodec<E>RegistryLookupCodec.of(RegistryKey<? extends Registry<E>> registryKey) private <E> com.mojang.serialization.DataResult<Supplier<E>>RegistryOps.readSupplier(RegistryKey<? extends Registry<E>> registryKey, MutableRegistry<E> mutableRegistry, com.mojang.serialization.Codec<E> codec, RegistryKey<E> registryKey2) Reads a supplier for a registry element.Constructor parameters in net.minecraft.util.dynamic with type arguments of type RegistryModifierConstructorDescriptionprivateRegistryCodec(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<E> codec) privateRegistryElementCodec(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec, boolean allowInlineDefinitions) privateRegistryLookupCodec(RegistryKey<? extends Registry<E>> registryKey) privateRegistryOps(com.mojang.serialization.DynamicOps<T> delegate, EntryLoader entryLoader, DynamicRegistryManager registryManager, IdentityHashMap<RegistryKey<? extends Registry<?>>, RegistryOps.ValueHolder<?>> valueHolders) -
Uses of Registry in net.minecraft.util.registry
Subclasses of Registry in net.minecraft.util.registryModifier and TypeClassDescriptionclassclassclassFields in net.minecraft.util.registry declared as RegistryModifier and TypeFieldDescriptionRegistry.ACTIVITYstatic final Registry<EntityAttribute>Registry.ATTRIBUTEBuiltinRegistries.BIOMEstatic final Registry<com.mojang.serialization.Codec<? extends BiomeSource>>Registry.BIOME_SOURCEstatic final Registry<BlockEntityType<?>>Registry.BLOCK_ENTITY_TYPEstatic final Registry<BlockPredicateType<?>>Registry.BLOCK_PREDICATE_TYPEstatic final Registry<BlockStateProviderType<?>>Registry.BLOCK_STATE_PROVIDER_TYPERegistry.CARVERstatic final Registry<com.mojang.serialization.Codec<? extends ChunkGenerator>>Registry.CHUNK_GENERATORstatic final Registry<ChunkGeneratorSettings>BuiltinRegistries.CHUNK_GENERATOR_SETTINGSstatic final Registry<ConfiguredCarver<?>>BuiltinRegistries.CONFIGURED_CARVERstatic final Registry<ConfiguredFeature<?,?>> BuiltinRegistries.CONFIGURED_FEATUREstatic final Registry<ConfiguredStructureFeature<?,?>> BuiltinRegistries.CONFIGURED_STRUCTURE_FEATUREstatic final Registry<Identifier>Registry.CUSTOM_STATstatic final Registry<Enchantment>Registry.ENCHANTMENTRegistry.FEATUREstatic final Registry<FeatureSizeType<?>>Registry.FEATURE_SIZE_TYPEstatic final Registry<FloatProviderType<?>>Registry.FLOAT_PROVIDER_TYPEstatic final Registry<FoliagePlacerType<?>>Registry.FOLIAGE_PLACER_TYPEstatic final Registry<HeightProviderType<?>>Registry.HEIGHT_PROVIDER_TYPEstatic final Registry<IntProviderType<?>>Registry.INT_PROVIDER_TYPEstatic final Registry<LootConditionType>Registry.LOOT_CONDITION_TYPEstatic final Registry<LootFunctionType>Registry.LOOT_FUNCTION_TYPEstatic final Registry<LootNbtProviderType>Registry.LOOT_NBT_PROVIDER_TYPEstatic final Registry<LootNumberProviderType>Registry.LOOT_NUMBER_PROVIDER_TYPEstatic final Registry<LootPoolEntryType>Registry.LOOT_POOL_ENTRY_TYPEstatic final Registry<LootScoreProviderType>Registry.LOOT_SCORE_PROVIDER_TYPEstatic final Registry<com.mojang.serialization.Codec<? extends MaterialRules.MaterialCondition>>Registry.MATERIAL_CONDITIONstatic final Registry<com.mojang.serialization.Codec<? extends MaterialRules.MaterialRule>>Registry.MATERIAL_RULEstatic final Registry<DoublePerlinNoiseSampler.NoiseParameters>BuiltinRegistries.NOISE_PARAMETERSstatic final Registry<ParticleType<?>>Registry.PARTICLE_TYPEstatic final Registry<PlacedFeature>BuiltinRegistries.PLACED_FEATUREstatic final Registry<PlacementModifierType<?>>Registry.PLACEMENT_MODIFIER_TYPEstatic final Registry<PosRuleTestType<?>>Registry.POS_RULE_TESTstatic final Registry<PositionSourceType<?>>Registry.POSITION_SOURCE_TYPEstatic final Registry<RecipeSerializer<?>>Registry.RECIPE_SERIALIZERstatic final Registry<RecipeType<?>>Registry.RECIPE_TYPEBuiltinRegistries.REGISTRIESRegistry.REGISTRIESstatic final Registry<RuleTestType<?>>Registry.RULE_TESTRegistry.SCHEDULEstatic final Registry<ScreenHandlerType<?>>Registry.SCREEN_HANDLERstatic final Registry<SoundEvent>Registry.SOUND_EVENTRegistry.STAT_TYPEstatic final Registry<StatusEffect>Registry.STATUS_EFFECTstatic final Registry<StructureFeature<?>>Registry.STRUCTURE_FEATUREstatic final Registry<StructurePieceType>Registry.STRUCTURE_PIECEstatic final Registry<StructurePool>BuiltinRegistries.STRUCTURE_POOLstatic final Registry<StructurePoolElementType<?>>Registry.STRUCTURE_POOL_ELEMENTstatic final Registry<StructureProcessorType<?>>Registry.STRUCTURE_PROCESSORstatic final Registry<StructureProcessorList>BuiltinRegistries.STRUCTURE_PROCESSOR_LISTstatic final Registry<TreeDecoratorType<?>>Registry.TREE_DECORATOR_TYPEstatic final Registry<TrunkPlacerType<?>>Registry.TRUNK_PLACER_TYPEFields in net.minecraft.util.registry with type parameters of type RegistryModifier and TypeFieldDescriptionstatic final RegistryKey<Registry<Activity>>Registry.ACTIVITY_KEYstatic final RegistryKey<Registry<EntityAttribute>>Registry.ATTRIBUTE_KEYstatic final RegistryKey<Registry<Biome>>Registry.BIOME_KEYstatic final RegistryKey<Registry<com.mojang.serialization.Codec<? extends BiomeSource>>>Registry.BIOME_SOURCE_KEYstatic final RegistryKey<Registry<BlockEntityType<?>>>Registry.BLOCK_ENTITY_TYPE_KEYstatic final RegistryKey<Registry<Block>>Registry.BLOCK_KEYstatic final RegistryKey<Registry<BlockPredicateType<?>>>Registry.BLOCK_PREDICATE_TYPE_KEYstatic final RegistryKey<Registry<BlockStateProviderType<?>>>Registry.BLOCK_STATE_PROVIDER_TYPE_KEYstatic final RegistryKey<Registry<Carver<?>>>Registry.CARVER_KEYstatic final RegistryKey<Registry<com.mojang.serialization.Codec<? extends ChunkGenerator>>>Registry.CHUNK_GENERATOR_KEYstatic final RegistryKey<Registry<ChunkGeneratorSettings>>Registry.CHUNK_GENERATOR_SETTINGS_KEYstatic final RegistryKey<Registry<ChunkStatus>>Registry.CHUNK_STATUS_KEYstatic final RegistryKey<Registry<ConfiguredCarver<?>>>Registry.CONFIGURED_CARVER_KEYstatic final RegistryKey<Registry<ConfiguredFeature<?,?>>> Registry.CONFIGURED_FEATURE_KEYstatic final RegistryKey<Registry<ConfiguredStructureFeature<?,?>>> Registry.CONFIGURED_STRUCTURE_FEATURE_KEYstatic final RegistryKey<Registry<Identifier>>Registry.CUSTOM_STAT_KEYstatic final RegistryKey<Registry<DimensionOptions>>Registry.DIMENSION_KEYA registry key representing theDimensionOptionstype.static final RegistryKey<Registry<DimensionType>>Registry.DIMENSION_TYPE_KEYstatic final RegistryKey<Registry<Enchantment>>Registry.ENCHANTMENT_KEYstatic final RegistryKey<Registry<EntityType<?>>>Registry.ENTITY_TYPE_KEYstatic final RegistryKey<Registry<Feature<?>>>Registry.FEATURE_KEYstatic final RegistryKey<Registry<FeatureSizeType<?>>>Registry.FEATURE_SIZE_TYPE_KEYstatic final RegistryKey<Registry<FloatProviderType<?>>>Registry.FLOAT_PROVIDER_TYPE_KEYstatic final RegistryKey<Registry<Fluid>>Registry.FLUID_KEYstatic final RegistryKey<Registry<FoliagePlacerType<?>>>Registry.FOLIAGE_PLACER_TYPE_KEYstatic final RegistryKey<Registry<GameEvent>>Registry.GAME_EVENT_KEYstatic final RegistryKey<Registry<HeightProviderType<?>>>Registry.HEIGHT_PROVIDER_TYPE_KEY(package private) static final Map<RegistryKey<? extends Registry<?>>,DynamicRegistryManager.Info<?>> DynamicRegistryManager.INFOSstatic final RegistryKey<Registry<IntProviderType<?>>>Registry.INT_PROVIDER_TYPE_KEYstatic final RegistryKey<Registry<Item>>Registry.ITEM_KEYstatic final RegistryKey<Registry<LootConditionType>>Registry.LOOT_CONDITION_TYPE_KEYstatic final RegistryKey<Registry<LootFunctionType>>Registry.LOOT_FUNCTION_TYPE_KEYstatic final RegistryKey<Registry<LootNbtProviderType>>Registry.LOOT_NBT_PROVIDER_TYPE_KEYstatic final RegistryKey<Registry<LootNumberProviderType>>Registry.LOOT_NUMBER_PROVIDER_TYPE_KEYstatic final RegistryKey<Registry<LootPoolEntryType>>Registry.LOOT_POOL_ENTRY_TYPE_KEYstatic final RegistryKey<Registry<LootScoreProviderType>>Registry.LOOT_SCORE_PROVIDER_TYPE_KEYstatic final RegistryKey<Registry<com.mojang.serialization.Codec<? extends MaterialRules.MaterialCondition>>>Registry.MATERIAL_CONDITION_KEYstatic final RegistryKey<Registry<com.mojang.serialization.Codec<? extends MaterialRules.MaterialRule>>>Registry.MATERIAL_RULE_KEYstatic final RegistryKey<Registry<MemoryModuleType<?>>>Registry.MEMORY_MODULE_TYPE_KEYstatic final RegistryKey<Registry<ScreenHandlerType<?>>>Registry.MENU_KEYstatic final RegistryKey<Registry<StatusEffect>>Registry.MOB_EFFECT_KEYstatic final RegistryKey<Registry<PaintingMotive>>Registry.MOTIVE_KEYstatic final RegistryKey<Registry<DoublePerlinNoiseSampler.NoiseParameters>>Registry.NOISE_WORLDGENstatic final RegistryKey<Registry<ParticleType<?>>>Registry.PARTICLE_TYPE_KEYstatic final RegistryKey<Registry<PlacedFeature>>Registry.PLACED_FEATURE_KEYstatic final RegistryKey<Registry<PlacementModifierType<?>>>Registry.PLACEMENT_MODIFIER_TYPE_KEYstatic final RegistryKey<Registry<PointOfInterestType>>Registry.POINT_OF_INTEREST_TYPE_KEYstatic final RegistryKey<Registry<PosRuleTestType<?>>>Registry.POS_RULE_TEST_KEYstatic final RegistryKey<Registry<PositionSourceType<?>>>Registry.POSITION_SOURCE_TYPE_KEYstatic final RegistryKey<Registry<Potion>>Registry.POTION_KEYstatic final RegistryKey<Registry<RecipeSerializer<?>>>Registry.RECIPE_SERIALIZER_KEYstatic final RegistryKey<Registry<RecipeType<?>>>Registry.RECIPE_TYPE_KEYprivate final Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> DynamicRegistryManager.Impl.registriesBuiltinRegistries.REGISTRIESRegistry.REGISTRIESprivate final RegistryKey<? extends Registry<E>>DynamicRegistryManager.Info.registryThe field for theregistryrecord component.private final RegistryKey<? extends Registry<T>>Registry.registryKeyThe key representing the type of elements held by this registry.static final RegistryKey<Registry<RuleTestType<?>>>Registry.RULE_TEST_KEYstatic final RegistryKey<Registry<Schedule>>Registry.SCHEDULE_KEYstatic final RegistryKey<Registry<SensorType<?>>>Registry.SENSOR_TYPE_KEYstatic final RegistryKey<Registry<SoundEvent>>Registry.SOUND_EVENT_KEYstatic final RegistryKey<Registry<StatType<?>>>Registry.STAT_TYPE_KEYstatic final RegistryKey<Registry<StructureFeature<?>>>Registry.STRUCTURE_FEATURE_KEYstatic final RegistryKey<Registry<StructurePieceType>>Registry.STRUCTURE_PIECE_KEYstatic final RegistryKey<Registry<StructurePoolElementType<?>>>Registry.STRUCTURE_POOL_ELEMENT_KEYstatic final RegistryKey<Registry<StructurePool>>Registry.STRUCTURE_POOL_KEYstatic final RegistryKey<Registry<StructureProcessorType<?>>>Registry.STRUCTURE_PROCESSOR_KEYstatic final RegistryKey<Registry<StructureProcessorList>>Registry.STRUCTURE_PROCESSOR_LIST_KEYstatic final RegistryKey<Registry<TreeDecoratorType<?>>>Registry.TREE_DECORATOR_TYPE_KEYstatic final RegistryKey<Registry<TrunkPlacerType<?>>>Registry.TRUNK_PLACER_TYPE_KEYstatic final RegistryKey<Registry<VillagerProfession>>Registry.VILLAGER_PROFESSION_KEYstatic final RegistryKey<Registry<VillagerType>>Registry.VILLAGER_TYPE_KEYstatic final RegistryKey<Registry<World>>Registry.WORLD_KEYA registry key representing theWorldtype.Methods in net.minecraft.util.registry with type parameters of type RegistryModifier and TypeMethodDescriptionprivate static <R extends Registry<?>>
voidDynamicRegistryManager.copyFromBuiltin(DynamicRegistryManager.Impl manager, RegistryKey<R> registryRef) Add all entries of the registry referred byregistryRefto the corresponding registry within this manager.private static <K extends RegistryKey<? extends Registry<?>>,V extends SimpleRegistry<?>>
com.mojang.serialization.Codec<DynamicRegistryManager.Impl>DynamicRegistryManager.Impl.fromRegistryCodecs(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> unboundedMapCodec) Methods in net.minecraft.util.registry that return RegistryModifier and TypeMethodDescriptionprivate static <T> Registry<T>BuiltinRegistries.addRegistry(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, Supplier<T> defaultValueSupplier) private static <T> Registry<T>BuiltinRegistries.addRegistry(RegistryKey<? extends Registry<T>> registryRef, Supplier<T> defaultValueSupplier) private static <T> Registry<T>Registry.create(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, Supplier<T> defaultEntry) private static <T> Registry<T>Registry.create(RegistryKey<? extends Registry<T>> key, Supplier<T> defaultEntry) <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.Methods in net.minecraft.util.registry that return types with arguments of type RegistryModifier and TypeMethodDescriptionprivate static <T> RegistryKey<Registry<T>>Registry.createRegistryKey(String registryId) RegistryKey<? extends Registry<T>>Registry.getKey()DynamicRegistryManager.getOptional(RegistryKey<? extends Registry<? extends E>> key) 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 theregistryrecord component.Methods in net.minecraft.util.registry with parameters of type RegistryModifier and TypeMethodDescriptionstatic <T> Tstatic <V,T extends V>
TBuiltinRegistries.add(Registry<V> registry, Identifier id, T object) static <V,T extends V>
TBuiltinRegistries.add(Registry<V> registry, RegistryKey<V> key, T object) private static <E> voidDynamicRegistryManager.addBuiltinEntries(DynamicRegistryManager.Impl manager, Registry<E> registry) Add all entries of theregistryto the corresponding registry within this manager.static <T> Tstatic <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) static <V,T extends V>
TBuiltinRegistries.set(Registry<V> registry, RegistryKey<V> key, T object) Method parameters in net.minecraft.util.registry with type arguments of type RegistryModifier and TypeMethodDescriptionprivate static <T> Registry<T>BuiltinRegistries.addRegistry(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, Supplier<T> defaultValueSupplier) private static <T> Registry<T>BuiltinRegistries.addRegistry(RegistryKey<? extends Registry<T>> registryRef, Supplier<T> defaultValueSupplier) private static <T,R extends MutableRegistry<T>>
RBuiltinRegistries.addRegistry(RegistryKey<? extends Registry<T>> registryRef, R registry, Supplier<T> defaultValueSupplier, com.mojang.serialization.Lifecycle lifecycle) private static <T> Registry<T>Registry.create(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, Supplier<T> defaultEntry) private static <T> DefaultedRegistry<T>Registry.create(RegistryKey<? extends Registry<T>> key, String defaultId, com.mojang.serialization.Lifecycle lifecycle, Supplier<T> defaultEntry) private static <T> DefaultedRegistry<T>Registry.create(RegistryKey<? extends Registry<T>> key, String defaultId, Supplier<T> defaultEntry) private static <T> Registry<T>Registry.create(RegistryKey<? extends Registry<T>> key, Supplier<T> defaultEntry) private static <T,R extends MutableRegistry<T>>
RRegistry.create(RegistryKey<? extends Registry<T>> key, R registry, Supplier<T> defaultEntry, com.mojang.serialization.Lifecycle lifecycle) static <T> com.mojang.serialization.Codec<RegistryKey<T>>RegistryKey.createCodec(RegistryKey<? extends Registry<T>> registry) static <T> com.mojang.serialization.Codec<SimpleRegistry<T>>SimpleRegistry.createCodec(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<T> entryCodec) static <T> Function<Identifier,RegistryKey<T>> RegistryKey.createKeyFactory(RegistryKey<? extends Registry<T>> registry) Creates a function that converts an identifier to a registry key for the registry thatregistryrefers to in the root registry.private static <E> SimpleRegistry<?>DynamicRegistryManager.Impl.createRegistry(RegistryKey<? extends Registry<?>> registryRef) static <T> com.mojang.serialization.Codec<SimpleRegistry<T>>SimpleRegistry.createRegistryCodec(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<T> entryCodec) static <T> com.mojang.serialization.Codec<SimpleRegistry<T>>SimpleRegistry.createRegistryManagerCodec(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<T> entryCodec) static <T> com.mojang.serialization.MapCodec<SimpleRegistry.RegistryManagerEntry<T>>SimpleRegistry.createRegistryManagerEntryCodec(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.MapCodec<T> entryCodec) <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.private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>>DynamicRegistryManager.Impl.getDataResultForCodec(RegistryKey<? extends Registry<E>> registryRef) <E> MutableRegistry<E>DynamicRegistryManager.getMutable(RegistryKey<? extends Registry<? extends E>> key) DynamicRegistryManager.getOptional(RegistryKey<? extends Registry<? extends E>> key) abstract <E> Optional<MutableRegistry<E>>DynamicRegistryManager.getOptionalMutable(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry optionally from this manager.<E> Optional<MutableRegistry<E>>DynamicRegistryManager.Impl.getOptionalMutable(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry optionally from this manager.booleanRegistryKey.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 <E> SimpleRegistry<?>DynamicRegistryManager.Impl.method_39201(RegistryKey<? extends Registry<?>> registryKey, com.mojang.serialization.Dynamic<?> dynamic) <E> Optional<RegistryKey<E>>RegistryKey.method_39752(RegistryKey<? extends Registry<E>> registryKey) 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> voidDynamicRegistryManager.register(ImmutableMap.Builder<RegistryKey<? extends Registry<?>>, DynamicRegistryManager.Info<?>> infosBuilder, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> entryCodec) private static <E> voidDynamicRegistryManager.register(ImmutableMap.Builder<RegistryKey<? extends Registry<?>>, DynamicRegistryManager.Info<?>> infosBuilder, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> entryCodec) private static <E> voidDynamicRegistryManager.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> voidDynamicRegistryManager.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) Constructor parameters in net.minecraft.util.registry with type arguments of type RegistryModifierConstructorDescriptionDefaultedRegistry(String defaultId, RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) privateImpl(Map<? extends RegistryKey<? extends Registry<?>>, ? extends SimpleRegistry<?>> registries) Info(RegistryKey<? extends Registry<E>> registry, com.mojang.serialization.Codec<E> entryCodec, @Nullable com.mojang.serialization.Codec<E> networkEntryCodec) Creates an instance of aInforecord class.MutableRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) protectedRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) -
Uses of Registry in net.minecraft.world
Fields in net.minecraft.world declared as RegistryMethods in net.minecraft.world with parameters of type RegistryModifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec<PalettedContainer<Biome>>ChunkSerializer.createCodec(Registry<Biome> biomeRegistry) -
Uses of Registry in net.minecraft.world.biome.source
Fields in net.minecraft.world.biome.source declared as RegistryModifier and TypeFieldDescriptionMultiNoiseBiomeSource.Instance.biomeRegistryThe field for thebiomeRegistryrecord component.TheEndBiomeSource.biomeRegistryFields in net.minecraft.world.biome.source with type parameters of type RegistryMethods in net.minecraft.world.biome.source that return RegistryModifier and TypeMethodDescriptionMultiNoiseBiomeSource.Instance.biomeRegistry()Returns the value of thebiomeRegistryrecord component.Methods in net.minecraft.world.biome.source with parameters of type RegistryModifier and TypeMethodDescriptionMultiNoiseBiomeSource.Preset.getBiomeSource(Registry<Biome> biomeRegistry) MultiNoiseBiomeSource.Preset.getBiomeSource(Registry<Biome> biomeRegistry, boolean useInstance) Constructors in net.minecraft.world.biome.source with parameters of type RegistryModifierConstructorDescription(package private)Instance(MultiNoiseBiomeSource.Preset preset, Registry<Biome> biomeRegistry) Creates an instance of aInstancerecord class.TheEndBiomeSource(Registry<Biome> biomeRegistry, long seed) privateTheEndBiomeSource(Registry<Biome> biomeRegistry, long seed, Biome centerBiome, Biome highlandsBiome, Biome midlandsBiome, Biome smallIslandsBiome, Biome barrensBiome) Constructor parameters in net.minecraft.world.biome.source with type arguments of type RegistryModifierConstructorDescriptionPreset(Identifier id, Function<Registry<Biome>, MultiNoiseUtil.Entries<Supplier<Biome>>> biomeSourceFunction) -
Uses of Registry in net.minecraft.world.chunk
Methods in net.minecraft.world.chunk with parameters of type RegistryModifier and TypeMethodDescriptionprivate static voidChunk.fillSectionArray(HeightLimitView world, Registry<Biome> biome, ChunkSection[] sectionArray) static BiomeSupplierBelowZeroRetrogen.getBiomeSupplier(BiomeSupplier biomeSupplier, Registry<Biome> biomeRegistry, Chunk chunk) Constructors in net.minecraft.world.chunk with parameters of type RegistryModifierConstructorDescriptionChunk(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.gen
Methods in net.minecraft.world.gen with parameters of type RegistryModifier and TypeMethodDescriptionstatic SimpleRegistry<DimensionOptions>GeneratorOptions.getRegistryWithReplacedOverworldGenerator(Registry<DimensionType> dimensionTypeRegistry, SimpleRegistry<DimensionOptions> optionsRegistry, ChunkGenerator overworldGenerator) Constructors in net.minecraft.world.gen with parameters of type RegistryModifierConstructorDescriptionNoiseColumnSampler(GenerationShapeConfig config, boolean hasNoiseCaves, long seed, Registry<DoublePerlinNoiseSampler.NoiseParameters> noiseRegistry, ChunkRandom.RandomProvider randomProvider) -
Uses of Registry in net.minecraft.world.gen.chunk
Fields in net.minecraft.world.gen.chunk declared as RegistryModifier and TypeFieldDescriptionDebugChunkGenerator.biomeRegistryFlatChunkGeneratorConfig.biomeRegistryprivate final Registry<DoublePerlinNoiseSampler.NoiseParameters>NoiseChunkGenerator.noiseRegistryMethods in net.minecraft.world.gen.chunk that return RegistryMethods in net.minecraft.world.gen.chunk with parameters of type RegistryModifier and TypeMethodDescriptionstatic FlatChunkGeneratorConfigFlatChunkGeneratorConfig.getDefaultConfig(Registry<Biome> biomeRegistry) ChunkGenerator.populateBiomes(Registry<Biome> biomeRegistry, Executor executor, Blender blender, StructureAccessor structureAccessor, Chunk chunk) NoiseChunkGenerator.populateBiomes(Registry<Biome> biomeRegistry, Executor executor, Blender blender, StructureAccessor structureAccessor, Chunk chunk) private voidNoiseChunkGenerator.populateBiomes(Registry<Biome> biomeRegistry, Blender blender, StructureAccessor structureAccessor, Chunk chunk) protected booleanChunkGenerator.testBiomeByKey(Registry<Biome> registry, Predicate<RegistryKey<Biome>> condition, Biome biome) protected booleanFlatChunkGenerator.testBiomeByKey(Registry<Biome> registry, Predicate<RegistryKey<Biome>> condition, Biome biome) Constructors in net.minecraft.world.gen.chunk with parameters of type RegistryModifierConstructorDescriptionDebugChunkGenerator(Registry<Biome> biomeRegistry) privateFlatChunkGeneratorConfig(Registry<Biome> biomeRegistry, StructuresConfig structuresConfig, List<FlatChunkGeneratorLayer> layers, boolean hasLakes, boolean hasFeatures, Optional<Supplier<Biome>> biome) FlatChunkGeneratorConfig(StructuresConfig structuresConfig, Registry<Biome> biomeRegistry) NoiseChunkGenerator(Registry<DoublePerlinNoiseSampler.NoiseParameters> noiseRegistry, BiomeSource biomeSource, long seed, Supplier<ChunkGeneratorSettings> settings) privateNoiseChunkGenerator(Registry<DoublePerlinNoiseSampler.NoiseParameters> noiseRegistry, BiomeSource populationSource, BiomeSource biomeSource, long seed, Supplier<ChunkGeneratorSettings> settings) -
Uses of Registry in net.minecraft.world.gen.noise
Methods in net.minecraft.world.gen.noise with parameters of type RegistryModifier and TypeMethodDescriptionstatic DoublePerlinNoiseSamplerNoiseParametersKeys.createNoiseSampler(Registry<DoublePerlinNoiseSampler.NoiseParameters> noiseRegistry, RandomDeriver randomDeriver, RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> noise) -
Uses of Registry in net.minecraft.world.gen.surfacebuilder
Fields in net.minecraft.world.gen.surfacebuilder declared as RegistryModifier and TypeFieldDescriptionMaterialRules.MaterialRuleContext.biomeRegistryprivate final Registry<DoublePerlinNoiseSampler.NoiseParameters>SurfaceBuilder.noiseRegistryMethods in net.minecraft.world.gen.surfacebuilder with parameters of type RegistryModifier and TypeMethodDescriptionvoidSurfaceBuilder.buildSurface(BiomeAccess biomeAccess, Registry<Biome> biomeRegistry, boolean useLegacyRandom, HeightContext context, Chunk chunk, ChunkNoiseSampler chunkNoiseSampler, MaterialRules.MaterialRule surfaceRule) Constructors in net.minecraft.world.gen.surfacebuilder with parameters of type RegistryModifierConstructorDescriptionprotectedMaterialRuleContext(SurfaceBuilder surfaceBuilder, Chunk chunk, ChunkNoiseSampler chunkNoiseSampler, Function<BlockPos, Biome> posToBiome, Registry<Biome> biomeRegistry, HeightContext heightContext) SurfaceBuilder(Registry<DoublePerlinNoiseSampler.NoiseParameters> noiseRegistry, BlockState defaultState, int seaLevel, long seed, ChunkRandom.RandomProvider randomProvider)