Uses of Class
net.minecraft.util.registry.RegistryKey
-
Uses of RegistryKey in net.minecraft.advancement.criterion
Fields in net.minecraft.advancement.criterion declared as RegistryKey Modifier and Type Field Description private @Nullable RegistryKey<World>ChangedDimensionCriterion.Conditions. fromprivate @Nullable RegistryKey<World>ChangedDimensionCriterion.Conditions. toMethods in net.minecraft.advancement.criterion with parameters of type RegistryKey Modifier and Type Method Description static ChangedDimensionCriterion.ConditionsChangedDimensionCriterion.Conditions. create(RegistryKey<World> from, RegistryKey<World> to)static ChangedDimensionCriterion.ConditionsChangedDimensionCriterion.Conditions. from(RegistryKey<World> from)booleanChangedDimensionCriterion.Conditions. matches(RegistryKey<World> from, RegistryKey<World> to)static ChangedDimensionCriterion.ConditionsChangedDimensionCriterion.Conditions. to(RegistryKey<World> to)voidChangedDimensionCriterion. trigger(ServerPlayerEntity player, RegistryKey<World> from, RegistryKey<World> to)Constructors in net.minecraft.advancement.criterion with parameters of type RegistryKey Constructor Description Conditions(EntityPredicate.Extended player, @Nullable RegistryKey<World> from, @Nullable RegistryKey<World> to) -
Uses of RegistryKey in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as RegistryKey Modifier and Type Field Description private static RegistryKey<Biome>PresetsScreen. BIOME_KEYMethods in net.minecraft.client.gui.screen with parameters of type RegistryKey Modifier and Type Method Description private static voidPresetsScreen. addPreset(Text presetName, ItemConvertible icon, RegistryKey<Biome> presetBiome, List<StructureFeature<?>> structures, boolean generateStronghold, boolean generateFeatures, boolean generateLakes, FlatChunkGeneratorLayer[] layers) -
Uses of RegistryKey in net.minecraft.client.gui.screen.world
Fields in net.minecraft.client.gui.screen.world with type parameters of type RegistryKey Modifier and Type Field Description private static Object2IntMap<RegistryKey<World>>OptimizeWorldScreen. DIMENSION_COLORSConstructor parameters in net.minecraft.client.gui.screen.world with type arguments of type RegistryKey Constructor Description OptimizeWorldScreen(BooleanConsumer callback, com.mojang.datafixers.DataFixer dataFixer, LevelStorage.Session storageSession, LevelInfo levelInfo, boolean eraseCache, ImmutableSet<RegistryKey<World>> worlds) -
Uses of RegistryKey in net.minecraft.client.network
Fields in net.minecraft.client.network with type parameters of type RegistryKey Modifier and Type Field Description private Set<RegistryKey<World>>ClientPlayNetworkHandler. worldKeysMethods in net.minecraft.client.network that return types with arguments of type RegistryKey Modifier and Type Method Description Set<RegistryKey<World>>ClientCommandSource. getWorldKeys()Set<RegistryKey<World>>ClientPlayNetworkHandler. getWorldKeys() -
Uses of RegistryKey in net.minecraft.client.world
Constructors in net.minecraft.client.world with parameters of type RegistryKey Constructor Description ClientWorld(ClientPlayNetworkHandler networkHandler, ClientWorld.Properties properties, RegistryKey<World> registryRef, DimensionType dimensionType, int loadDistance, Supplier<Profiler> profiler, WorldRenderer worldRenderer, boolean debugWorld, long seed) -
Uses of RegistryKey in net.minecraft.command
Methods in net.minecraft.command that return types with arguments of type RegistryKey Modifier and Type Method Description Set<RegistryKey<World>>CommandSource. getWorldKeys() -
Uses of RegistryKey in net.minecraft.data.server
Fields in net.minecraft.data.server with type parameters of type RegistryKey Modifier and Type Field Description private static List<RegistryKey<Biome>>AdventureTabAdvancementGenerator. BIOMESprivate static List<RegistryKey<Biome>>NetherTabAdvancementGenerator. NETHER_BIOMESMethod parameters in net.minecraft.data.server with type arguments of type RegistryKey Modifier and Type Method Description protected static Advancement.TaskAdventureTabAdvancementGenerator. requireListedBiomesVisited(Advancement.Task task, List<RegistryKey<Biome>> list) -
Uses of RegistryKey in net.minecraft.entity.passive
Fields in net.minecraft.entity.passive with type parameters of type RegistryKey Modifier and Type Field Description private List<RegistryKey<Biome>>FoxEntity.Type. biomesMethod parameters in net.minecraft.entity.passive with type arguments of type RegistryKey Modifier and Type Method Description static FoxEntity.TypeFoxEntity.Type. fromBiome(Optional<RegistryKey<Biome>> optional)Constructors in net.minecraft.entity.passive with parameters of type RegistryKey Constructor Description Type(int id, String key, RegistryKey<Biome>[] biomes) -
Uses of RegistryKey in net.minecraft.item
Methods in net.minecraft.item that return types with arguments of type RegistryKey Modifier and Type Method Description static Optional<RegistryKey<World>>CompassItem. getLodestoneDimension(NbtCompound nbt)Methods in net.minecraft.item with parameters of type RegistryKey Modifier and Type Method Description private static intFilledMapItem. allocateMapId(World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension)private static voidFilledMapItem. createMapState(ItemStack stack, World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension)private voidCompassItem. writeNbt(RegistryKey<World> worldKey, BlockPos pos, NbtCompound nbt) -
Uses of RegistryKey in net.minecraft.item.map
Fields in net.minecraft.item.map declared as RegistryKey Modifier and Type Field Description RegistryKey<World>MapState. dimensionMethods in net.minecraft.item.map with parameters of type RegistryKey Modifier and Type Method Description static MapStateMapState. of(byte scale, boolean showIcons, RegistryKey<World> dimension)Creates a new map state instance for the client.static MapStateMapState. of(double xCenter, double zCenter, byte scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension)Creates a new map state instance.Constructors in net.minecraft.item.map with parameters of type RegistryKey Constructor Description MapState(int xCenter, int zCenter, byte scale, boolean showIcons, boolean unlimitedTracking, boolean locked, RegistryKey<World> dimension) -
Uses of RegistryKey in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as RegistryKey Modifier and Type Field Description private RegistryKey<World>PlayerRespawnS2CPacket. dimensionprivate RegistryKey<World>GameJoinS2CPacket. dimensionIdFields in net.minecraft.network.packet.s2c.play with type parameters of type RegistryKey Modifier and Type Field Description private Set<RegistryKey<World>>GameJoinS2CPacket. dimensionIdsprivate Map<RegistryKey<? extends Registry<?>>,TagGroup.Serialized>SynchronizeTagsS2CPacket. groupsMethods in net.minecraft.network.packet.s2c.play that return RegistryKey Modifier and Type Method Description RegistryKey<World>PlayerRespawnS2CPacket. getDimension()RegistryKey<World>GameJoinS2CPacket. getDimensionId()Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type RegistryKey Modifier and Type Method Description Set<RegistryKey<World>>GameJoinS2CPacket. getDimensionIds()Map<RegistryKey<? extends Registry<?>>,TagGroup.Serialized>SynchronizeTagsS2CPacket. getGroups()Constructors in net.minecraft.network.packet.s2c.play with parameters of type RegistryKey Constructor Description GameJoinS2CPacket(int playerEntityId, GameMode gameMode, @Nullable GameMode previousGameMode, long sha256Seed, boolean hardcore, Set<RegistryKey<World>> dimensionIds, DynamicRegistryManager.Impl registryManager, DimensionType dimensionType, RegistryKey<World> dimensionId, int maxPlayers, int chunkLoadDistance, boolean reducedDebugInfo, boolean showDeathScreen, boolean debugWorld, boolean flatWorld)PlayerRespawnS2CPacket(DimensionType dimensionType, RegistryKey<World> dimension, long sha256Seed, GameMode gameMode, @Nullable GameMode previousGameMode, boolean debugWorld, boolean flatWorld, boolean keepPlayerAttributes)Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type RegistryKey Constructor Description GameJoinS2CPacket(int playerEntityId, GameMode gameMode, @Nullable GameMode previousGameMode, long sha256Seed, boolean hardcore, Set<RegistryKey<World>> dimensionIds, DynamicRegistryManager.Impl registryManager, DimensionType dimensionType, RegistryKey<World> dimensionId, int maxPlayers, int chunkLoadDistance, boolean reducedDebugInfo, boolean showDeathScreen, boolean debugWorld, boolean flatWorld)SynchronizeTagsS2CPacket(Map<RegistryKey<? extends Registry<?>>,TagGroup.Serialized> groups) -
Uses of RegistryKey in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity declared as RegistryKey Modifier and Type Field Description private @Nullable RegistryKey<Biome>LocationPredicate. biomeprivate @Nullable RegistryKey<Biome>LocationPredicate.Builder. biomeprivate @Nullable RegistryKey<World>LocationPredicate.Builder. dimensionprivate @Nullable RegistryKey<World>LocationPredicate. dimensionMethods in net.minecraft.predicate.entity with parameters of type RegistryKey Modifier and Type Method Description static LocationPredicateLocationPredicate. biome(RegistryKey<Biome> biome)LocationPredicate.BuilderLocationPredicate.Builder. biome(@Nullable RegistryKey<Biome> biome)static LocationPredicateLocationPredicate. dimension(RegistryKey<World> dimension)LocationPredicate.BuilderLocationPredicate.Builder. method_35279(@Nullable RegistryKey<World> registryKey)Constructors in net.minecraft.predicate.entity with parameters of type RegistryKey Constructor Description LocationPredicate(NumberRange.FloatRange x, NumberRange.FloatRange y, NumberRange.FloatRange z, @Nullable RegistryKey<Biome> biome, @Nullable StructureFeature<?> feature, @Nullable RegistryKey<World> dimension, @Nullable Boolean smokey, LightPredicate light, BlockPredicate block, FluidPredicate fluid) -
Uses of RegistryKey in net.minecraft.server
Fields in net.minecraft.server with type parameters of type RegistryKey Modifier and Type Field Description private Map<RegistryKey<World>,ServerWorld>MinecraftServer. worldsMethods in net.minecraft.server that return types with arguments of type RegistryKey Modifier and Type Method Description Set<RegistryKey<World>>MinecraftServer. getWorldRegistryKeys()Methods in net.minecraft.server with parameters of type RegistryKey Modifier and Type Method Description @Nullable ServerWorldMinecraftServer. getWorld(RegistryKey<World> key)voidPlayerManager. sendToAround(@Nullable PlayerEntity player, double x, double y, double z, double distance, RegistryKey<World> worldKey, Packet<?> packet)voidPlayerManager. sendToDimension(Packet<?> packet, RegistryKey<World> dimension)Method parameters in net.minecraft.server with type arguments of type RegistryKey Modifier and Type Method Description private static voidMain. forceUpgradeWorld(LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer, boolean eraseCache, BooleanSupplier booleanSupplier, ImmutableSet<RegistryKey<World>> worlds) -
Uses of RegistryKey in net.minecraft.server.command
Methods in net.minecraft.server.command that return types with arguments of type RegistryKey Modifier and Type Method Description Set<RegistryKey<World>>ServerCommandSource. getWorldKeys() -
Uses of RegistryKey in net.minecraft.server.network
Fields in net.minecraft.server.network declared as RegistryKey Modifier and Type Field Description private RegistryKey<World>ServerPlayerEntity. spawnPointDimensionMethods in net.minecraft.server.network that return RegistryKey Modifier and Type Method Description RegistryKey<World>ServerPlayerEntity. getSpawnPointDimension()Methods in net.minecraft.server.network with parameters of type RegistryKey Modifier and Type Method Description voidServerPlayerEntity. setSpawnPoint(RegistryKey<World> dimension, @Nullable BlockPos pos, float angle, boolean spawnPointSet, boolean bool) -
Uses of RegistryKey in net.minecraft.server.world
Constructors in net.minecraft.server.world with parameters of type RegistryKey Constructor Description ServerWorld(MinecraftServer server, Executor workerExecutor, LevelStorage.Session session, ServerWorldProperties properties, RegistryKey<World> worldKey, DimensionType dimensionType, WorldGenerationProgressListener worldGenerationProgressListener, ChunkGenerator chunkGenerator, boolean debugWorld, long seed, List<Spawner> spawners, boolean shouldTickTime) -
Uses of RegistryKey in net.minecraft.structure.pool
Fields in net.minecraft.structure.pool declared as RegistryKey Modifier and Type Field Description static RegistryKey<StructurePool>StructurePools. EMPTY -
Uses of RegistryKey in net.minecraft.tag
Fields in net.minecraft.tag declared as RegistryKey Modifier and Type Field Description private RegistryKey<? extends Registry<T>>RequiredTagList. registryKeyFields in net.minecraft.tag with type parameters of type RegistryKey Modifier and Type Field Description private ImmutableMap.Builder<RegistryKey<? extends Registry<?>>,TagGroup<?>>TagManager.Builder. groupsprivate static Set<RegistryKey<?>>RequiredTagListRegistry. REGISTRY_KEYSprivate Map<RegistryKey<? extends Registry<?>>,TagGroup<?>>TagManager. tagGroupsMethods in net.minecraft.tag that return RegistryKey Modifier and Type Method Description RegistryKey<? extends Registry<T>>RequiredTagList. getRegistryKey()Methods in net.minecraft.tag that return types with arguments of type RegistryKey Modifier and Type Method Description static Multimap<RegistryKey<? extends Registry<?>>,Identifier>RequiredTagListRegistry. getMissingTags(TagManager tagManager)Map<RegistryKey<? extends Registry<?>>,TagGroup.Serialized>TagManager. toPacket(DynamicRegistryManager registryManager)Methods in net.minecraft.tag with parameters of type RegistryKey Modifier and Type Method Description <T> TagManager.BuilderTagManager.Builder. add(RegistryKey<? extends Registry<? extends T>> type, TagGroup<T> tagGroup)<T> TagGroup<T>TagManager. getOrCreateTagGroup(RegistryKey<? extends Registry<T>> registryKey)<T, E extends Exception>
Tag<T>TagManager. getTag(RegistryKey<? extends Registry<T>> registryKey, Identifier id, Function<Identifier,E> exceptionFactory)private <T> @Nullable TagGroup<T>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)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)Method parameters in net.minecraft.tag with type arguments of type RegistryKey Modifier and Type Method Description static TagManagerTagManager. fromPacket(DynamicRegistryManager registryManager, Map<RegistryKey<? extends Registry<?>>,TagGroup.Serialized> groups)Constructors in net.minecraft.tag with parameters of type RegistryKey Constructor Description RequiredTagList(RegistryKey<? extends Registry<T>> registryKey, String dataType)Constructor parameters in net.minecraft.tag with type arguments of type RegistryKey Constructor Description TagManager(Map<RegistryKey<? extends Registry<?>>,TagGroup<?>> tagGroups) -
Uses of RegistryKey in net.minecraft.util.dynamic
Fields in net.minecraft.util.dynamic declared as RegistryKey Modifier and Type Field Description private RegistryKey<World>GlobalPos. dimensionprivate RegistryKey<? extends Registry<E>>RegistryLookupCodec. registryKeyprivate RegistryKey<? extends Registry<E>>RegistryCodec. registryRefprivate RegistryKey<? extends Registry<E>>RegistryElementCodec. registryRefFields in net.minecraft.util.dynamic with type parameters of type RegistryKey Modifier and Type Field Description private Map<RegistryKey<?>,com.mojang.serialization.Lifecycle>RegistryOps.EntryLoader.Impl. entryToLifecycleprivate Object2IntMap<RegistryKey<?>>RegistryOps.EntryLoader.Impl. entryToRawIdprivate Map<RegistryKey<? extends Registry<?>>,RegistryOps.ValueHolder<?>>RegistryOps. valueHoldersprivate Map<RegistryKey<?>,JsonElement>RegistryOps.EntryLoader.Impl. valuesprivate Map<RegistryKey<E>,com.mojang.serialization.DataResult<Supplier<E>>>RegistryOps.ValueHolder. valuesMethods in net.minecraft.util.dynamic that return RegistryKey Modifier and Type Method Description RegistryKey<World>GlobalPos. getDimension()Methods in net.minecraft.util.dynamic with parameters of type RegistryKey Modifier and Type Method Description <E> voidRegistryOps.EntryLoader.Impl. add(DynamicRegistryManager.Impl registryManager, RegistryKey<E> key, com.mojang.serialization.Encoder<E> encoder, int rawId, E entry, com.mojang.serialization.Lifecycle lifecycle)static GlobalPosGlobalPos. create(RegistryKey<World> dimension, BlockPos pos)protected <E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<Supplier<E>,T>>RegistryOps. 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.Collection<Identifier>RegistryOps.EntryLoader. getKnownEntryPaths(RegistryKey<? extends Registry<?>> key)Collection<Identifier>RegistryOps.EntryLoader.Impl. getKnownEntryPaths(RegistryKey<? extends Registry<?>> 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> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,OptionalInt>>RegistryOps.EntryLoader.Impl. load(com.mojang.serialization.DynamicOps<JsonElement> dynamicOps, RegistryKey<? extends Registry<E>> registryId, RegistryKey<E> entryId, com.mojang.serialization.Decoder<E> decoder)<E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,OptionalInt>>RegistryOps.EntryLoader. load(com.mojang.serialization.DynamicOps<JsonElement> dynamicOps, 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.static <E> com.mojang.serialization.Codec<List<Supplier<E>>>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>> key, MutableRegistry<E> registry, com.mojang.serialization.Codec<E> codec, Identifier elementId)Reads a supplier for a registry element.Constructors in net.minecraft.util.dynamic with parameters of type RegistryKey Constructor Description GlobalPos(RegistryKey<World> dimension, BlockPos pos)RegistryCodec(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<E> codec)RegistryElementCodec(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec, boolean allowInlineDefinitions)RegistryLookupCodec(RegistryKey<? extends Registry<E>> registryKey)Constructor parameters in net.minecraft.util.dynamic with type arguments of type RegistryKey Constructor Description RegistryOps(com.mojang.serialization.DynamicOps<T> delegate, RegistryOps.EntryLoader entryLoader, DynamicRegistryManager dynamicRegistryManager, IdentityHashMap<RegistryKey<? extends Registry<?>>,RegistryOps.ValueHolder<?>> valueHolders) -
Uses of RegistryKey in net.minecraft.util.registry
Fields in net.minecraft.util.registry with type parameters of type RegistryKey Modifier and Type Field Description private static Map<RegistryKey<? extends Registry<?>>,DynamicRegistryManager.Info<?>>DynamicRegistryManager. INFOSprivate static Map<String,RegistryKey<?>>RegistryKey. INSTANCESA cache of all registry keys ever created.private BiMap<RegistryKey<T>,T>SimpleRegistry. keyToEntryprivate Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>>DynamicRegistryManager.Impl. registriesMethods in net.minecraft.util.registry with type parameters of type RegistryKey Modifier and Type Method Description 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 RegistryKey Modifier and Type Method Description private static <T> RegistryKey<Registry<T>>Registry. createRegistryKey(String registryId)RegistryKey<? extends Registry<T>>Registry. getKey()RegistryKey<? extends Registry<E>>DynamicRegistryManager.Info. getRegistry()private static <T> RegistryKey<T>RegistryKey. of(Identifier registry, Identifier value)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.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.Methods in net.minecraft.util.registry that return types with arguments of type RegistryKey Modifier and Type Method Description 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.abstract Set<Map.Entry<RegistryKey<T>,T>>Registry. getEntries()Set<Map.Entry<RegistryKey<T>,T>>SimpleRegistry. getEntries()abstract Optional<RegistryKey<T>>Registry. getKey(T entry)Optional<RegistryKey<T>>SimpleRegistry. getKey(T entry)Methods in net.minecraft.util.registry with parameters of type RegistryKey Modifier and Type Method Description abstract <V extends T>
VMutableRegistry. add(RegistryKey<T> key, V entry, com.mojang.serialization.Lifecycle lifecycle)<V extends T>
VSimpleRegistry. add(RegistryKey<T> key, V entry, com.mojang.serialization.Lifecycle lifecycle)private 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)abstract booleanRegistry. contains(RegistryKey<T> key)booleanSimpleRegistry. contains(RegistryKey<T> key)private 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 <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<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.abstract TRegistry. get(@Nullable RegistryKey<T> key)TSimpleRegistry. get(@Nullable RegistryKey<T> key)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)<E> Optional<? extends Registry<E>>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.Optional<T>Registry. getOrEmpty(@Nullable RegistryKey<T> key)TRegistry. getOrThrow(RegistryKey<T> key)Gets an entry from the registry.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).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, com.mojang.serialization.Codec<E> networkEntryCodec)abstract <V extends T>
VMutableRegistry. replace(OptionalInt rawId, RegistryKey<T> key, V newEntry, com.mojang.serialization.Lifecycle lifecycle)If the given key is already present in the registry, replaces the entry associated with the given key with the new entry.<V extends T>
VSimpleRegistry. replace(OptionalInt rawId, RegistryKey<T> key, V newEntry, com.mojang.serialization.Lifecycle lifecycle)If the given key is already present in the registry, replaces the entry associated with the given key with the new entry.static <V, T extends V>
TBuiltinRegistries. set(Registry<V> registry, int rawId, RegistryKey<V> key, T object)<V extends T>
VDefaultedRegistry. set(int rawId, RegistryKey<T> key, V entry, com.mojang.serialization.Lifecycle lifecycle)abstract <V extends T>
VMutableRegistry. set(int rawId, RegistryKey<T> key, V entry, com.mojang.serialization.Lifecycle lifecycle)<V extends T>
VSimpleRegistry. set(int rawId, RegistryKey<T> key, V entry, com.mojang.serialization.Lifecycle lifecycle)private <V extends T>
VSimpleRegistry. set(int rawId, RegistryKey<T> key, V entry, com.mojang.serialization.Lifecycle lifecycle, boolean checkDuplicateKeys)Method parameters in net.minecraft.util.registry with type arguments of type RegistryKey Modifier and Type Method Description 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)Constructors in net.minecraft.util.registry with parameters of type RegistryKey Constructor Description DefaultedRegistry(String defaultId, RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle)Info(RegistryKey<? extends Registry<E>> registry, com.mojang.serialization.Codec<E> entryCodec, @Nullable com.mojang.serialization.Codec<E> networkEntryCodec)MutableRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle)Registry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle)RegistryManagerEntry(RegistryKey<T> key, int rawId, T entry)SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle)Constructor parameters in net.minecraft.util.registry with type arguments of type RegistryKey Constructor Description Impl(Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> registries) -
Uses of RegistryKey in net.minecraft.village
Fields in net.minecraft.village with type parameters of type RegistryKey Modifier and Type Field Description private static Map<RegistryKey<Biome>,VillagerType>VillagerType. BIOME_TO_TYPEMethod parameters in net.minecraft.village with type arguments of type RegistryKey Modifier and Type Method Description static VillagerTypeVillagerType. forBiome(Optional<RegistryKey<Biome>> biomeKey) -
Uses of RegistryKey in net.minecraft.world
Fields in net.minecraft.world declared as RegistryKey Modifier and Type Field Description static RegistryKey<World>World. ENDstatic RegistryKey<World>World. NETHERstatic RegistryKey<World>World. OVERWORLDprivate RegistryKey<World>World. registryKeyFields in net.minecraft.world with type parameters of type RegistryKey Modifier and Type Field Description static com.mojang.serialization.Codec<RegistryKey<World>>World. CODECMethods in net.minecraft.world that return RegistryKey Modifier and Type Method Description RegistryKey<World>World. getRegistryKey()Methods in net.minecraft.world that return types with arguments of type RegistryKey Modifier and Type Method Description default Optional<RegistryKey<Biome>>RegistryWorldView. getBiomeKey(BlockPos pos)Methods in net.minecraft.world with parameters of type RegistryKey Modifier and Type Method Description static FeatureUpdaterFeatureUpdater. create(RegistryKey<World> registryKey, @Nullable PersistentStateManager persistentStateManager)Constructors in net.minecraft.world with parameters of type RegistryKey Constructor Description World(MutableWorldProperties properties, RegistryKey<World> registryRef, DimensionType dimensionType, Supplier<Profiler> profiler, boolean isClient, boolean debugWorld, long seed) -
Uses of RegistryKey in net.minecraft.world.biome
Fields in net.minecraft.world.biome with type parameters of type RegistryKey Modifier and Type Field Description private static Int2ObjectMap<RegistryKey<Biome>>BuiltinBiomes. BY_RAW_IDMethods in net.minecraft.world.biome that return RegistryKey Modifier and Type Method Description static RegistryKey<Biome>BuiltinBiomes. fromRawId(int rawId)private static RegistryKey<Biome>BiomeKeys. register(String name)Methods in net.minecraft.world.biome with parameters of type RegistryKey Modifier and Type Method Description private static BiomeBuiltinBiomes. register(int rawId, RegistryKey<Biome> registryKey, Biome biome) -
Uses of RegistryKey in net.minecraft.world.biome.source
Fields in net.minecraft.world.biome.source with type parameters of type RegistryKey Modifier and Type Field Description private static List<RegistryKey<Biome>>VanillaLayeredBiomeSource. BIOMES -
Uses of RegistryKey in net.minecraft.world.dimension
Fields in net.minecraft.world.dimension declared as RegistryKey Modifier and Type Field Description static RegistryKey<DimensionOptions>DimensionOptions. ENDstatic RegistryKey<DimensionOptions>DimensionOptions. NETHERstatic RegistryKey<DimensionOptions>DimensionOptions. OVERWORLDstatic RegistryKey<DimensionType>DimensionType. OVERWORLD_CAVES_REGISTRY_KEYstatic RegistryKey<DimensionType>DimensionType. OVERWORLD_REGISTRY_KEYstatic RegistryKey<DimensionType>DimensionType. THE_END_REGISTRY_KEYstatic RegistryKey<DimensionType>DimensionType. THE_NETHER_REGISTRY_KEYFields in net.minecraft.world.dimension with type parameters of type RegistryKey Modifier and Type Field Description private static Set<RegistryKey<DimensionOptions>>DimensionOptions. BASE_DIMENSIONSMethods in net.minecraft.world.dimension that return types with arguments of type RegistryKey Modifier and Type Method Description static com.mojang.serialization.DataResult<RegistryKey<World>>DimensionType. worldFromDimensionNbt(com.mojang.serialization.Dynamic<?> nbt)Deprecated.Methods in net.minecraft.world.dimension with parameters of type RegistryKey Modifier and Type Method Description static FileDimensionType. getSaveDirectory(RegistryKey<World> worldRef, File root) -
Uses of RegistryKey in net.minecraft.world.gen
Methods in net.minecraft.world.gen that return types with arguments of type RegistryKey Modifier and Type Method Description ImmutableSet<RegistryKey<World>>GeneratorOptions. getWorlds() -
Uses of RegistryKey in net.minecraft.world.gen.chunk
Fields in net.minecraft.world.gen.chunk declared as RegistryKey Modifier and Type Field Description static RegistryKey<ChunkGeneratorSettings>ChunkGeneratorSettings. AMPLIFIEDstatic RegistryKey<ChunkGeneratorSettings>ChunkGeneratorSettings. CAVESstatic RegistryKey<ChunkGeneratorSettings>ChunkGeneratorSettings. ENDstatic RegistryKey<ChunkGeneratorSettings>ChunkGeneratorSettings. FLOATING_ISLANDSstatic RegistryKey<ChunkGeneratorSettings>ChunkGeneratorSettings. NETHERstatic RegistryKey<ChunkGeneratorSettings>ChunkGeneratorSettings. OVERWORLDMethods in net.minecraft.world.gen.chunk with parameters of type RegistryKey Modifier and Type Method Description booleanChunkGeneratorSettings. equals(RegistryKey<ChunkGeneratorSettings> registryKey)booleanNoiseChunkGenerator. matchesSettings(long seed, RegistryKey<ChunkGeneratorSettings> settingsKey)private static ChunkGeneratorSettingsChunkGeneratorSettings. register(RegistryKey<ChunkGeneratorSettings> registryKey, ChunkGeneratorSettings settings) -
Uses of RegistryKey in net.minecraft.world.level.storage
Methods in net.minecraft.world.level.storage with parameters of type RegistryKey Modifier and Type Method Description FileLevelStorage.Session. getWorldDirectory(RegistryKey<World> key) -
Uses of RegistryKey in net.minecraft.world.storage
Methods in net.minecraft.world.storage with parameters of type RegistryKey Modifier and Type Method Description NbtCompoundVersionedChunkStorage. updateChunkNbt(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt) -
Uses of RegistryKey in net.minecraft.world.updater
Fields in net.minecraft.world.updater with type parameters of type RegistryKey Modifier and Type Field Description private Object2FloatMap<RegistryKey<World>>WorldUpdater. dimensionProgressprivate ImmutableSet<RegistryKey<World>>WorldUpdater. worldsMethods in net.minecraft.world.updater that return types with arguments of type RegistryKey Modifier and Type Method Description ImmutableSet<RegistryKey<World>>WorldUpdater. getWorlds()Methods in net.minecraft.world.updater with parameters of type RegistryKey Modifier and Type Method Description private List<ChunkPos>WorldUpdater. getChunkPositions(RegistryKey<World> world)floatWorldUpdater. getProgress(RegistryKey<World> world)Constructor parameters in net.minecraft.world.updater with type arguments of type RegistryKey Constructor Description WorldUpdater(LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer, ImmutableSet<RegistryKey<World>> worlds, boolean eraseCache)