Uses of Class
net.minecraft.resources.ResourceKey
Package
Description
-
Uses of ResourceKey in com.mojang.realmsclient.util
ModifierConstructorDescriptionprivate
LevelType
(int p_239483_, ResourceKey<WorldPreset> p_239484_) -
Uses of ResourceKey in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionprivate final ResourceKey<Biome>
LocationPredicate.biome
private ResourceKey<Biome>
LocationPredicate.Builder.biome
private ResourceKey<Level>
LocationPredicate.Builder.dimension
private final ResourceKey<Level>
LocationPredicate.dimension
private final ResourceKey<Level>
ChangeDimensionTrigger.TriggerInstance.from
private ResourceKey<Structure>
LocationPredicate.Builder.structure
private final ResourceKey<Structure>
LocationPredicate.structure
private final ResourceKey<Level>
ChangeDimensionTrigger.TriggerInstance.to
Modifier and TypeMethodDescriptionChangeDimensionTrigger.TriggerInstance.changedDimension
(ResourceKey<Level> p_147561_, ResourceKey<Level> p_147562_) ChangeDimensionTrigger.TriggerInstance.changedDimensionFrom
(ResourceKey<Level> p_147564_) ChangeDimensionTrigger.TriggerInstance.changedDimensionTo
(ResourceKey<Level> p_19783_) static LocationPredicate
LocationPredicate.inBiome
(ResourceKey<Biome> p_52635_) static LocationPredicate
LocationPredicate.inDimension
(ResourceKey<Level> p_52639_) static LocationPredicate
LocationPredicate.inStructure
(ResourceKey<Structure> p_220590_) boolean
ChangeDimensionTrigger.TriggerInstance.matches
(ResourceKey<Level> p_19785_, ResourceKey<Level> p_19786_) LocationPredicate.Builder.setBiome
(ResourceKey<Biome> p_52657_) LocationPredicate.Builder.setDimension
(ResourceKey<Level> p_153977_) LocationPredicate.Builder.setStructure
(ResourceKey<Structure> p_220593_) void
ChangeDimensionTrigger.trigger
(ServerPlayer p_19758_, ResourceKey<Level> p_19759_, ResourceKey<Level> p_19760_) ModifierConstructorDescriptionLocationPredicate
(MinMaxBounds.Doubles p_207916_, MinMaxBounds.Doubles p_207917_, MinMaxBounds.Doubles p_207918_, ResourceKey<Biome> p_207919_, ResourceKey<Structure> p_207920_, ResourceKey<Level> p_207921_, Boolean p_207922_, LightPredicate p_207923_, BlockPredicate p_207924_, FluidPredicate p_207925_) TriggerInstance
(EntityPredicate.Composite p_19777_, ResourceKey<Level> p_19778_, ResourceKey<Level> p_19779_) -
Uses of ResourceKey in net.minecraft.client.gui.screens
Modifier and TypeFieldDescriptionprivate static final ResourceKey<Biome>
PresetFlatWorldScreen.DEFAULT_BIOME
-
Uses of ResourceKey in net.minecraft.client.gui.screens.worldselection
Modifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<Level>>
OptimizeWorldScreen.DIMENSION_COLORS
static final Map<Optional<ResourceKey<WorldPreset>>,
PresetEditor> PresetEditor.EDITORS
Modifier and TypeMethodDescriptionprivate static Optional<Holder<WorldPreset>>
WorldGenSettingsComponent.findPreset
(WorldCreationContext p_233048_, Optional<ResourceKey<WorldPreset>> p_233049_) ModifierConstructorDescriptionWorldGenSettingsComponent
(WorldCreationContext p_233011_, Optional<ResourceKey<WorldPreset>> p_233012_, OptionalLong p_233013_) -
Uses of ResourceKey in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionClientPacketListener.levels()
ClientSuggestionProvider.levels()
Modifier and TypeMethodDescriptionCompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
ClientSuggestionProvider.suggestRegistryElements
(ResourceKey<? extends Registry<?>> p_212429_, SharedSuggestionProvider.ElementSuggestionType p_212430_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212431_, com.mojang.brigadier.context.CommandContext<?> p_212432_) private <T> void
ClientPacketListener.updateTagsForRegistry
(ResourceKey<? extends Registry<? extends T>> p_205561_, TagNetworkSerialization.NetworkPayload p_205562_) ModifierConstructorDescriptionClientLevel
(ClientPacketListener p_205505_, ClientLevel.ClientLevelData p_205506_, ResourceKey<Level> p_205507_, Holder<DimensionType> p_205508_, int p_205509_, int p_205510_, Supplier<ProfilerFiller> p_205511_, LevelRenderer p_205512_, boolean p_205513_, long p_205514_) -
Uses of ResourceKey in net.minecraft.client.renderer
Modifier and TypeFieldDescriptionstatic final Map<ResourceKey<BannerPattern>,
Material> Sheets.BANNER_MATERIALS
static final Map<ResourceKey<BannerPattern>,
Material> Sheets.SHIELD_MATERIALS
Modifier and TypeMethodDescriptionprivate static Material
Sheets.createBannerMaterial
(ResourceKey<BannerPattern> p_234352_) private static Material
Sheets.createShieldMaterial
(ResourceKey<BannerPattern> p_234354_) static Material
Sheets.getBannerMaterial
(ResourceKey<BannerPattern> p_234348_) static Material
Sheets.getShieldMaterial
(ResourceKey<BannerPattern> p_234350_) -
Uses of ResourceKey in net.minecraft.commands
Modifier and TypeMethodDescription<T> HolderLookup<T>
CommandBuildContext.holderLookup
(ResourceKey<? extends Registry<T>> p_227134_) CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
CommandSourceStack.suggestRegistryElements
(ResourceKey<? extends Registry<?>> p_212330_, SharedSuggestionProvider.ElementSuggestionType p_212331_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212332_, com.mojang.brigadier.context.CommandContext<?> p_212333_) CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
SharedSuggestionProvider.suggestRegistryElements
(ResourceKey<? extends Registry<?>> p_212339_, SharedSuggestionProvider.ElementSuggestionType p_212340_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212341_, com.mojang.brigadier.context.CommandContext<?> p_212342_) -
Uses of ResourceKey in net.minecraft.commands.arguments
Modifier and TypeFieldDescriptionprivate final ResourceKey<T>
ResourceOrTagLocationArgument.ResourceResult.key
The field for thekey
record component.(package private) final ResourceKey<? extends Registry<T>>
ResourceKeyArgument.Info.Template.registryKey
(package private) final ResourceKey<? extends Registry<T>>
ResourceKeyArgument.registryKey
(package private) final ResourceKey<? extends Registry<T>>
ResourceOrTagLocationArgument.Info.Template.registryKey
(package private) final ResourceKey<? extends Registry<T>>
ResourceOrTagLocationArgument.registryKey
Modifier and TypeMethodDescriptionprivate static <T> ResourceKey<T>
ResourceKeyArgument.getRegistryType
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_212374_, String p_212375_, ResourceKey<Registry<T>> p_212376_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_212377_) ResourceOrTagLocationArgument.ResourceResult.key()
Returns the value of thekey
record component.ResourceKeyArgument.parse
(com.mojang.brigadier.StringReader p_212369_) Modifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<ResourceKey<T>,
TagKey<T>> ResourceOrTagLocationArgument.ResourceResult.unwrap()
com.mojang.datafixers.util.Either<ResourceKey<T>,
TagKey<T>> ResourceOrTagLocationArgument.Result.unwrap()
com.mojang.datafixers.util.Either<ResourceKey<T>,
TagKey<T>> ResourceOrTagLocationArgument.TagResult.unwrap()
Modifier and TypeMethodDescriptionResourceOrTagLocationArgument.ResourceResult.cast
(ResourceKey<? extends Registry<E>> p_210988_) ResourceOrTagLocationArgument.Result.cast
(ResourceKey<? extends Registry<E>> p_210997_) ResourceOrTagLocationArgument.TagResult.cast
(ResourceKey<? extends Registry<E>> p_211022_) private static <T> Registry<T>
ResourceKeyArgument.getRegistry
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_212379_, ResourceKey<? extends Registry<T>> p_212380_) private static <T> Holder<T>
ResourceKeyArgument.getRegistryKeyType
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_233256_, String p_233257_, ResourceKey<Registry<T>> p_233258_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_233259_) private static <T> ResourceKey<T>
ResourceKeyArgument.getRegistryType
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_212374_, String p_212375_, ResourceKey<Registry<T>> p_212376_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_212377_) static <T> ResourceOrTagLocationArgument.Result<T>
ResourceOrTagLocationArgument.getRegistryType
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_210956_, String p_210957_, ResourceKey<Registry<T>> p_210958_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_210959_) static <T> ResourceKeyArgument<T>
ResourceKeyArgument.key
(ResourceKey<? extends Registry<T>> p_212387_) static <T> ResourceOrTagLocationArgument<T>
ResourceOrTagLocationArgument.resourceOrTag
(ResourceKey<? extends Registry<T>> p_210969_) ModifierConstructorDescriptionResourceKeyArgument
(ResourceKey<? extends Registry<T>> p_212367_) ResourceOrTagLocationArgument
(ResourceKey<? extends Registry<T>> p_210949_) (package private)
ResourceResult
(ResourceKey<T> key) Creates an instance of aResourceResult
record class.(package private)
Template
(ResourceKey<? extends Registry<T>> p_233296_) (package private)
Template
(ResourceKey<? extends Registry<T>> p_233432_) -
Uses of ResourceKey in net.minecraft.core
Modifier and TypeFieldDescriptionstatic final ResourceKey<Registry<Activity>>
Registry.ACTIVITY_REGISTRY
static final ResourceKey<Registry<Attribute>>
Registry.ATTRIBUTE_REGISTRY
static final ResourceKey<Registry<BannerPattern>>
Registry.BANNER_PATTERN_REGISTRY
static final ResourceKey<Registry<Biome>>
Registry.BIOME_REGISTRY
static final ResourceKey<Registry<com.mojang.serialization.Codec<? extends BiomeSource>>>
Registry.BIOME_SOURCE_REGISTRY
static final ResourceKey<Registry<BlockEntityType<?>>>
Registry.BLOCK_ENTITY_TYPE_REGISTRY
static final ResourceKey<Registry<BlockPredicateType<?>>>
Registry.BLOCK_PREDICATE_TYPE_REGISTRY
static final ResourceKey<Registry<Block>>
Registry.BLOCK_REGISTRY
static final ResourceKey<Registry<BlockStateProviderType<?>>>
Registry.BLOCK_STATE_PROVIDER_TYPE_REGISTRY
static final ResourceKey<Registry<WorldCarver<?>>>
Registry.CARVER_REGISTRY
static final ResourceKey<Registry<CatVariant>>
Registry.CAT_VARIANT_REGISTRY
static final ResourceKey<Registry<ChatType>>
Registry.CHAT_TYPE_REGISTRY
static final ResourceKey<Registry<com.mojang.serialization.Codec<? extends ChunkGenerator>>>
Registry.CHUNK_GENERATOR_REGISTRY
static final ResourceKey<Registry<ChunkStatus>>
Registry.CHUNK_STATUS_REGISTRY
static final ResourceKey<Registry<ArgumentTypeInfo<?,
?>>> Registry.COMMAND_ARGUMENT_TYPE_REGISTRY
static final ResourceKey<Registry<com.mojang.serialization.Codec<? extends SurfaceRules.ConditionSource>>>
Registry.CONDITION_REGISTRY
static final ResourceKey<Registry<ConfiguredWorldCarver<?>>>
Registry.CONFIGURED_CARVER_REGISTRY
static final ResourceKey<Registry<ConfiguredFeature<?,
?>>> Registry.CONFIGURED_FEATURE_REGISTRY
static final ResourceKey<Registry<ResourceLocation>>
Registry.CUSTOM_STAT_REGISTRY
static final ResourceKey<Registry<DensityFunction>>
Registry.DENSITY_FUNCTION_REGISTRY
static final ResourceKey<Registry<com.mojang.serialization.Codec<? extends DensityFunction>>>
Registry.DENSITY_FUNCTION_TYPE_REGISTRY
private final ResourceKey<Level>
GlobalPos.dimension
static final ResourceKey<Registry<Level>>
Registry.DIMENSION_REGISTRY
static final ResourceKey<Registry<DimensionType>>
Registry.DIMENSION_TYPE_REGISTRY
static final ResourceKey<Registry<Enchantment>>
Registry.ENCHANTMENT_REGISTRY
static final ResourceKey<Registry<EntityType<?>>>
Registry.ENTITY_TYPE_REGISTRY
static final ResourceKey<Registry<Feature<?>>>
Registry.FEATURE_REGISTRY
static final ResourceKey<Registry<FeatureSizeType<?>>>
Registry.FEATURE_SIZE_TYPE_REGISTRY
static final ResourceKey<Registry<FlatLevelGeneratorPreset>>
Registry.FLAT_LEVEL_GENERATOR_PRESET_REGISTRY
static final ResourceKey<Registry<FloatProviderType<?>>>
Registry.FLOAT_PROVIDER_TYPE_REGISTRY
static final ResourceKey<Registry<Fluid>>
Registry.FLUID_REGISTRY
static final ResourceKey<Registry<FoliagePlacerType<?>>>
Registry.FOLIAGE_PLACER_TYPE_REGISTRY
static final ResourceKey<Registry<FrogVariant>>
Registry.FROG_VARIANT_REGISTRY
static final ResourceKey<Registry<GameEvent>>
Registry.GAME_EVENT_REGISTRY
static final ResourceKey<Registry<HeightProviderType<?>>>
Registry.HEIGHT_PROVIDER_TYPE_REGISTRY
static final ResourceKey<Registry<Instrument>>
Registry.INSTRUMENT_REGISTRY
static final ResourceKey<Registry<IntProviderType<?>>>
Registry.INT_PROVIDER_TYPE_REGISTRY
static final ResourceKey<Registry<Item>>
Registry.ITEM_REGISTRY
private ResourceKey<T>
Holder.Reference.key
private final ResourceKey<? extends Registry<T>>
Registry.key
private final ResourceKey<? extends Registry<E>>
RegistryAccess.RegistryData.key
The field for thekey
record component.private final ResourceKey<? extends Registry<T>>
RegistryAccess.RegistryEntry.key
The field for thekey
record component.private final ResourceKey<T>
RegistryCodecs.RegistryEntry.key
The field for thekey
record component.static final ResourceKey<Registry<LevelStem>>
Registry.LEVEL_STEM_REGISTRY
static final ResourceKey<Registry<LootPoolEntryType>>
Registry.LOOT_ENTRY_REGISTRY
static final ResourceKey<Registry<LootItemFunctionType>>
Registry.LOOT_FUNCTION_REGISTRY
static final ResourceKey<Registry<LootItemConditionType>>
Registry.LOOT_ITEM_REGISTRY
static final ResourceKey<Registry<LootNbtProviderType>>
Registry.LOOT_NBT_PROVIDER_REGISTRY
static final ResourceKey<Registry<LootNumberProviderType>>
Registry.LOOT_NUMBER_PROVIDER_REGISTRY
static final ResourceKey<Registry<LootScoreProviderType>>
Registry.LOOT_SCORE_PROVIDER_REGISTRY
static final ResourceKey<Registry<MemoryModuleType<?>>>
Registry.MEMORY_MODULE_TYPE_REGISTRY
static final ResourceKey<Registry<MenuType<?>>>
Registry.MENU_REGISTRY
static final ResourceKey<Registry<MobEffect>>
Registry.MOB_EFFECT_REGISTRY
static final ResourceKey<Registry<NoiseGeneratorSettings>>
Registry.NOISE_GENERATOR_SETTINGS_REGISTRY
static final ResourceKey<Registry<NormalNoise.NoiseParameters>>
Registry.NOISE_REGISTRY
static final ResourceKey<Registry<PaintingVariant>>
Registry.PAINTING_VARIANT_REGISTRY
static final ResourceKey<Registry<ParticleType<?>>>
Registry.PARTICLE_TYPE_REGISTRY
static final ResourceKey<Registry<PlacedFeature>>
Registry.PLACED_FEATURE_REGISTRY
static final ResourceKey<Registry<PlacementModifierType<?>>>
Registry.PLACEMENT_MODIFIER_REGISTRY
static final ResourceKey<Registry<PoiType>>
Registry.POINT_OF_INTEREST_TYPE_REGISTRY
static final ResourceKey<Registry<PosRuleTestType<?>>>
Registry.POS_RULE_TEST_REGISTRY
static final ResourceKey<Registry<PositionSourceType<?>>>
Registry.POSITION_SOURCE_TYPE_REGISTRY
static final ResourceKey<Registry<Potion>>
Registry.POTION_REGISTRY
static final ResourceKey<Registry<StructureProcessorList>>
Registry.PROCESSOR_LIST_REGISTRY
static final ResourceKey<Registry<RecipeSerializer<?>>>
Registry.RECIPE_SERIALIZER_REGISTRY
static final ResourceKey<Registry<RecipeType<?>>>
Registry.RECIPE_TYPE_REGISTRY
static final ResourceKey<Registry<RootPlacerType<?>>>
Registry.ROOT_PLACER_TYPE_REGISTRY
static final ResourceKey<Registry<com.mojang.serialization.Codec<? extends SurfaceRules.RuleSource>>>
Registry.RULE_REGISTRY
static final ResourceKey<Registry<RuleTestType<?>>>
Registry.RULE_TEST_REGISTRY
static final ResourceKey<Registry<Schedule>>
Registry.SCHEDULE_REGISTRY
static final ResourceKey<Registry<SensorType<?>>>
Registry.SENSOR_TYPE_REGISTRY
static final ResourceKey<Registry<SoundEvent>>
Registry.SOUND_EVENT_REGISTRY
static final ResourceKey<Registry<StatType<?>>>
Registry.STAT_TYPE_REGISTRY
static final ResourceKey<Registry<StructurePieceType>>
Registry.STRUCTURE_PIECE_REGISTRY
static final ResourceKey<Registry<StructurePlacementType<?>>>
Registry.STRUCTURE_PLACEMENT_TYPE_REGISTRY
static final ResourceKey<Registry<StructurePoolElementType<?>>>
Registry.STRUCTURE_POOL_ELEMENT_REGISTRY
static final ResourceKey<Registry<StructureProcessorType<?>>>
Registry.STRUCTURE_PROCESSOR_REGISTRY
static final ResourceKey<Registry<Structure>>
Registry.STRUCTURE_REGISTRY
static final ResourceKey<Registry<StructureSet>>
Registry.STRUCTURE_SET_REGISTRY
static final ResourceKey<Registry<StructureType<?>>>
Registry.STRUCTURE_TYPE_REGISTRY
static final ResourceKey<Registry<StructureTemplatePool>>
Registry.TEMPLATE_POOL_REGISTRY
static final ResourceKey<Registry<TreeDecoratorType<?>>>
Registry.TREE_DECORATOR_TYPE_REGISTRY
static final ResourceKey<Registry<TrunkPlacerType<?>>>
Registry.TRUNK_PLACER_TYPE_REGISTRY
static final ResourceKey<Registry<VillagerProfession>>
Registry.VILLAGER_PROFESSION_REGISTRY
static final ResourceKey<Registry<VillagerType>>
Registry.VILLAGER_TYPE_REGISTRY
static final ResourceKey<Registry<WorldPreset>>
Registry.WORLD_PRESET_REGISTRY
Modifier and TypeFieldDescriptionprivate final Map<ResourceKey<T>,
Holder.Reference<T>> MappedRegistry.byKey
private final Map<? extends ResourceKey<? extends Registry<?>>,
? extends Registry<?>> RegistryAccess.ImmutableRegistryAccess.registries
private final Map<? extends ResourceKey<? extends Registry<?>>,
? extends WritableRegistry<?>> RegistryAccess.WritableRegistryAccess.registries
static final Map<ResourceKey<? extends Registry<?>>,
RegistryAccess.RegistryData<?>> RegistryAccess.REGISTRIES
Modifier and TypeMethodDescriptionprivate static <K extends ResourceKey<? extends Registry<?>>,
V extends Registry<?>>
com.mojang.serialization.Codec<RegistryAccess>RegistryAccess.captureMap
(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> p_206164_) Modifier and TypeMethodDescriptionprivate static <T> ResourceKey<Registry<T>>
Registry.createRegistryKey
(String p_122979_) GlobalPos.dimension()
Holder.Reference.key()
ResourceKey<? extends Registry<T>>
Registry.key()
ResourceKey<? extends Registry<E>>
RegistryAccess.RegistryData.key()
Returns the value of thekey
record component.ResourceKey<? extends Registry<T>>
RegistryAccess.RegistryEntry.key()
Returns the value of thekey
record component.RegistryCodecs.RegistryEntry.key()
Returns the value of thekey
record component.Modifier and TypeMethodDescriptionprivate static Map<ResourceKey<? extends Registry<?>>,
? extends WritableRegistry<?>> RegistryAccess.createFreshRegistries()
private static <T> com.mojang.serialization.Codec<Map<ResourceKey<T>,
T>> RegistryCodecs.directCodec
(ResourceKey<? extends Registry<T>> p_206316_, com.mojang.serialization.Codec<T> p_206317_) Set<Map.Entry<ResourceKey<T>,
T>> MappedRegistry.entrySet()
abstract Set<Map.Entry<ResourceKey<T>,
T>> Registry.entrySet()
MappedRegistry.getResourceKey
(T p_122755_) abstract Optional<ResourceKey<T>>
Registry.getResourceKey
(T p_123008_) HolderLookup.listElements()
HolderLookup.RegistryLookup.listElements()
Set<ResourceKey<T>>
MappedRegistry.registryKeySet()
abstract Set<ResourceKey<T>>
Registry.registryKeySet()
com.mojang.datafixers.util.Either<ResourceKey<T>,
T> Holder.Direct.unwrap()
com.mojang.datafixers.util.Either<ResourceKey<T>,
T> Holder.Reference.unwrap()
com.mojang.datafixers.util.Either<ResourceKey<T>,
T> Holder.unwrap()
Holder.Direct.unwrapKey()
Holder.Reference.unwrapKey()
Holder.unwrapKey()
Modifier and TypeMethodDescriptionvoid
Holder.Reference.bind
(ResourceKey<T> p_205776_, T p_205777_) boolean
MappedRegistry.containsKey
(ResourceKey<T> p_175392_) abstract boolean
Registry.containsKey
(ResourceKey<T> p_175475_) static <E> WritableRegistry<?>
RegistryAccess.createRegistry
(ResourceKey<? extends Registry<?>> p_206201_) static <T> Holder.Reference<T>
Holder.Reference.createStandAlone
(Registry<T> p_205767_, ResourceKey<T> p_205768_) static <E> com.mojang.serialization.Codec<Registry<E>>
RegistryCodecs.dataPackAwareCodec
(ResourceKey<? extends Registry<E>> p_206319_, com.mojang.serialization.Lifecycle p_206320_, com.mojang.serialization.Codec<E> p_206321_) private static <E> com.mojang.serialization.Decoder<Registry<E>>
RegistryCodecs.dataPackAwareDecoder
(ResourceKey<? extends Registry<E>> p_206283_, com.mojang.serialization.Codec<E> p_206284_, com.mojang.serialization.Decoder<Map<ResourceKey<E>, E>> p_206285_, com.mojang.serialization.Lifecycle p_206286_) private static <T> com.mojang.serialization.Codec<Map<ResourceKey<T>,
T>> RegistryCodecs.directCodec
(ResourceKey<? extends Registry<T>> p_206316_, com.mojang.serialization.Codec<T> p_206317_) private static <T> Registry<T>
Registry.forge
(ResourceKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle cycle, Registry.RegistryBootstrap<T> def) private static <T> DefaultedRegistry<T>
Registry.forge
(ResourceKey<? extends Registry<T>> key, String defKey, com.mojang.serialization.Lifecycle cycle, Registry.RegistryBootstrap<T> def) private static <T> DefaultedRegistry<T>
Registry.forge
(ResourceKey<? extends Registry<T>> key, String defKey, Registry.RegistryBootstrap<T> def) private static <T> Registry<T>
Registry.forge
(ResourceKey<? extends Registry<T>> key, Registry.RegistryBootstrap<T> def) private static <T> RegistryAccess.RegistryEntry<T>
RegistryAccess.RegistryEntry.fromUntyped
(ResourceKey<? extends Registry<?>> p_206244_, Registry<?> p_206245_) HolderLookup.get
(ResourceKey<T> p_235699_) HolderLookup.RegistryLookup.get
(ResourceKey<T> p_235708_) MappedRegistry.get
(ResourceKey<T> p_122714_) abstract T
Registry.get
(ResourceKey<T> p_122980_) MappedRegistry.getHolder
(ResourceKey<T> p_205905_) Registry.getHolder
(ResourceKey<T> p_206050_) Registry.getHolderOrThrow
(ResourceKey<T> p_206082_) private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>>
RegistryAccess.getNetworkCodec
(ResourceKey<? extends Registry<E>> p_206204_) Registry.getOptional
(ResourceKey<T> p_123010_) MappedRegistry.getOrCreateHolder
(ResourceKey<T> p_235720_) Registry.getOrCreateHolder
(ResourceKey<T> p_235798_) MappedRegistry.getOrCreateHolderOrThrow
(ResourceKey<T> p_235718_) Registry.getOrCreateHolderOrThrow
(ResourceKey<T> p_235795_) Registry.getOrThrow
(ResourceKey<T> p_123014_) static <E> com.mojang.serialization.Codec<HolderSet<E>>
RegistryCodecs.homogeneousList
(ResourceKey<? extends Registry<E>> p_206278_) static <E> com.mojang.serialization.Codec<HolderSet<E>>
RegistryCodecs.homogeneousList
(ResourceKey<? extends Registry<E>> p_206311_, boolean p_206312_) static <E> com.mojang.serialization.Codec<HolderSet<E>>
RegistryCodecs.homogeneousList
(ResourceKey<? extends Registry<E>> p_206280_, com.mojang.serialization.Codec<E> p_206281_) static <E> com.mojang.serialization.Codec<HolderSet<E>>
RegistryCodecs.homogeneousList
(ResourceKey<? extends Registry<E>> p_206288_, com.mojang.serialization.Codec<E> p_206289_, boolean p_206290_) private static <T,
R extends WritableRegistry<T>>
RRegistry.internalRegister
(ResourceKey<? extends Registry<T>> p_206012_, R p_206013_, Registry.RegistryBootstrap<T> p_206014_, com.mojang.serialization.Lifecycle p_206015_) boolean
Holder.Direct.is
(ResourceKey<T> p_205725_) boolean
Holder.is
(ResourceKey<T> p_205712_) boolean
Holder.Reference.is
(ResourceKey<T> p_205774_) static <T> com.mojang.serialization.Codec<Registry<T>>
RegistryCodecs.networkCodec
(ResourceKey<? extends Registry<T>> p_206292_, com.mojang.serialization.Lifecycle p_206293_, com.mojang.serialization.Codec<T> p_206294_) static GlobalPos
GlobalPos.of
(ResourceKey<Level> p_122644_, BlockPos p_122645_) RegistryAccess.ImmutableRegistryAccess.ownedRegistry
(ResourceKey<? extends Registry<? extends E>> p_206229_) RegistryAccess.ownedRegistry
(ResourceKey<? extends Registry<? extends E>> p_175507_) RegistryAccess.WritableRegistryAccess.ownedRegistry
(ResourceKey<? extends Registry<? extends E>> p_206263_) default <E> Registry<E>
RegistryAccess.ownedRegistryOrThrow
(ResourceKey<? extends Registry<? extends E>> p_206192_) <E> Optional<WritableRegistry<E>>
RegistryAccess.Writable.ownedWritableRegistry
(ResourceKey<? extends Registry<? extends E>> p_206252_) <E> Optional<WritableRegistry<E>>
RegistryAccess.WritableRegistryAccess.ownedWritableRegistry
(ResourceKey<? extends Registry<? extends E>> p_206268_) default <E> WritableRegistry<E>
RegistryAccess.Writable.ownedWritableRegistryOrThrow
(ResourceKey<? extends Registry<? extends E>> p_206254_) private static <E> void
RegistryAccess.put
(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistryAccess.RegistryData<?>> p_123054_, ResourceKey<? extends Registry<E>> p_123055_, com.mojang.serialization.Codec<E> p_123056_) private static <E> void
RegistryAccess.put
(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistryAccess.RegistryData<?>> p_123058_, ResourceKey<? extends Registry<E>> p_123059_, com.mojang.serialization.Codec<E> p_123060_, com.mojang.serialization.Codec<E> p_123061_) MappedRegistry.register
(ResourceKey<T> p_205891_, T p_205892_, com.mojang.serialization.Lifecycle p_205893_) static <V,
T extends V>
TRegistry.register
(Registry<V> p_194580_, ResourceKey<V> p_194581_, T p_194582_) WritableRegistry.register
(ResourceKey<T> p_206376_, T p_206377_, com.mojang.serialization.Lifecycle p_206378_) private static <T> DefaultedRegistry<T>
Registry.registerDefaulted
(ResourceKey<? extends Registry<T>> p_206022_, String p_206023_, com.mojang.serialization.Lifecycle p_206024_, Function<T, Holder.Reference<T>> p_206025_, Registry.RegistryBootstrap<T> p_206026_) private static <T> DefaultedRegistry<T>
Registry.registerDefaulted
(ResourceKey<? extends Registry<T>> p_206017_, String p_206018_, com.mojang.serialization.Lifecycle p_206019_, Registry.RegistryBootstrap<T> p_206020_) private static <T> DefaultedRegistry<T>
Registry.registerDefaulted
(ResourceKey<? extends Registry<T>> p_206032_, String p_206033_, Function<T, Holder.Reference<T>> p_206034_, Registry.RegistryBootstrap<T> p_206035_) private static <T> DefaultedRegistry<T>
Registry.registerDefaulted
(ResourceKey<? extends Registry<T>> p_206028_, String p_206029_, Registry.RegistryBootstrap<T> p_206030_) DefaultedRegistry.registerMapping
(int p_205698_, ResourceKey<T> p_205699_, T p_205700_, com.mojang.serialization.Lifecycle p_205701_) MappedRegistry.registerMapping
(int p_205853_, ResourceKey<T> p_205854_, T p_205855_, com.mojang.serialization.Lifecycle p_205856_) MappedRegistry.registerMapping
(int p_205858_, ResourceKey<T> p_205859_, T p_205860_, com.mojang.serialization.Lifecycle p_205861_, boolean p_205862_) WritableRegistry.registerMapping
(int p_206368_, ResourceKey<T> p_206369_, T p_206370_, com.mojang.serialization.Lifecycle p_206371_) MappedRegistry.registerOrOverride
(OptionalInt p_205884_, ResourceKey<T> p_205885_, T p_205886_, com.mojang.serialization.Lifecycle p_205887_) WritableRegistry.registerOrOverride
(OptionalInt p_206372_, ResourceKey<T> p_206373_, T p_206374_, com.mojang.serialization.Lifecycle p_206375_) private static <T> Registry<T>
Registry.registerSimple
(ResourceKey<? extends Registry<T>> p_206004_, com.mojang.serialization.Lifecycle p_206005_, Function<T, Holder.Reference<T>> p_206006_, Registry.RegistryBootstrap<T> p_206007_) private static <T> Registry<T>
Registry.registerSimple
(ResourceKey<? extends Registry<T>> p_206000_, com.mojang.serialization.Lifecycle p_206001_, Registry.RegistryBootstrap<T> p_206002_) private static <T> Registry<T>
Registry.registerSimple
(ResourceKey<? extends Registry<T>> p_206009_, Registry.RegistryBootstrap<T> p_206010_) RegistryAccess.registry
(ResourceKey<? extends Registry<? extends E>> p_123085_) default <E> Registry<E>
RegistryAccess.registryOrThrow
(ResourceKey<? extends Registry<? extends E>> p_175516_) static <E> Registry<E>
RegistryAccess.retrieveRegistry
(ResourceKey<? extends Registry<? extends E>> p_206185_, com.mojang.serialization.Dynamic<?> p_206186_) private void
MappedRegistry.validateWrite
(ResourceKey<T> p_205922_) private static <T> com.mojang.serialization.MapCodec<RegistryCodecs.RegistryEntry<T>>
RegistryCodecs.withNameAndId
(ResourceKey<? extends Registry<T>> p_206304_, com.mojang.serialization.MapCodec<T> p_206305_) Modifier and TypeMethodDescriptionprivate static <E> com.mojang.serialization.Decoder<Registry<E>>
RegistryCodecs.dataPackAwareDecoder
(ResourceKey<? extends Registry<E>> p_206283_, com.mojang.serialization.Codec<E> p_206284_, com.mojang.serialization.Decoder<Map<ResourceKey<E>, E>> p_206285_, com.mojang.serialization.Lifecycle p_206286_) private static <T,
R extends Registry<? extends T>>
RegistryAccess.RegistryEntry<T>RegistryAccess.RegistryEntry.fromMapEntry
(Map.Entry<? extends ResourceKey<? extends Registry<?>>, R> p_206242_) boolean
Holder.Direct.is
(Predicate<ResourceKey<T>> p_205723_) boolean
Holder.is
(Predicate<ResourceKey<T>> p_205711_) boolean
Holder.Reference.is
(Predicate<ResourceKey<T>> p_205772_) private static <E> void
RegistryAccess.put
(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistryAccess.RegistryData<?>> p_123054_, ResourceKey<? extends Registry<E>> p_123055_, com.mojang.serialization.Codec<E> p_123056_) private static <E> void
RegistryAccess.put
(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistryAccess.RegistryData<?>> p_123058_, ResourceKey<? extends Registry<E>> p_123059_, com.mojang.serialization.Codec<E> p_123060_, com.mojang.serialization.Codec<E> p_123061_) ModifierConstructorDescriptionDefaultedRegistry
(String p_205693_, ResourceKey<? extends Registry<T>> p_205694_, com.mojang.serialization.Lifecycle p_205695_, Function<T, Holder.Reference<T>> p_205696_) private
GlobalPos
(ResourceKey<Level> p_122638_, BlockPos p_122639_) MappedRegistry
(ResourceKey<? extends Registry<T>> p_205849_, com.mojang.serialization.Lifecycle p_205850_, Function<T, Holder.Reference<T>> p_205851_) private
Reference
(Holder.Reference.Type p_205754_, Registry<T> p_205755_, ResourceKey<T> p_205756_, T p_205757_) protected
Registry
(ResourceKey<? extends Registry<T>> p_122920_, com.mojang.serialization.Lifecycle p_122921_) RegistryData
(ResourceKey<? extends Registry<E>> key, com.mojang.serialization.Codec<E> codec, com.mojang.serialization.Codec<E> networkCodec) Creates an instance of aRegistryData
record class.RegistryEntry
(ResourceKey<? extends Registry<T>> key, Registry<T> value) Creates an instance of aRegistryEntry
record class.(package private)
RegistryEntry
(ResourceKey<T> key, int id, T value) Creates an instance of aRegistryEntry
record class.WritableRegistry
(ResourceKey<? extends Registry<T>> p_123346_, com.mojang.serialization.Lifecycle p_123347_) ModifierConstructorDescriptionImmutableRegistryAccess
(Map<? extends ResourceKey<? extends Registry<?>>, ? extends Registry<?>> p_206225_) (package private)
WritableRegistryAccess
(Map<? extends ResourceKey<? extends Registry<?>>, ? extends WritableRegistry<?>> p_206259_) -
Uses of ResourceKey in net.minecraft.data
Modifier and TypeMethodDescriptionprivate static <T> Registry<T>
BuiltinRegistries.forge
(ResourceKey<? extends Registry<T>> key, BuiltinRegistries.RegistryBootstrap<T> bootstrap) private static <T,
R extends WritableRegistry<T>>
RBuiltinRegistries.internalRegister
(ResourceKey<? extends Registry<T>> p_235997_, R p_235998_, BuiltinRegistries.RegistryBootstrap<T> p_235999_, com.mojang.serialization.Lifecycle p_236000_) static <T> Holder<T>
BuiltinRegistries.register
(Registry<T> p_206385_, ResourceKey<T> p_206386_, T p_206387_) private static <T> Registry<T>
BuiltinRegistries.registerSimple
(ResourceKey<? extends Registry<T>> p_235993_, com.mojang.serialization.Lifecycle p_235994_, BuiltinRegistries.RegistryBootstrap<T> p_235995_) private static <T> Registry<T>
BuiltinRegistries.registerSimple
(ResourceKey<? extends Registry<T>> p_236002_, BuiltinRegistries.RegistryBootstrap<T> p_236003_) -
Uses of ResourceKey in net.minecraft.data.advancements
Modifier and TypeFieldDescriptionprivate static final List<ResourceKey<Biome>>
NetherAdvancements.EXPLORABLE_BIOMES
Modifier and TypeMethodDescriptionprotected static Advancement.Builder
AdventureAdvancements.addBiomes
(Advancement.Builder p_123987_, List<ResourceKey<Biome>> p_123988_) -
Uses of ResourceKey in net.minecraft.data.tags
Modifier and TypeMethodDescriptionfinal TagsProvider.TagAppender<T>
TagsProvider.TagAppender.add
(ResourceKey<T>... p_211102_) -
Uses of ResourceKey in net.minecraft.data.worldgen
Modifier and TypeMethodDescriptionprivate static Holder<NormalNoise.NoiseParameters>
NoiseData.register
(Registry<NormalNoise.NoiseParameters> p_236485_, ResourceKey<NormalNoise.NoiseParameters> p_236486_, int p_236487_, double p_236488_, double... p_236489_) Structures.register
(ResourceKey<Structure> p_236534_, Structure p_236535_) static Holder<StructureSet>
StructureSets.register
(ResourceKey<StructureSet> p_211132_, Holder<Structure> p_211133_, StructurePlacement p_211134_) static Holder<StructureSet>
StructureSets.register
(ResourceKey<StructureSet> p_211129_, StructureSet p_211130_) private static void
NoiseData.registerBiomeNoises
(Registry<NormalNoise.NoiseParameters> p_236478_, int p_236479_, ResourceKey<NormalNoise.NoiseParameters> p_236480_, ResourceKey<NormalNoise.NoiseParameters> p_236481_, ResourceKey<NormalNoise.NoiseParameters> p_236482_, ResourceKey<NormalNoise.NoiseParameters> p_236483_) -
Uses of ResourceKey in net.minecraft.network
Modifier and TypeMethodDescription<T> ResourceKey<T>
FriendlyByteBuf.readResourceKey
(ResourceKey<? extends Registry<T>> p_236802_) Modifier and TypeMethodDescription<T> ResourceKey<T>
FriendlyByteBuf.readResourceKey
(ResourceKey<? extends Registry<T>> p_236802_) void
FriendlyByteBuf.writeResourceKey
(ResourceKey<?> p_236859_) -
Uses of ResourceKey in net.minecraft.network.chat
Modifier and TypeFieldDescriptionstatic final ResourceKey<ChatType>
ChatType.CHAT
static final ResourceKey<ChatType>
ChatType.EMOTE_COMMAND
static final ResourceKey<ChatType>
ChatType.MSG_COMMAND_INCOMING
static final ResourceKey<ChatType>
ChatType.MSG_COMMAND_OUTGOING
static final ResourceKey<ChatType>
ChatType.SAY_COMMAND
static final ResourceKey<ChatType>
ChatType.TEAM_MSG_COMMAND_INCOMING
static final ResourceKey<ChatType>
ChatType.TEAM_MSG_COMMAND_OUTGOING
Modifier and TypeMethodDescriptionstatic ChatType.Bound
ChatType.bind
(ResourceKey<ChatType> p_241345_, CommandSourceStack p_241466_) static ChatType.Bound
ChatType.bind
(ResourceKey<ChatType> p_241284_, RegistryAccess p_241373_, Component p_241455_) static ChatType.Bound
ChatType.bind
(ResourceKey<ChatType> p_241279_, Entity p_241483_) -
Uses of ResourceKey in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final ResourceKey<Level>
ClientboundLoginPacket.dimension
The field for thedimension
record component.private final ResourceKey<Level>
ClientboundRespawnPacket.dimension
private final ResourceKey<DimensionType>
ClientboundLoginPacket.dimensionType
The field for thedimensionType
record component.private final ResourceKey<DimensionType>
ClientboundRespawnPacket.dimensionType
Modifier and TypeFieldDescriptionprivate final Set<ResourceKey<Level>>
ClientboundLoginPacket.levels
The field for thelevels
record component.private final Map<ResourceKey<? extends Registry<?>>,
TagNetworkSerialization.NetworkPayload> ClientboundUpdateTagsPacket.tags
Modifier and TypeMethodDescriptionClientboundLoginPacket.dimension()
Returns the value of thedimension
record component.ClientboundLoginPacket.dimensionType()
Returns the value of thedimensionType
record component.ClientboundRespawnPacket.getDimension()
ClientboundRespawnPacket.getDimensionType()
Modifier and TypeMethodDescriptionMap<ResourceKey<? extends Registry<?>>,
TagNetworkSerialization.NetworkPayload> ClientboundUpdateTagsPacket.getTags()
ClientboundLoginPacket.levels()
Returns the value of thelevels
record component.ModifierConstructorDescriptionClientboundLoginPacket
(int playerId, boolean hardcore, GameType gameType, GameType previousGameType, Set<ResourceKey<Level>> levels, RegistryAccess.Frozen registryHolder, ResourceKey<DimensionType> dimensionType, ResourceKey<Level> dimension, long seed, int maxPlayers, int chunkRadius, int simulationDistance, boolean reducedDebugInfo, boolean showDeathScreen, boolean isDebug, boolean isFlat, Optional<GlobalPos> lastDeathLocation) Creates an instance of aClientboundLoginPacket
record class.ClientboundRespawnPacket
(ResourceKey<DimensionType> p_238301_, ResourceKey<Level> p_238302_, long p_238303_, GameType p_238304_, GameType p_238305_, boolean p_238306_, boolean p_238307_, boolean p_238308_, Optional<GlobalPos> p_238309_) ModifierConstructorDescriptionClientboundLoginPacket
(int playerId, boolean hardcore, GameType gameType, GameType previousGameType, Set<ResourceKey<Level>> levels, RegistryAccess.Frozen registryHolder, ResourceKey<DimensionType> dimensionType, ResourceKey<Level> dimension, long seed, int maxPlayers, int chunkRadius, int simulationDistance, boolean reducedDebugInfo, boolean showDeathScreen, boolean isDebug, boolean isFlat, Optional<GlobalPos> lastDeathLocation) Creates an instance of aClientboundLoginPacket
record class.ClientboundUpdateTagsPacket
(Map<ResourceKey<? extends Registry<?>>, TagNetworkSerialization.NetworkPayload> p_179473_) -
Uses of ResourceKey in net.minecraft.resources
Modifier and TypeFieldDescriptionprivate final ResourceKey<? extends Registry<E>>
HolderSetCodec.registryKey
private final ResourceKey<? extends Registry<E>>
RegistryFileCodec.registryKey
private final ResourceKey<? extends Registry<E>>
RegistryFixedCodec.registryKey
Modifier and TypeFieldDescriptionprivate final Map<ResourceKey<?>,
RegistryResourceAccess.InMemoryStorage.Entry> RegistryResourceAccess.InMemoryStorage.entries
private final Map<ResourceKey<? extends Registry<?>>,
RegistryLoader.ReadCache<?>> RegistryLoader.readCache
(package private) final Map<ResourceKey<E>,
com.mojang.serialization.DataResult<Holder<E>>> RegistryLoader.ReadCache.values
private static final Map<String,
ResourceKey<?>> ResourceKey.VALUES
Modifier and TypeMethodDescriptionstatic <T> ResourceKey<T>
ResourceKey.create
(ResourceKey<? extends Registry<T>> p_135786_, ResourceLocation p_135787_) private static <T> ResourceKey<T>
ResourceKey.create
(ResourceLocation p_135791_, ResourceLocation p_135792_) static <T> ResourceKey<Registry<T>>
ResourceKey.createRegistryKey
(ResourceLocation p_135789_) Modifier and TypeMethodDescription<E> Optional<ResourceKey<E>>
ResourceKey.cast
(ResourceKey<? extends Registry<E>> p_195976_) static <T> com.mojang.serialization.Codec<ResourceKey<T>>
ResourceKey.codec
(ResourceKey<? extends Registry<T>> p_195967_) <E> Map<ResourceKey<E>,
RegistryResourceAccess.EntryThunk<E>> RegistryResourceAccess.InMemoryStorage.listResources
(ResourceKey<? extends Registry<E>> p_214274_) <E> Map<ResourceKey<E>,
RegistryResourceAccess.EntryThunk<E>> RegistryResourceAccess.listResources
(ResourceKey<? extends Registry<E>> p_214235_) Modifier and TypeMethodDescription<E> void
RegistryResourceAccess.InMemoryStorage.add
(RegistryAccess p_206837_, ResourceKey<E> p_206838_, com.mojang.serialization.Encoder<E> p_206839_, int p_206840_, E p_206841_, com.mojang.serialization.Lifecycle p_206842_) <E> Optional<ResourceKey<E>>
ResourceKey.cast
(ResourceKey<? extends Registry<E>> p_195976_) static <T> com.mojang.serialization.Codec<ResourceKey<T>>
ResourceKey.codec
(ResourceKey<? extends Registry<T>> p_195967_) int
ResourceKey.compareTo
(ResourceKey<?> o) static <E> com.mojang.serialization.Codec<HolderSet<E>>
HolderSetCodec.create
(ResourceKey<? extends Registry<E>> p_206686_, com.mojang.serialization.Codec<Holder<E>> p_206687_, boolean p_206688_) static <E> RegistryFileCodec<E>
RegistryFileCodec.create
(ResourceKey<? extends Registry<E>> p_135590_, com.mojang.serialization.Codec<E> p_135591_) static <E> RegistryFileCodec<E>
RegistryFileCodec.create
(ResourceKey<? extends Registry<E>> p_135593_, com.mojang.serialization.Codec<E> p_135594_, boolean p_135595_) static <E> RegistryFixedCodec<E>
RegistryFixedCodec.create
(ResourceKey<? extends Registry<E>> p_206741_) static <T> ResourceKey<T>
ResourceKey.create
(ResourceKey<? extends Registry<T>> p_135786_, ResourceLocation p_135787_) RegistryResourceAccess.getResource
(ResourceKey<E> p_214236_) RegistryResourceAccess.InMemoryStorage.getResource
(ResourceKey<E> p_214285_) boolean
ResourceKey.isFor
(ResourceKey<? extends Registry<?>> p_135784_) <E> Map<ResourceKey<E>,
RegistryResourceAccess.EntryThunk<E>> RegistryResourceAccess.InMemoryStorage.listResources
(ResourceKey<? extends Registry<E>> p_214274_) <E> Map<ResourceKey<E>,
RegistryResourceAccess.EntryThunk<E>> RegistryResourceAccess.listResources
(ResourceKey<? extends Registry<E>> p_214235_) <E> com.mojang.serialization.DataResult<Holder<E>>
RegistryLoader.Bound.overrideElementFromResources
(ResourceKey<? extends Registry<E>> p_206794_, com.mojang.serialization.Codec<E> p_206795_, ResourceKey<E> p_206796_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_206797_) (package private) <E> com.mojang.serialization.DataResult<Holder<E>>
RegistryLoader.overrideElementFromResources
(WritableRegistry<E> p_206768_, ResourceKey<? extends Registry<E>> p_206769_, com.mojang.serialization.Codec<E> p_206770_, ResourceKey<E> p_206771_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_206772_) private <E> com.mojang.serialization.DataResult<Holder<E>>
RegistryLoader.overrideElementFromResources
(WritableRegistry<E> p_214229_, ResourceKey<? extends Registry<E>> p_214230_, com.mojang.serialization.Codec<E> p_214231_, ResourceKey<E> p_214232_, Optional<RegistryResourceAccess.EntryThunk<E>> p_214233_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_214234_) <E> com.mojang.serialization.DataResult<? extends Registry<E>>
RegistryLoader.Bound.overrideRegistryFromResources
(ResourceKey<? extends Registry<E>> p_206790_, com.mojang.serialization.Codec<E> p_206791_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_206792_) <E> com.mojang.serialization.DataResult<? extends Registry<E>>
RegistryLoader.overrideRegistryFromResources
(WritableRegistry<E> p_206763_, ResourceKey<? extends Registry<E>> p_206764_, com.mojang.serialization.Codec<E> p_206765_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_206766_) private <E> RegistryLoader.ReadCache<E>
RegistryLoader.readCache
(ResourceKey<? extends Registry<E>> p_206774_) RegistryOps.registry
(ResourceKey<? extends Registry<? extends E>> p_206827_) static <E> com.mojang.serialization.MapCodec<Registry<E>>
RegistryOps.retrieveRegistry
(ResourceKey<? extends Registry<? extends E>> p_206833_) ModifierConstructorDescriptionprivate
HolderSetCodec
(ResourceKey<? extends Registry<E>> p_206660_, com.mojang.serialization.Codec<Holder<E>> p_206661_, boolean p_206662_) private
RegistryFileCodec
(ResourceKey<? extends Registry<E>> p_135574_, com.mojang.serialization.Codec<E> p_135575_, boolean p_135576_) private
RegistryFixedCodec
(ResourceKey<? extends Registry<E>> p_206723_) -
Uses of ResourceKey in net.minecraft.server
Modifier and TypeFieldDescriptionprivate final Map<ResourceKey<Level>,
ServerLevel> MinecraftServer.levels
private Map<ResourceKey<Level>,
long[]> MinecraftServer.perWorldTickTimes
Modifier and TypeMethodDescriptionMinecraftServer.forgeGetWorldMap()
Deprecated.MinecraftServer.levelKeys()
Modifier and TypeMethodDescriptionMinecraftServer.getLevel
(ResourceKey<Level> p_129881_) long[]
MinecraftServer.getTickTime
(ResourceKey<Level> dim) -
Uses of ResourceKey in net.minecraft.server.chase
Modifier and TypeFieldDescriptionprivate final ResourceKey<Level>
ChaseClient.TeleportTarget.level
The field for thelevel
record component.Modifier and TypeMethodDescriptionChaseClient.TeleportTarget.level()
Returns the value of thelevel
record component.ModifierConstructorDescription(package private)
TeleportTarget
(ResourceKey<Level> level, Vec3 pos, Vec2 rot) Creates an instance of aTeleportTarget
record class. -
Uses of ResourceKey in net.minecraft.server.commands
Modifier and TypeFieldDescriptionstatic com.google.common.collect.BiMap<String,
ResourceKey<Level>> ChaseCommand.DIMENSION_NAMES
-
Uses of ResourceKey in net.minecraft.server.dedicated
Modifier and TypeFieldDescriptionprivate static final Map<String,
ResourceKey<WorldPreset>> DedicatedServerProperties.WorldGenProperties.LEGACY_PRESET_NAMES
-
Uses of ResourceKey in net.minecraft.server.level
Modifier and TypeMethodDescriptionvoid
ServerPlayer.setRespawnPosition
(ResourceKey<Level> p_9159_, BlockPos p_9160_, float p_9161_, boolean p_9162_, boolean p_9163_) ModifierConstructorDescriptionServerLevel
(MinecraftServer p_214999_, Executor p_215000_, LevelStorageSource.LevelStorageAccess p_215001_, ServerLevelData p_215002_, ResourceKey<Level> p_215003_, LevelStem p_215004_, ChunkProgressListener p_215005_, boolean p_215006_, long p_215007_, List<CustomSpawner> p_215008_, boolean p_215009_) -
Uses of ResourceKey in net.minecraft.server.players
Modifier and TypeMethodDescriptionvoid
PlayerList.broadcast
(Player p_11242_, double p_11243_, double p_11244_, double p_11245_, double p_11246_, ResourceKey<Level> p_11247_, Packet<?> p_11248_) void
PlayerList.broadcastAll
(Packet<?> p_11271_, ResourceKey<Level> p_11272_) -
Uses of ResourceKey in net.minecraft.tags
Modifier and TypeFieldDescriptionprivate final ResourceKey<? extends Registry<T>>
TagManager.LoadResult.key
The field for thekey
record component.private final ResourceKey<? extends Registry<T>>
TagKey.registry
The field for theregistry
record component.Modifier and TypeFieldDescriptionprivate static final Map<ResourceKey<? extends Registry<?>>,
String> TagManager.CUSTOM_REGISTRY_DIRECTORIES
Modifier and TypeMethodDescriptionResourceKey<? extends Registry<T>>
TagManager.LoadResult.key()
Returns the value of thekey
record component.ResourceKey<? extends Registry<T>>
TagKey.registry()
Returns the value of theregistry
record component.Modifier and TypeMethodDescriptionstatic Map<ResourceKey<? extends Registry<?>>,
TagNetworkSerialization.NetworkPayload> TagNetworkSerialization.serializeTagsToNetwork
(RegistryAccess p_203951_) Modifier and TypeMethodDescriptionTagKey.cast
(ResourceKey<? extends Registry<E>> p_207648_) static <T> com.mojang.serialization.Codec<TagKey<T>>
TagKey.codec
(ResourceKey<? extends Registry<T>> p_203878_) static <T> TagKey<T>
TagKey.create
(ResourceKey<? extends Registry<T>> p_203883_, ResourceLocation p_203884_) static <T> void
TagNetworkSerialization.deserializeTagsFromNetwork
(ResourceKey<? extends Registry<T>> p_203953_, Registry<T> p_203954_, TagNetworkSerialization.NetworkPayload p_203955_, TagNetworkSerialization.TagOutput<T> p_203956_) static String
TagManager.getTagDir
(ResourceKey<? extends Registry<?>> p_203919_) static <T> com.mojang.serialization.Codec<TagKey<T>>
TagKey.hashedCodec
(ResourceKey<? extends Registry<T>> p_203887_) boolean
TagKey.isFor
(ResourceKey<? extends Registry<?>> p_207646_) ModifierConstructorDescriptionLoadResult
(ResourceKey<? extends Registry<T>> key, Map<ResourceLocation, Collection<Holder<T>>> tags) Creates an instance of aLoadResult
record class.TagKey
(ResourceKey<? extends Registry<T>> registry, ResourceLocation location) Creates an instance of aTagKey
record class. -
Uses of ResourceKey in net.minecraft.util.profiling.jfr
Modifier and TypeMethodDescriptionJfrProfiler.onChunkGenerate
(ChunkPos p_185313_, ResourceKey<Level> p_185314_, String p_185315_) JvmProfiler.NoOpProfiler.onChunkGenerate
(ChunkPos p_185370_, ResourceKey<Level> p_185371_, String p_185372_) JvmProfiler.onChunkGenerate
(ChunkPos p_185348_, ResourceKey<Level> p_185349_, String p_185350_) -
Uses of ResourceKey in net.minecraft.util.profiling.jfr.event
ModifierConstructorDescriptionChunkGenerationEvent
(ChunkPos p_195543_, ResourceKey<Level> p_195544_, String p_195545_) -
Uses of ResourceKey in net.minecraft.util.worldupdate
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2FloatMap<ResourceKey<Level>>
WorldUpgrader.progressMap
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet<ResourceKey<Level>>
WorldUpgrader.levels()
Modifier and TypeMethodDescriptionfloat
WorldUpgrader.dimensionProgress
(ResourceKey<Level> p_18828_) WorldUpgrader.getAllChunkPos
(ResourceKey<Level> p_18831_) -
Uses of ResourceKey in net.minecraft.world.entity.ai.village.poi
Modifier and TypeFieldDescriptionstatic final ResourceKey<PoiType>
PoiTypes.ARMORER
static final ResourceKey<PoiType>
PoiTypes.BEE_NEST
static final ResourceKey<PoiType>
PoiTypes.BEEHIVE
static final ResourceKey<PoiType>
PoiTypes.BUTCHER
static final ResourceKey<PoiType>
PoiTypes.CARTOGRAPHER
static final ResourceKey<PoiType>
PoiTypes.CLERIC
static final ResourceKey<PoiType>
PoiTypes.FARMER
static final ResourceKey<PoiType>
PoiTypes.FISHERMAN
static final ResourceKey<PoiType>
PoiTypes.FLETCHER
static final ResourceKey<PoiType>
PoiTypes.HOME
static final ResourceKey<PoiType>
PoiTypes.LEATHERWORKER
static final ResourceKey<PoiType>
PoiTypes.LIBRARIAN
static final ResourceKey<PoiType>
PoiTypes.LIGHTNING_ROD
static final ResourceKey<PoiType>
PoiTypes.LODESTONE
static final ResourceKey<PoiType>
PoiTypes.MASON
static final ResourceKey<PoiType>
PoiTypes.MEETING
static final ResourceKey<PoiType>
PoiTypes.NETHER_PORTAL
static final ResourceKey<PoiType>
PoiTypes.SHEPHERD
static final ResourceKey<PoiType>
PoiTypes.TOOLSMITH
static final ResourceKey<PoiType>
PoiTypes.WEAPONSMITH
Modifier and TypeMethodDescriptionboolean
PoiManager.existsAtPosition
(ResourceKey<PoiType> p_217875_, BlockPos p_217876_) private static PoiType
PoiTypes.register
(Registry<PoiType> p_218085_, ResourceKey<PoiType> p_218086_, Set<BlockState> p_218087_, int p_218088_, int p_218089_) -
Uses of ResourceKey in net.minecraft.world.entity.decoration
Modifier and TypeFieldDescriptionstatic final ResourceKey<PaintingVariant>
PaintingVariants.ALBAN
static final ResourceKey<PaintingVariant>
PaintingVariants.AZTEC
static final ResourceKey<PaintingVariant>
PaintingVariants.AZTEC2
static final ResourceKey<PaintingVariant>
PaintingVariants.BOMB
static final ResourceKey<PaintingVariant>
PaintingVariants.BURNING_SKULL
static final ResourceKey<PaintingVariant>
PaintingVariants.BUST
static final ResourceKey<PaintingVariant>
PaintingVariants.COURBET
static final ResourceKey<PaintingVariant>
PaintingVariants.CREEBET
private static final ResourceKey<PaintingVariant>
Painting.DEFAULT_VARIANT
static final ResourceKey<PaintingVariant>
PaintingVariants.DONKEY_KONG
static final ResourceKey<PaintingVariant>
PaintingVariants.EARTH
static final ResourceKey<PaintingVariant>
PaintingVariants.FIGHTERS
static final ResourceKey<PaintingVariant>
PaintingVariants.FIRE
static final ResourceKey<PaintingVariant>
PaintingVariants.GRAHAM
static final ResourceKey<PaintingVariant>
PaintingVariants.KEBAB
static final ResourceKey<PaintingVariant>
PaintingVariants.MATCH
static final ResourceKey<PaintingVariant>
PaintingVariants.PIGSCENE
static final ResourceKey<PaintingVariant>
PaintingVariants.PLANT
static final ResourceKey<PaintingVariant>
PaintingVariants.POINTER
static final ResourceKey<PaintingVariant>
PaintingVariants.POOL
static final ResourceKey<PaintingVariant>
PaintingVariants.SEA
static final ResourceKey<PaintingVariant>
PaintingVariants.SKELETON
static final ResourceKey<PaintingVariant>
PaintingVariants.SKULL_AND_ROSES
static final ResourceKey<PaintingVariant>
PaintingVariants.STAGE
static final ResourceKey<PaintingVariant>
PaintingVariants.SUNSET
static final ResourceKey<PaintingVariant>
PaintingVariants.VOID
static final ResourceKey<PaintingVariant>
PaintingVariants.WANDERER
static final ResourceKey<PaintingVariant>
PaintingVariants.WASTELAND
static final ResourceKey<PaintingVariant>
PaintingVariants.WATER
static final ResourceKey<PaintingVariant>
PaintingVariants.WIND
static final ResourceKey<PaintingVariant>
PaintingVariants.WITHER
-
Uses of ResourceKey in net.minecraft.world.entity.npc
Modifier and TypeFieldDescriptionprivate static final Map<ResourceKey<Biome>,
VillagerType> VillagerType.BY_BIOME
Modifier and TypeMethodDescriptionprivate static VillagerProfession
VillagerProfession.register
(String p_219648_, ResourceKey<PoiType> p_219649_, com.google.common.collect.ImmutableSet<Item> p_219650_, com.google.common.collect.ImmutableSet<Block> p_219651_, SoundEvent p_219652_) private static VillagerProfession
VillagerProfession.register
(String p_219644_, ResourceKey<PoiType> p_219645_, SoundEvent p_219646_) -
Uses of ResourceKey in net.minecraft.world.item
Modifier and TypeFieldDescriptionstatic final ResourceKey<Instrument>
Instruments.ADMIRE_GOAT_HORN
static final ResourceKey<Instrument>
Instruments.CALL_GOAT_HORN
static final ResourceKey<Instrument>
Instruments.DREAM_GOAT_HORN
static final ResourceKey<Instrument>
Instruments.FEEL_GOAT_HORN
static final ResourceKey<Instrument>
Instruments.PONDER_GOAT_HORN
static final ResourceKey<Instrument>
Instruments.SEEK_GOAT_HORN
static final ResourceKey<Instrument>
Instruments.SING_GOAT_HORN
static final ResourceKey<Instrument>
Instruments.YEARN_GOAT_HORN
Modifier and TypeMethodDescriptionprivate static Optional<ResourceKey<Level>>
CompassItem.getLodestoneDimension
(CompoundTag p_40728_) Modifier and TypeMethodDescriptionprivate void
CompassItem.addLodestoneTags
(ResourceKey<Level> p_40733_, BlockPos p_40734_, CompoundTag p_40735_) private static void
MapItem.createAndStoreSavedData
(ItemStack p_151112_, Level p_151113_, int p_151114_, int p_151115_, int p_151116_, boolean p_151117_, boolean p_151118_, ResourceKey<Level> p_151119_) private static int
MapItem.createNewSavedData
(Level p_151121_, int p_151122_, int p_151123_, int p_151124_, boolean p_151125_, boolean p_151126_, ResourceKey<Level> p_151127_) -
Uses of ResourceKey in net.minecraft.world.level
Modifier and TypeFieldDescriptionprivate final ResourceKey<Level>
Level.dimension
private final ResourceKey<DimensionType>
Level.dimensionTypeId
static final ResourceKey<Level>
Level.END
static final ResourceKey<Level>
Level.NETHER
static final ResourceKey<Level>
Level.OVERWORLD
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResourceKey<Level>>
Level.RESOURCE_KEY_CODEC
Modifier and TypeMethodDescriptionStructureManager.getStructureWithPieceAt
(BlockPos p_220489_, ResourceKey<Structure> p_220490_) ModifierConstructorDescriptionprotected
Level
(WritableLevelData p_220352_, ResourceKey<Level> p_220353_, Holder<DimensionType> p_220354_, Supplier<ProfilerFiller> p_220355_, boolean p_220356_, boolean p_220357_, long p_220358_, int p_220359_) -
Uses of ResourceKey in net.minecraft.world.level.biome
Modifier and TypeFieldDescriptionstatic final ResourceKey<Biome>
Biomes.BADLANDS
static final ResourceKey<Biome>
Biomes.BAMBOO_JUNGLE
static final ResourceKey<Biome>
Biomes.BASALT_DELTAS
static final ResourceKey<Biome>
Biomes.BEACH
static final ResourceKey<Biome>
Biomes.BIRCH_FOREST
static final ResourceKey<Biome>
Biomes.COLD_OCEAN
static final ResourceKey<Biome>
Biomes.CRIMSON_FOREST
static final ResourceKey<Biome>
Biomes.DARK_FOREST
static final ResourceKey<Biome>
Biomes.DEEP_COLD_OCEAN
static final ResourceKey<Biome>
Biomes.DEEP_DARK
static final ResourceKey<Biome>
Biomes.DEEP_FROZEN_OCEAN
static final ResourceKey<Biome>
Biomes.DEEP_LUKEWARM_OCEAN
static final ResourceKey<Biome>
Biomes.DEEP_OCEAN
static final ResourceKey<Biome>
Biomes.DESERT
static final ResourceKey<Biome>
Biomes.DRIPSTONE_CAVES
static final ResourceKey<Biome>
Biomes.END_BARRENS
static final ResourceKey<Biome>
Biomes.END_HIGHLANDS
static final ResourceKey<Biome>
Biomes.END_MIDLANDS
static final ResourceKey<Biome>
Biomes.ERODED_BADLANDS
static final ResourceKey<Biome>
Biomes.FLOWER_FOREST
static final ResourceKey<Biome>
Biomes.FOREST
static final ResourceKey<Biome>
Biomes.FROZEN_OCEAN
static final ResourceKey<Biome>
Biomes.FROZEN_PEAKS
static final ResourceKey<Biome>
Biomes.FROZEN_RIVER
static final ResourceKey<Biome>
Biomes.GROVE
static final ResourceKey<Biome>
Biomes.ICE_SPIKES
static final ResourceKey<Biome>
Biomes.JAGGED_PEAKS
static final ResourceKey<Biome>
Biomes.JUNGLE
static final ResourceKey<Biome>
Biomes.LUKEWARM_OCEAN
static final ResourceKey<Biome>
Biomes.LUSH_CAVES
static final ResourceKey<Biome>
Biomes.MANGROVE_SWAMP
static final ResourceKey<Biome>
Biomes.MEADOW
private final ResourceKey<Biome>[][]
OverworldBiomeBuilder.MIDDLE_BIOMES
private final ResourceKey<Biome>[][]
OverworldBiomeBuilder.MIDDLE_BIOMES_VARIANT
static final ResourceKey<Biome>
Biomes.MUSHROOM_FIELDS
static final ResourceKey<Biome>
Biomes.NETHER_WASTES
static final ResourceKey<Biome>
Biomes.OCEAN
private final ResourceKey<Biome>[][]
OverworldBiomeBuilder.OCEANS
static final ResourceKey<Biome>
Biomes.OLD_GROWTH_BIRCH_FOREST
static final ResourceKey<Biome>
Biomes.OLD_GROWTH_PINE_TAIGA
static final ResourceKey<Biome>
Biomes.OLD_GROWTH_SPRUCE_TAIGA
static final ResourceKey<Biome>
Biomes.PLAINS
private final ResourceKey<Biome>[][]
OverworldBiomeBuilder.PLATEAU_BIOMES
private final ResourceKey<Biome>[][]
OverworldBiomeBuilder.PLATEAU_BIOMES_VARIANT
static final ResourceKey<Biome>
Biomes.RIVER
static final ResourceKey<Biome>
Biomes.SAVANNA
static final ResourceKey<Biome>
Biomes.SAVANNA_PLATEAU
private final ResourceKey<Biome>[][]
OverworldBiomeBuilder.SHATTERED_BIOMES
static final ResourceKey<Biome>
Biomes.SMALL_END_ISLANDS
static final ResourceKey<Biome>
Biomes.SNOWY_BEACH
static final ResourceKey<Biome>
Biomes.SNOWY_PLAINS
static final ResourceKey<Biome>
Biomes.SNOWY_SLOPES
static final ResourceKey<Biome>
Biomes.SNOWY_TAIGA
static final ResourceKey<Biome>
Biomes.SOUL_SAND_VALLEY
static final ResourceKey<Biome>
Biomes.SPARSE_JUNGLE
static final ResourceKey<Biome>
Biomes.STONY_PEAKS
static final ResourceKey<Biome>
Biomes.STONY_SHORE
static final ResourceKey<Biome>
Biomes.SUNFLOWER_PLAINS
static final ResourceKey<Biome>
Biomes.SWAMP
static final ResourceKey<Biome>
Biomes.TAIGA
static final ResourceKey<Biome>
Biomes.THE_END
static final ResourceKey<Biome>
Biomes.THE_VOID
static final ResourceKey<Biome>
Biomes.WARM_OCEAN
static final ResourceKey<Biome>
Biomes.WARPED_FOREST
static final ResourceKey<Biome>
Biomes.WINDSWEPT_FOREST
static final ResourceKey<Biome>
Biomes.WINDSWEPT_GRAVELLY_HILLS
static final ResourceKey<Biome>
Biomes.WINDSWEPT_HILLS
static final ResourceKey<Biome>
Biomes.WINDSWEPT_SAVANNA
static final ResourceKey<Biome>
Biomes.WOODED_BADLANDS
Modifier and TypeMethodDescriptionprivate ResourceKey<Biome>
OverworldBiomeBuilder.maybePickWindsweptSavannaBiome
(int p_201991_, int p_201992_, Climate.Parameter p_201993_, ResourceKey<Biome> p_201994_) private ResourceKey<Biome>
OverworldBiomeBuilder.pickBadlandsBiome
(int p_187173_, Climate.Parameter p_187174_) private ResourceKey<Biome>
OverworldBiomeBuilder.pickBeachBiome
(int p_187161_, int p_187162_) private ResourceKey<Biome>
OverworldBiomeBuilder.pickMiddleBiome
(int p_187164_, int p_187165_, Climate.Parameter p_187166_) private ResourceKey<Biome>
OverworldBiomeBuilder.pickMiddleBiomeOrBadlandsIfHot
(int p_187192_, int p_187193_, Climate.Parameter p_187194_) private ResourceKey<Biome>
OverworldBiomeBuilder.pickMiddleBiomeOrBadlandsIfHotOrSlopeIfCold
(int p_187212_, int p_187213_, Climate.Parameter p_187214_) private ResourceKey<Biome>
OverworldBiomeBuilder.pickPeakBiome
(int p_187241_, int p_187242_, Climate.Parameter p_187243_) private ResourceKey<Biome>
OverworldBiomeBuilder.pickPlateauBiome
(int p_187234_, int p_187235_, Climate.Parameter p_187236_) private ResourceKey<Biome>
OverworldBiomeBuilder.pickShatteredBiome
(int p_202002_, int p_202003_, Climate.Parameter p_202004_) private ResourceKey<Biome>
OverworldBiomeBuilder.pickShatteredCoastBiome
(int p_187223_, int p_187224_, Climate.Parameter p_187225_) private ResourceKey<Biome>
OverworldBiomeBuilder.pickSlopeBiome
(int p_187245_, int p_187246_, Climate.Parameter p_187247_) private static ResourceKey<Biome>
Modifier and TypeMethodDescriptionprivate void
OverworldBiomeBuilder.addBottomBiome
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_220669_, Climate.Parameter p_220670_, Climate.Parameter p_220671_, Climate.Parameter p_220672_, Climate.Parameter p_220673_, Climate.Parameter p_220674_, float p_220675_, ResourceKey<Biome> p_220676_) private void
OverworldBiomeBuilder.addSurfaceBiome
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187181_, Climate.Parameter p_187182_, Climate.Parameter p_187183_, Climate.Parameter p_187184_, Climate.Parameter p_187185_, Climate.Parameter p_187186_, float p_187187_, ResourceKey<Biome> p_187188_) private void
OverworldBiomeBuilder.addUndergroundBiome
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187201_, Climate.Parameter p_187202_, Climate.Parameter p_187203_, Climate.Parameter p_187204_, Climate.Parameter p_187205_, Climate.Parameter p_187206_, float p_187207_, ResourceKey<Biome> p_187208_) private ResourceKey<Biome>
OverworldBiomeBuilder.maybePickWindsweptSavannaBiome
(int p_201991_, int p_201992_, Climate.Parameter p_201993_, ResourceKey<Biome> p_201994_) Modifier and TypeMethodDescriptionprotected void
OverworldBiomeBuilder.addBiomes
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187176_) private void
OverworldBiomeBuilder.addBottomBiome
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_220669_, Climate.Parameter p_220670_, Climate.Parameter p_220671_, Climate.Parameter p_220672_, Climate.Parameter p_220673_, Climate.Parameter p_220674_, float p_220675_, ResourceKey<Biome> p_220676_) private void
OverworldBiomeBuilder.addHighSlice
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187198_, Climate.Parameter p_187199_) private void
OverworldBiomeBuilder.addInlandBiomes
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187216_) private void
OverworldBiomeBuilder.addLowSlice
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187229_, Climate.Parameter p_187230_) private void
OverworldBiomeBuilder.addMidSlice
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187218_, Climate.Parameter p_187219_) private void
OverworldBiomeBuilder.addOffCoastBiomes
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187196_) private void
OverworldBiomeBuilder.addPeaks
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187178_, Climate.Parameter p_187179_) private void
OverworldBiomeBuilder.addSurfaceBiome
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187181_, Climate.Parameter p_187182_, Climate.Parameter p_187183_, Climate.Parameter p_187184_, Climate.Parameter p_187185_, Climate.Parameter p_187186_, float p_187187_, ResourceKey<Biome> p_187188_) private void
OverworldBiomeBuilder.addUndergroundBiome
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187201_, Climate.Parameter p_187202_, Climate.Parameter p_187203_, Climate.Parameter p_187204_, Climate.Parameter p_187205_, Climate.Parameter p_187206_, float p_187207_, ResourceKey<Biome> p_187208_) private void
OverworldBiomeBuilder.addUndergroundBiomes
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187227_) private void
OverworldBiomeBuilder.addValleys
(Consumer<com.mojang.datafixers.util.Pair<Climate.ParameterPoint, ResourceKey<Biome>>> p_187238_, Climate.Parameter p_187239_) -
Uses of ResourceKey in net.minecraft.world.level.block.entity
Modifier and TypeFieldDescriptionstatic final ResourceKey<BannerPattern>
BannerPatterns.BASE
static final ResourceKey<BannerPattern>
BannerPatterns.BORDER
static final ResourceKey<BannerPattern>
BannerPatterns.BRICKS
static final ResourceKey<BannerPattern>
BannerPatterns.CIRCLE_MIDDLE
static final ResourceKey<BannerPattern>
BannerPatterns.CREEPER
static final ResourceKey<BannerPattern>
BannerPatterns.CROSS
static final ResourceKey<BannerPattern>
BannerPatterns.CURLY_BORDER
static final ResourceKey<BannerPattern>
BannerPatterns.DIAGONAL_LEFT
static final ResourceKey<BannerPattern>
BannerPatterns.DIAGONAL_LEFT_MIRROR
static final ResourceKey<BannerPattern>
BannerPatterns.DIAGONAL_RIGHT
static final ResourceKey<BannerPattern>
BannerPatterns.DIAGONAL_RIGHT_MIRROR
static final ResourceKey<BannerPattern>
BannerPatterns.FLOWER
static final ResourceKey<BannerPattern>
BannerPatterns.GLOBE
static final ResourceKey<BannerPattern>
BannerPatterns.GRADIENT
static final ResourceKey<BannerPattern>
BannerPatterns.GRADIENT_UP
static final ResourceKey<BannerPattern>
BannerPatterns.HALF_HORIZONTAL
static final ResourceKey<BannerPattern>
BannerPatterns.HALF_HORIZONTAL_MIRROR
static final ResourceKey<BannerPattern>
BannerPatterns.HALF_VERTICAL
static final ResourceKey<BannerPattern>
BannerPatterns.HALF_VERTICAL_MIRROR
static final ResourceKey<BannerPattern>
BannerPatterns.MOJANG
static final ResourceKey<BannerPattern>
BannerPatterns.PIGLIN
private ResourceKey<StructureTemplatePool>
JigsawBlockEntity.pool
static final ResourceKey<BannerPattern>
BannerPatterns.RHOMBUS_MIDDLE
static final ResourceKey<BannerPattern>
BannerPatterns.SKULL
static final ResourceKey<BannerPattern>
BannerPatterns.SQUARE_BOTTOM_LEFT
static final ResourceKey<BannerPattern>
BannerPatterns.SQUARE_BOTTOM_RIGHT
static final ResourceKey<BannerPattern>
BannerPatterns.SQUARE_TOP_LEFT
static final ResourceKey<BannerPattern>
BannerPatterns.SQUARE_TOP_RIGHT
static final ResourceKey<BannerPattern>
BannerPatterns.STRAIGHT_CROSS
static final ResourceKey<BannerPattern>
BannerPatterns.STRIPE_BOTTOM
static final ResourceKey<BannerPattern>
BannerPatterns.STRIPE_CENTER
static final ResourceKey<BannerPattern>
BannerPatterns.STRIPE_DOWNLEFT
static final ResourceKey<BannerPattern>
BannerPatterns.STRIPE_DOWNRIGHT
static final ResourceKey<BannerPattern>
BannerPatterns.STRIPE_LEFT
static final ResourceKey<BannerPattern>
BannerPatterns.STRIPE_MIDDLE
static final ResourceKey<BannerPattern>
BannerPatterns.STRIPE_RIGHT
static final ResourceKey<BannerPattern>
BannerPatterns.STRIPE_SMALL
static final ResourceKey<BannerPattern>
BannerPatterns.STRIPE_TOP
static final ResourceKey<BannerPattern>
BannerPatterns.TRIANGLE_BOTTOM
static final ResourceKey<BannerPattern>
BannerPatterns.TRIANGLE_TOP
static final ResourceKey<BannerPattern>
BannerPatterns.TRIANGLES_BOTTOM
static final ResourceKey<BannerPattern>
BannerPatterns.TRIANGLES_TOP
Modifier and TypeMethodDescriptionprivate static ResourceKey<BannerPattern>
JigsawBlockEntity.getPool()
Modifier and TypeMethodDescriptionBannerPattern.Builder.addPattern
(ResourceKey<BannerPattern> p_222706_, DyeColor p_222707_) static ResourceLocation
BannerPattern.location
(ResourceKey<BannerPattern> p_222698_, boolean p_222699_) void
JigsawBlockEntity.setPool
(ResourceKey<StructureTemplatePool> p_222764_) -
Uses of ResourceKey in net.minecraft.world.level.chunk
Modifier and TypeMethodDescriptionOptional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>>
ChunkGenerator.getTypeNameForDataFixer()
-
Uses of ResourceKey in net.minecraft.world.level.chunk.storage
Modifier and TypeMethodDescriptionprivate LegacyStructureDataHandler
ChunkStorage.getLegacyStructureHandler
(ResourceKey<Level> p_223449_, Supplier<DimensionDataStorage> p_223450_) static void
ChunkStorage.injectDatafixingContext
(CompoundTag p_196919_, ResourceKey<Level> p_196920_, Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> p_196921_) ChunkStorage.upgradeChunkTag
(ResourceKey<Level> p_188289_, Supplier<DimensionDataStorage> p_188290_, CompoundTag p_188291_, Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> p_188292_) Modifier and TypeMethodDescriptionstatic void
ChunkStorage.injectDatafixingContext
(CompoundTag p_196919_, ResourceKey<Level> p_196920_, Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> p_196921_) ChunkStorage.upgradeChunkTag
(ResourceKey<Level> p_188289_, Supplier<DimensionDataStorage> p_188290_, CompoundTag p_188291_, Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> p_188292_) -
Uses of ResourceKey in net.minecraft.world.level.dimension
Modifier and TypeFieldDescriptionstatic final ResourceKey<DimensionType>
BuiltinDimensionTypes.END
static final ResourceKey<LevelStem>
LevelStem.END
static final ResourceKey<DimensionType>
BuiltinDimensionTypes.NETHER
static final ResourceKey<LevelStem>
LevelStem.NETHER
static final ResourceKey<DimensionType>
BuiltinDimensionTypes.OVERWORLD
static final ResourceKey<LevelStem>
LevelStem.OVERWORLD
static final ResourceKey<DimensionType>
BuiltinDimensionTypes.OVERWORLD_CAVES
Modifier and TypeFieldDescriptionprivate static final Set<ResourceKey<LevelStem>>
LevelStem.BUILTIN_ORDER
Modifier and TypeMethodDescriptionstatic Stream<ResourceKey<LevelStem>>
LevelStem.keysInOrder
(Stream<ResourceKey<LevelStem>> p_223606_) static com.mojang.serialization.DataResult<ResourceKey<Level>>
DimensionType.parseLegacy
(com.mojang.serialization.Dynamic<?> p_63912_) Deprecated.Modifier and TypeMethodDescriptionstatic Path
DimensionType.getStorageFolder
(ResourceKey<Level> p_196976_, Path p_196977_) Modifier and TypeMethodDescriptionstatic Stream<ResourceKey<LevelStem>>
LevelStem.keysInOrder
(Stream<ResourceKey<LevelStem>> p_223606_) -
Uses of ResourceKey in net.minecraft.world.level.levelgen
Modifier and TypeFieldDescriptionstatic final ResourceKey<NoiseGeneratorSettings>
NoiseGeneratorSettings.AMPLIFIED
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.AQUIFER_BARRIER
static final ResourceKey<NormalNoise.NoiseParameters>
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.AQUIFER_FLUID_LEVEL_SPREAD
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.AQUIFER_LAVA
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.BADLANDS_PILLAR
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.BADLANDS_PILLAR_ROOF
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.BADLANDS_SURFACE
private static final ResourceKey<DensityFunction>
NoiseRouterData.BASE_3D_NOISE_END
private static final ResourceKey<DensityFunction>
NoiseRouterData.BASE_3D_NOISE_NETHER
private static final ResourceKey<DensityFunction>
NoiseRouterData.BASE_3D_NOISE_OVERWORLD
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.CALCITE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.CAVE_CHEESE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.CAVE_ENTRANCE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.CAVE_LAYER
static final ResourceKey<NoiseGeneratorSettings>
NoiseGeneratorSettings.CAVES
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.CLAY_BANDS_OFFSET
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.CONTINENTALNESS
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.CONTINENTALNESS_LARGE
static final ResourceKey<DensityFunction>
NoiseRouterData.CONTINENTS
static final ResourceKey<DensityFunction>
NoiseRouterData.CONTINENTS_LARGE
static final ResourceKey<DensityFunction>
NoiseRouterData.DEPTH
private static final ResourceKey<DensityFunction>
NoiseRouterData.DEPTH_AMPLIFIED
private static final ResourceKey<DensityFunction>
NoiseRouterData.DEPTH_LARGE
static final ResourceKey<NoiseGeneratorSettings>
NoiseGeneratorSettings.END
private static final ResourceKey<DensityFunction>
NoiseRouterData.ENTRANCES
static final ResourceKey<DensityFunction>
NoiseRouterData.EROSION
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.EROSION
static final ResourceKey<DensityFunction>
NoiseRouterData.EROSION_LARGE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.EROSION_LARGE
static final ResourceKey<DensityFunction>
NoiseRouterData.FACTOR
private static final ResourceKey<DensityFunction>
NoiseRouterData.FACTOR_AMPLIFIED
private static final ResourceKey<DensityFunction>
NoiseRouterData.FACTOR_LARGE
static final ResourceKey<NoiseGeneratorSettings>
NoiseGeneratorSettings.FLOATING_ISLANDS
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.GRAVEL
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.GRAVEL_LAYER
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.ICE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.ICEBERG_PILLAR
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.ICEBERG_PILLAR_ROOF
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.ICEBERG_SURFACE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.JAGGED
static final ResourceKey<DensityFunction>
NoiseRouterData.JAGGEDNESS
private static final ResourceKey<DensityFunction>
NoiseRouterData.JAGGEDNESS_AMPLIFIED
private static final ResourceKey<DensityFunction>
NoiseRouterData.JAGGEDNESS_LARGE
static final ResourceKey<NoiseGeneratorSettings>
NoiseGeneratorSettings.LARGE_BIOMES
static final ResourceKey<NoiseGeneratorSettings>
NoiseGeneratorSettings.NETHER
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.NETHER_STATE_SELECTOR
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.NETHER_WART
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.NETHERRACK
private final ResourceKey<NormalNoise.NoiseParameters>
SurfaceRules.NoiseThresholdConditionSource.noise
The field for thenoise
record component.private static final ResourceKey<DensityFunction>
NoiseRouterData.NOODLE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.NOODLE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.NOODLE_RIDGE_A
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.NOODLE_RIDGE_B
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.NOODLE_THICKNESS
static final ResourceKey<DensityFunction>
NoiseRouterData.OFFSET
private static final ResourceKey<DensityFunction>
NoiseRouterData.OFFSET_AMPLIFIED
private static final ResourceKey<DensityFunction>
NoiseRouterData.OFFSET_LARGE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.ORE_GAP
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.ORE_VEIN_A
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.ORE_VEIN_B
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.ORE_VEININESS
static final ResourceKey<NoiseGeneratorSettings>
NoiseGeneratorSettings.OVERWORLD
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.PACKED_ICE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.PATCH
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.PILLAR
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.PILLAR_RARENESS
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.PILLAR_THICKNESS
private static final ResourceKey<DensityFunction>
NoiseRouterData.PILLARS
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.POWDER_SNOW
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.RIDGE
static final ResourceKey<DensityFunction>
NoiseRouterData.RIDGES
static final ResourceKey<DensityFunction>
NoiseRouterData.RIDGES_FOLDED
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SHIFT
private static final ResourceKey<DensityFunction>
NoiseRouterData.SHIFT_X
private static final ResourceKey<DensityFunction>
NoiseRouterData.SHIFT_Z
private static final ResourceKey<DensityFunction>
NoiseRouterData.SLOPED_CHEESE
private static final ResourceKey<DensityFunction>
NoiseRouterData.SLOPED_CHEESE_AMPLIFIED
private static final ResourceKey<DensityFunction>
NoiseRouterData.SLOPED_CHEESE_END
private static final ResourceKey<DensityFunction>
NoiseRouterData.SLOPED_CHEESE_LARGE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SOUL_SAND_LAYER
private static final ResourceKey<DensityFunction>
NoiseRouterData.SPAGHETTI_2D
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SPAGHETTI_2D
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SPAGHETTI_2D_ELEVATION
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SPAGHETTI_2D_MODULATOR
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SPAGHETTI_2D_THICKNESS
private static final ResourceKey<DensityFunction>
NoiseRouterData.SPAGHETTI_2D_THICKNESS_MODULATOR
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SPAGHETTI_3D_1
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SPAGHETTI_3D_2
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SPAGHETTI_3D_RARITY
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SPAGHETTI_3D_THICKNESS
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SPAGHETTI_ROUGHNESS
private static final ResourceKey<DensityFunction>
NoiseRouterData.SPAGHETTI_ROUGHNESS_FUNCTION
static final ResourceKey<NormalNoise.NoiseParameters>
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SURFACE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SURFACE_SECONDARY
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.SWAMP
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.TEMPERATURE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.TEMPERATURE_LARGE
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.VEGETATION
static final ResourceKey<NormalNoise.NoiseParameters>
Noises.VEGETATION_LARGE
private static final ResourceKey<DensityFunction>
NoiseRouterData.Y
private static final ResourceKey<DensityFunction>
NoiseRouterData.ZERO
Modifier and TypeFieldDescription(package private) final Predicate<ResourceKey<Biome>>
SurfaceRules.BiomeConditionSource.biomeNameTest
private final List<ResourceKey<Biome>>
SurfaceRules.BiomeConditionSource.biomes
private final Map<ResourceKey<NormalNoise.NoiseParameters>,
NormalNoise> RandomState.noiseIntances
private static final Set<ResourceKey<Biome>>
BelowZeroRetrogen.RETAINED_RETROGEN_BIOMES
Modifier and TypeMethodDescriptionprivate static ResourceKey<DensityFunction>
private static ResourceKey<NormalNoise.NoiseParameters>
static ResourceKey<Level>
WorldGenSettings.levelStemToLevel
(ResourceKey<LevelStem> p_190049_) static ResourceKey<LevelStem>
WorldGenSettings.levelToLevelStem
(ResourceKey<Level> p_190053_) SurfaceRules.NoiseThresholdConditionSource.noise()
Returns the value of thenoise
record component.Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet<ResourceKey<Level>>
WorldGenSettings.levels()
Modifier and TypeMethodDescriptionstatic RandomState
RandomState.create
(RegistryAccess p_224575_, ResourceKey<NoiseGeneratorSettings> p_224576_, long p_224577_) private static DensityFunction
NoiseRouterData.getFunction
(Registry<DensityFunction> p_224465_, ResourceKey<DensityFunction> p_224466_) private static Holder<NormalNoise.NoiseParameters>
NoiseRouterData.getNoise
(ResourceKey<NormalNoise.NoiseParameters> p_209543_) RandomState.getOrCreateNoise
(ResourceKey<NormalNoise.NoiseParameters> p_224561_) static NormalNoise
Noises.instantiate
(Registry<NormalNoise.NoiseParameters> p_189306_, PositionalRandomFactory p_189307_, ResourceKey<NormalNoise.NoiseParameters> p_189308_) static SurfaceRules.ConditionSource
SurfaceRules.isBiome
(ResourceKey<Biome>... p_189417_) static ResourceKey<Level>
WorldGenSettings.levelStemToLevel
(ResourceKey<LevelStem> p_190049_) static ResourceKey<LevelStem>
WorldGenSettings.levelToLevelStem
(ResourceKey<Level> p_190053_) static SurfaceRules.ConditionSource
SurfaceRules.noiseCondition
(ResourceKey<NormalNoise.NoiseParameters> p_189410_, double p_189411_) static SurfaceRules.ConditionSource
SurfaceRules.noiseCondition
(ResourceKey<NormalNoise.NoiseParameters> p_189413_, double p_189414_, double p_189415_) static Holder<NoiseGeneratorSettings>
NoiseGeneratorSettings.register
(Registry<NoiseGeneratorSettings> p_224386_, ResourceKey<NoiseGeneratorSettings> p_224387_, NoiseGeneratorSettings p_224388_) private static Holder<DensityFunction>
NoiseRouterData.register
(Registry<DensityFunction> p_224499_, ResourceKey<DensityFunction> p_224500_, DensityFunction p_224501_) private static DensityFunction
NoiseRouterData.registerAndWrap
(Registry<DensityFunction> p_224468_, ResourceKey<DensityFunction> p_224469_, DensityFunction p_224470_) private static void
NoiseRouterData.registerTerrainNoises
(Registry<DensityFunction> p_224475_, DensityFunction p_224476_, Holder<DensityFunction> p_224477_, Holder<DensityFunction> p_224478_, ResourceKey<DensityFunction> p_224479_, ResourceKey<DensityFunction> p_224480_, ResourceKey<DensityFunction> p_224481_, ResourceKey<DensityFunction> p_224482_, ResourceKey<DensityFunction> p_224483_, boolean p_224484_) boolean
NoiseBasedChunkGenerator.stable
(ResourceKey<NoiseGeneratorSettings> p_224222_) Modifier and TypeMethodDescriptionprivate static SurfaceRules.BiomeConditionSource
SurfaceRules.isBiome
(List<ResourceKey<Biome>> p_189408_) ModifierConstructorDescription(package private)
NoiseThresholdConditionSource
(ResourceKey<NormalNoise.NoiseParameters> noise, double minThreshold, double maxThreshold) Creates an instance of aNoiseThresholdConditionSource
record class.ModifierConstructorDescription(package private)
BiomeConditionSource
(List<ResourceKey<Biome>> p_189493_) -
Uses of ResourceKey in net.minecraft.world.level.levelgen.flat
Modifier and TypeFieldDescriptionstatic final ResourceKey<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.BOTTOMLESS_PIT
static final ResourceKey<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.CLASSIC_FLAT
static final ResourceKey<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.DESERT
static final ResourceKey<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.OVERWORLD
static final ResourceKey<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.REDSTONE_READY
static final ResourceKey<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.SNOWY_KINGDOM
static final ResourceKey<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.THE_VOID
static final ResourceKey<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.TUNNELERS_DREAM
static final ResourceKey<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.WATER_WORLD
Modifier and TypeMethodDescriptionprivate Holder<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.Bootstrap.register
(ResourceKey<FlatLevelGeneratorPreset> p_226287_, ItemLike p_226288_, ResourceKey<Biome> p_226289_, Set<ResourceKey<StructureSet>> p_226290_, boolean p_226291_, boolean p_226292_, FlatLayerInfo... p_226293_) Modifier and TypeMethodDescriptionprivate Holder<FlatLevelGeneratorPreset>
FlatLevelGeneratorPresets.Bootstrap.register
(ResourceKey<FlatLevelGeneratorPreset> p_226287_, ItemLike p_226288_, ResourceKey<Biome> p_226289_, Set<ResourceKey<StructureSet>> p_226290_, boolean p_226291_, boolean p_226292_, FlatLayerInfo... p_226293_) -
Uses of ResourceKey in net.minecraft.world.level.levelgen.presets
Modifier and TypeFieldDescriptionstatic final ResourceKey<WorldPreset>
WorldPresets.AMPLIFIED
static final ResourceKey<WorldPreset>
WorldPresets.DEBUG
static final ResourceKey<WorldPreset>
WorldPresets.FLAT
static final ResourceKey<WorldPreset>
WorldPresets.LARGE_BIOMES
static final ResourceKey<WorldPreset>
WorldPresets.NORMAL
static final ResourceKey<WorldPreset>
WorldPresets.SINGLE_BIOME_SURFACE
Modifier and TypeFieldDescriptionprivate final Map<ResourceKey<LevelStem>,
LevelStem> WorldPreset.dimensions
Modifier and TypeMethodDescriptionstatic Optional<ResourceKey<WorldPreset>>
WorldPresets.fromSettings
(WorldGenSettings p_226446_) Modifier and TypeMethodDescriptionprivate Holder<WorldPreset>
WorldPresets.Bootstrap.registerCustomOverworldPreset
(ResourceKey<WorldPreset> p_226482_, LevelStem p_226483_) -
Uses of ResourceKey in net.minecraft.world.level.levelgen.structure
Modifier and TypeFieldDescriptionstatic final ResourceKey<StructureSet>
BuiltinStructureSets.ANCIENT_CITIES
static final ResourceKey<Structure>
BuiltinStructures.ANCIENT_CITY
static final ResourceKey<Structure>
BuiltinStructures.BASTION_REMNANT
static final ResourceKey<Structure>
BuiltinStructures.BURIED_TREASURE
static final ResourceKey<StructureSet>
BuiltinStructureSets.BURIED_TREASURES
static final ResourceKey<Structure>
BuiltinStructures.DESERT_PYRAMID
static final ResourceKey<StructureSet>
BuiltinStructureSets.DESERT_PYRAMIDS
private final ResourceKey<Level>
StructureCheck.dimension
static final ResourceKey<StructureSet>
BuiltinStructureSets.END_CITIES
static final ResourceKey<Structure>
BuiltinStructures.END_CITY
static final ResourceKey<Structure>
BuiltinStructures.FORTRESS
static final ResourceKey<Structure>
BuiltinStructures.IGLOO
static final ResourceKey<StructureSet>
BuiltinStructureSets.IGLOOS
static final ResourceKey<Structure>
BuiltinStructures.JUNGLE_TEMPLE
static final ResourceKey<StructureSet>
BuiltinStructureSets.JUNGLE_TEMPLES
static final ResourceKey<Structure>
BuiltinStructures.MINESHAFT
static final ResourceKey<Structure>
BuiltinStructures.MINESHAFT_MESA
static final ResourceKey<StructureSet>
BuiltinStructureSets.MINESHAFTS
static final ResourceKey<StructureSet>
BuiltinStructureSets.NETHER_COMPLEXES
static final ResourceKey<Structure>
BuiltinStructures.NETHER_FOSSIL
static final ResourceKey<StructureSet>
BuiltinStructureSets.NETHER_FOSSILS
static final ResourceKey<Structure>
BuiltinStructures.OCEAN_MONUMENT
static final ResourceKey<StructureSet>
BuiltinStructureSets.OCEAN_MONUMENTS
static final ResourceKey<Structure>
BuiltinStructures.OCEAN_RUIN_COLD
static final ResourceKey<Structure>
BuiltinStructures.OCEAN_RUIN_WARM
static final ResourceKey<StructureSet>
BuiltinStructureSets.OCEAN_RUINS
static final ResourceKey<Structure>
BuiltinStructures.PILLAGER_OUTPOST
static final ResourceKey<StructureSet>
BuiltinStructureSets.PILLAGER_OUTPOSTS
static final ResourceKey<Structure>
BuiltinStructures.RUINED_PORTAL_DESERT
static final ResourceKey<Structure>
BuiltinStructures.RUINED_PORTAL_JUNGLE
static final ResourceKey<Structure>
BuiltinStructures.RUINED_PORTAL_MOUNTAIN
static final ResourceKey<Structure>
BuiltinStructures.RUINED_PORTAL_NETHER
static final ResourceKey<Structure>
BuiltinStructures.RUINED_PORTAL_OCEAN
static final ResourceKey<Structure>
BuiltinStructures.RUINED_PORTAL_STANDARD
static final ResourceKey<Structure>
BuiltinStructures.RUINED_PORTAL_SWAMP
static final ResourceKey<StructureSet>
BuiltinStructureSets.RUINED_PORTALS
static final ResourceKey<Structure>
BuiltinStructures.SHIPWRECK
static final ResourceKey<Structure>
BuiltinStructures.SHIPWRECK_BEACHED
static final ResourceKey<StructureSet>
BuiltinStructureSets.SHIPWRECKS
static final ResourceKey<Structure>
BuiltinStructures.STRONGHOLD
static final ResourceKey<StructureSet>
BuiltinStructureSets.STRONGHOLDS
static final ResourceKey<Structure>
BuiltinStructures.SWAMP_HUT
static final ResourceKey<StructureSet>
BuiltinStructureSets.SWAMP_HUTS
static final ResourceKey<Structure>
BuiltinStructures.VILLAGE_DESERT
static final ResourceKey<Structure>
BuiltinStructures.VILLAGE_PLAINS
static final ResourceKey<Structure>
BuiltinStructures.VILLAGE_SAVANNA
static final ResourceKey<Structure>
BuiltinStructures.VILLAGE_SNOWY
static final ResourceKey<Structure>
BuiltinStructures.VILLAGE_TAIGA
static final ResourceKey<StructureSet>
BuiltinStructureSets.VILLAGES
static final ResourceKey<Structure>
BuiltinStructures.WOODLAND_MANSION
static final ResourceKey<StructureSet>
BuiltinStructureSets.WOODLAND_MANSIONS
Modifier and TypeMethodDescriptionprivate static ResourceKey<Structure>
private static ResourceKey<StructureSet>
Modifier and TypeMethodDescriptionstatic LegacyStructureDataHandler
LegacyStructureDataHandler.getLegacyStructureHandler
(ResourceKey<Level> p_71332_, DimensionDataStorage p_71333_) ModifierConstructorDescriptionStructureCheck
(ChunkScanAccess p_226712_, RegistryAccess p_226713_, StructureTemplateManager p_226714_, ResourceKey<Level> p_226715_, ChunkGenerator p_226716_, RandomState p_226717_, LevelHeightAccessor p_226718_, BiomeSource p_226719_, long p_226720_, com.mojang.datafixers.DataFixer p_226721_) -
Uses of ResourceKey in net.minecraft.world.level.saveddata.maps
Modifier and TypeMethodDescriptionstatic MapItemSavedData
MapItemSavedData.createForClient
(byte p_164777_, boolean p_164778_, ResourceKey<Level> p_164779_) static MapItemSavedData
MapItemSavedData.createFresh
(double p_164781_, double p_164782_, byte p_164783_, boolean p_164784_, boolean p_164785_, ResourceKey<Level> p_164786_) ModifierConstructorDescriptionprivate
MapItemSavedData
(int p_164768_, int p_164769_, byte p_164770_, boolean p_164771_, boolean p_164772_, boolean p_164773_, ResourceKey<Level> p_164774_) -
Uses of ResourceKey in net.minecraft.world.level.storage
Modifier and TypeMethodDescriptionLevelStorageSource.LevelStorageAccess.getDimensionPath
(ResourceKey<Level> p_197395_) -
Uses of ResourceKey in net.minecraft.world.level.storage.loot.functions
Modifier and TypeMethodDescriptionSetBannerPatternFunction.Builder.addPattern
(ResourceKey<BannerPattern> p_230996_, DyeColor p_230997_) -
Uses of ResourceKey in net.minecraftforge.client
Modifier and TypeMethodDescriptionClientCommandSourceStack.levels()
Returns a set ofResourceKey
for levels from the client side. -
Uses of ResourceKey in net.minecraftforge.common
Modifier and TypeFieldDescriptionprivate static final List<ResourceKey<Biome>>
BiomeManager.additionalOverworldBiomes
private static final List<ResourceKey<Biome>>
BiomeManager.additionalOverworldBiomesView
Modifier and TypeMethodDescriptionstatic <E> Collection<Map.Entry<ResourceKey<E>,
RegistryResourceAccess.EntryThunk<E>>> ForgeHooks.filterThunks
(Map<ResourceKey<E>, RegistryResourceAccess.EntryThunk<E>> map) static List<ResourceKey<Biome>>
BiomeManager.getAdditionalOverworldBiomes()
Modifier and TypeMethodDescriptionstatic void
BiomeManager.addAdditionalOverworldBiomes
(ResourceKey<Biome> biome) Add biomes that you add to the overworld without usingBiomeManager.addBiome(BiomeType, BiomeEntry)
static boolean
ForgeHooks.onTravelToDimension
(Entity entity, ResourceKey<Level> dimension) Modifier and TypeMethodDescriptionstatic <E> Collection<Map.Entry<ResourceKey<E>,
RegistryResourceAccess.EntryThunk<E>>> ForgeHooks.filterThunks
(Map<ResourceKey<E>, RegistryResourceAccess.EntryThunk<E>> map) -
Uses of ResourceKey in net.minecraftforge.common.crafting.conditions
Modifier and TypeFieldDescriptionprivate Map<ResourceKey<?>,
Map<ResourceLocation, Collection<Holder<?>>>> ConditionContext.loadedTags
Modifier and TypeMethodDescription<T> Map<ResourceLocation,
Collection<Holder<T>>> ConditionContext.getAllTags
(ResourceKey<? extends Registry<T>> registry) <T> Map<ResourceLocation,
Collection<Holder<T>>> ICondition.IContext.getAllTags
(ResourceKey<? extends Registry<T>> registry) Return all the loaded tags for the passed registry, or an empty map if none is available. -
Uses of ResourceKey in net.minecraftforge.common.data
Modifier and TypeMethodDescriptionstatic <T> JsonCodecProvider<T>
JsonCodecProvider.forDatapackRegistry
(DataGenerator dataGenerator, ExistingFileHelper existingFileHelper, String modid, RegistryOps<com.google.gson.JsonElement> registryOps, ResourceKey<Registry<T>> registryKey, Map<ResourceLocation, T> entries) Returns DatapackRegistryProvider that encodes using the registered loading codec for the provided registry key.private void
ForgeBiomeTagsProvider.tag
(ResourceKey<Biome> biome, TagKey<Biome>... tags) -
Uses of ResourceKey in net.minecraftforge.common.util
Modifier and TypeMethodDescriptionstatic BlockSnapshot
BlockSnapshot.create
(ResourceKey<Level> dim, LevelAccessor world, BlockPos pos) static BlockSnapshot
BlockSnapshot.create
(ResourceKey<Level> dim, LevelAccessor world, BlockPos pos, int flag) ModifierConstructorDescriptionprivate
BlockSnapshot
(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos, BlockState state, @Nullable CompoundTag nbt, int flags) -
Uses of ResourceKey in net.minecraftforge.debug.misc
Modifier and TypeFieldDescriptionstatic final ResourceKey<Registry<DataPackRegistriesTest.Syncable>>
DataPackRegistriesTest.Syncable.REGISTRY_KEY
static final ResourceKey<Registry<DataPackRegistriesTest.Unsyncable>>
DataPackRegistriesTest.Unsyncable.REGISTRY_KEY
-
Uses of ResourceKey in net.minecraftforge.debug.world
Modifier and TypeFieldDescriptionprivate static final ResourceKey<PlacedFeature>
BiomeModifierTest.LARGE_BASALT_COLUMNS_KEY
-
Uses of ResourceKey in net.minecraftforge.event
Modifier and TypeMethodDescriptionstatic void
ForgeEventFactory.firePlayerChangedDimensionEvent
(Player player, ResourceKey<Level> fromDim, ResourceKey<Level> toDim) static boolean
ForgeEventFactory.onPlayerSpawnSet
(Player player, ResourceKey<Level> levelKey, BlockPos pos, boolean forced) -
Uses of ResourceKey in net.minecraftforge.event.entity
Modifier and TypeFieldDescriptionprivate final ResourceKey<Level>
EntityTravelToDimensionEvent.dimension
ModifierConstructorDescriptionEntityTravelToDimensionEvent
(Entity entity, ResourceKey<Level> dimension) -
Uses of ResourceKey in net.minecraftforge.event.entity.player
Modifier and TypeFieldDescriptionprivate final ResourceKey<Level>
PlayerEvent.PlayerChangedDimensionEvent.fromDim
private final ResourceKey<Level>
PlayerSetSpawnEvent.spawnLevel
private final ResourceKey<Level>
PlayerEvent.PlayerChangedDimensionEvent.toDim
Modifier and TypeMethodDescriptionPlayerEvent.PlayerChangedDimensionEvent.getFrom()
PlayerSetSpawnEvent.getSpawnLevel()
PlayerEvent.PlayerChangedDimensionEvent.getTo()
ModifierConstructorDescriptionPlayerChangedDimensionEvent
(Player player, ResourceKey<Level> fromDim, ResourceKey<Level> toDim) PlayerSetSpawnEvent
(Player player, ResourceKey<Level> spawnLevel, @Nullable BlockPos newSpawn, boolean forced) -
Uses of ResourceKey in net.minecraftforge.network
Modifier and TypeFieldDescriptionprivate final ResourceKey<Level>
PacketDistributor.TargetPoint.dim
Modifier and TypeFieldDescriptionprivate final List<ResourceKey<? extends Registry<?>>>
HandshakeMessages.S2CModList.dataPackRegistries
static final PacketDistributor<ResourceKey<Level>>
PacketDistributor.DIMENSION
Send to everyone in the dimension specified in the Supplier
PacketDistributor.with(Supplier)
DimensionTypeModifier and TypeMethodDescriptionList<ResourceKey<? extends Registry<?>>>
HandshakeMessages.S2CModList.getCustomDataPackRegistries()
Modifier and TypeMethodDescriptionPacketDistributor.TargetPoint.p
(double x, double y, double z, double r2, ResourceKey<Level> dim) Helper to build a TargetPoint without excluded EntityModifier and TypeMethodDescriptionPacketDistributor.playerListDimConsumer
(Supplier<ResourceKey<Level>> dimensionTypeSupplier) ModifierConstructorDescriptionTargetPoint
(double x, double y, double z, double r2, ResourceKey<Level> dim) A target point without excluded entityTargetPoint
(ServerPlayer excluded, double x, double y, double z, double r2, ResourceKey<Level> dim) A target point with excluded entity -
Uses of ResourceKey in net.minecraftforge.registries
Modifier and TypeFieldDescriptionstatic final ResourceKey<Registry<Activity>>
ForgeRegistries.Keys.ACTIVITIES
static final ResourceKey<Registry<Attribute>>
ForgeRegistries.Keys.ATTRIBUTES
static final ResourceKey<Registry<com.mojang.serialization.Codec<? extends BiomeModifier>>>
ForgeRegistries.Keys.BIOME_MODIFIER_SERIALIZERS
static final ResourceKey<Registry<BiomeModifier>>
ForgeRegistries.Keys.BIOME_MODIFIERS
static final ResourceKey<Registry<Biome>>
ForgeRegistries.Keys.BIOMES
static final ResourceKey<Registry<BlockEntityType<?>>>
ForgeRegistries.Keys.BLOCK_ENTITY_TYPES
static final ResourceKey<Registry<BlockStateProviderType<?>>>
ForgeRegistries.Keys.BLOCK_STATE_PROVIDER_TYPES
static final ResourceKey<Registry<Block>>
ForgeRegistries.Keys.BLOCKS
static final ResourceKey<Registry<ChunkStatus>>
ForgeRegistries.Keys.CHUNK_STATUS
static final ResourceKey<Registry<ArgumentTypeInfo<?,
?>>> ForgeRegistries.Keys.COMMAND_ARGUMENT_TYPES
private final ResourceKey<V>
ForgeRegistry.defaultResourceKey
static final ResourceKey<Registry<Enchantment>>
ForgeRegistries.Keys.ENCHANTMENTS
static final ResourceKey<Registry<EntityDataSerializer<?>>>
ForgeRegistries.Keys.ENTITY_DATA_SERIALIZERS
static final ResourceKey<Registry<EntityType<?>>>
ForgeRegistries.Keys.ENTITY_TYPES
static final ResourceKey<Registry<Feature<?>>>
ForgeRegistries.Keys.FEATURES
static final ResourceKey<Registry<FluidType>>
ForgeRegistries.Keys.FLUID_TYPES
static final ResourceKey<Registry<Fluid>>
ForgeRegistries.Keys.FLUIDS
static final ResourceKey<Registry<FoliagePlacerType<?>>>
ForgeRegistries.Keys.FOLIAGE_PLACER_TYPES
static final ResourceKey<Registry<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>>
ForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERS
static final ResourceKey<Registry<HolderSetType>>
ForgeRegistries.Keys.HOLDER_SET_TYPES
static final ResourceKey<Registry<Item>>
ForgeRegistries.Keys.ITEMS
private final ResourceKey<Registry<V>>
ForgeRegistry.key
private final ResourceKey<V>
ForgeRegistry.OverrideOwner.key
The field for thekey
record component.private final ResourceKey<? extends Registry<?>>
MissingMappingsEvent.key
private @Nullable ResourceKey<T>
RegistryObject.key
static final ResourceKey<Registry<MemoryModuleType<?>>>
ForgeRegistries.Keys.MEMORY_MODULE_TYPES
static final ResourceKey<Registry<MenuType<?>>>
ForgeRegistries.Keys.MENU_TYPES
static final ResourceKey<Registry<MobEffect>>
ForgeRegistries.Keys.MOB_EFFECTS
static final ResourceKey<Registry<PaintingVariant>>
ForgeRegistries.Keys.PAINTING_VARIANTS
static final ResourceKey<Registry<ParticleType<?>>>
ForgeRegistries.Keys.PARTICLE_TYPES
static final ResourceKey<Registry<PoiType>>
ForgeRegistries.Keys.POI_TYPES
static final ResourceKey<Registry<Potion>>
ForgeRegistries.Keys.POTIONS
static final ResourceKey<Registry<RecipeSerializer<?>>>
ForgeRegistries.Keys.RECIPE_SERIALIZERS
static final ResourceKey<Registry<RecipeType<?>>>
ForgeRegistries.Keys.RECIPE_TYPES
private final ResourceKey<? extends Registry<V>>
DeferredRegister.RegistryHolder.registryKey
private final ResourceKey<? extends Registry<T>>
DeferredRegister.registryKey
private final @NotNull ResourceKey<? extends Registry<?>>
RegisterEvent.registryKey
static final ResourceKey<Registry<Schedule>>
ForgeRegistries.Keys.SCHEDULES
static final ResourceKey<Registry<SensorType<?>>>
ForgeRegistries.Keys.SENSOR_TYPES
static final ResourceKey<Registry<SoundEvent>>
ForgeRegistries.Keys.SOUND_EVENTS
static final ResourceKey<Registry<StatType<?>>>
ForgeRegistries.Keys.STAT_TYPES
static final ResourceKey<Registry<com.mojang.serialization.Codec<? extends StructureModifier>>>
ForgeRegistries.Keys.STRUCTURE_MODIFIER_SERIALIZERS
static final ResourceKey<Registry<StructureModifier>>
ForgeRegistries.Keys.STRUCTURE_MODIFIERS
static final ResourceKey<Registry<TreeDecoratorType<?>>>
ForgeRegistries.Keys.TREE_DECORATOR_TYPES
static final ResourceKey<Registry<VillagerProfession>>
ForgeRegistries.Keys.VILLAGER_PROFESSIONS
static final ResourceKey<Registry<WorldCarver<?>>>
ForgeRegistries.Keys.WORLD_CARVERS
Modifier and TypeFieldDescriptionprivate final com.google.common.collect.BiMap<ResourceKey<V>,
V> ForgeRegistry.keys
private static Map<ResourceKey<? extends Registry<?>>,
RegistryAccess.RegistryData<?>> DataPackRegistriesHooks.REGISTRY_ACCESS_REGISTRIES_COPY
private static final Set<ResourceKey<? extends Registry<?>>>
DataPackRegistriesHooks.SYNCED_CUSTOM_REGISTRIES
private static final Set<ResourceKey<? extends Registry<?>>>
DataPackRegistriesHooks.SYNCED_CUSTOM_REGISTRIES_VIEW
Modifier and TypeMethodDescription@Nullable ResourceKey<V>
ForgeRegistry.getKey
(int id) ResourceKey<? extends Registry<?>>
MissingMappingsEvent.getKey()
@Nullable ResourceKey<T>
RegistryObject.getKey()
Returns the resource key that points to the registry and name of this registry object.ResourceKey<? extends Registry<T>>
DeferredRegister.getRegistryKey()
ForgeRegistry.getRegistryKey()
IForgeRegistry.getRegistryKey()
@NotNull ResourceKey<? extends Registry<?>>
RegisterEvent.getRegistryKey()
private static <T> ResourceKey<Registry<T>>
ForgeRegistry.OverrideOwner.key()
Returns the value of thekey
record component.Modifier and TypeMethodDescriptionSet<Map.Entry<ResourceKey<T>,
T>> NamespacedDefaultedWrapper.entrySet()
Set<Map.Entry<ResourceKey<T>,
T>> NamespacedWrapper.entrySet()
@NotNull Set<Map.Entry<ResourceKey<V>,
V>> ForgeRegistry.getEntries()
@NotNull Set<Map.Entry<ResourceKey<V>,
V>> IForgeRegistry.getEntries()
@NotNull Optional<ResourceKey<V>>
ForgeRegistry.getResourceKey
(V value) @NotNull Optional<ResourceKey<V>>
IForgeRegistry.getResourceKey
(V value) NamespacedDefaultedWrapper.getResourceKey
(T p_122755_) NamespacedWrapper.getResourceKey
(T p_122755_) (package private) @NotNull Set<ResourceKey<V>>
ForgeRegistry.getResourceKeys()
static Set<ResourceKey<? extends Registry<?>>>
DataPackRegistriesHooks.getSyncedCustomRegistries()
Returns unmodifiable view of the set of synced non-vanilla datapack registry IDs.static Map<ResourceKey<? extends Registry<?>>,
RegistryAccess.RegistryData<?>> DataPackRegistriesHooks.grabBuiltinRegistries
(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistryAccess.RegistryData<?>> builder) Set<ResourceKey<T>>
NamespacedDefaultedWrapper.registryKeySet()
Set<ResourceKey<T>>
NamespacedWrapper.registryKeySet()
Modifier and TypeMethodDescriptionprivate Holder.Reference<V>
ForgeRegistry.bindDelegate
(ResourceKey<V> rkey, V value) boolean
NamespacedDefaultedWrapper.containsKey
(ResourceKey<T> key) boolean
NamespacedWrapper.containsKey
(ResourceKey<T> key) static <B> DeferredRegister<B>
DeferredRegister.create
(ResourceKey<? extends Registry<B>> key, String modid) DeferredRegister factory for custom forge registries,vanilla registries
, orbuilt-in registries
to lookup based on the provided registry key.static <T,
U extends T>
RegistryObject<U>RegistryObject.create
(ResourceLocation name, ResourceKey<? extends Registry<T>> registryKey, String modid) Factory for aRegistryObject
that stores the value of an object from a registry once it is ready based on a lookup of the provided registry key.static <B> DeferredRegister<B>
DeferredRegister.createOptional
(ResourceKey<? extends Registry<B>> key, String modid) DeferredRegister factory for the optional existence of custom forge registries,vanilla registries
, orbuilt-in registries
to lookup based on the provided registry key.static <T,
U extends T>
RegistryObject<U>RegistryObject.createOptional
(ResourceLocation name, ResourceKey<? extends Registry<T>> registryKey, String modid) Factory for aRegistryObject
that optionally stores the value of an object from a registry once it is ready if the registry exists based on a lookup of the provided registry key.NamespacedDefaultedWrapper.get
(@Nullable ResourceKey<T> name) NamespacedWrapper.get
(@Nullable ResourceKey<T> name) <T> List<MissingMappingsEvent.Mapping<T>>
MissingMappingsEvent.getAllMappings
(ResourceKey<? extends Registry<T>> registryKey) @NotNull Optional<Holder.Reference<V>>
ForgeRegistry.getDelegate
(ResourceKey<V> rkey) @NotNull Optional<Holder.Reference<V>>
IForgeRegistry.getDelegate
(ResourceKey<V> rkey) ForgeRegistry.getDelegateOrThrow
(ResourceKey<V> rkey) IForgeRegistry.getDelegateOrThrow
(ResourceKey<V> rkey) ForgeRegistry.getHolder
(ResourceKey<V> key) IForgeRegistry.getHolder
(ResourceKey<V> key) This method exists purely as a stopgap for vanilla compatibility.NamespacedDefaultedWrapper.getHolder
(ResourceKey<T> key) NamespacedHolderHelper.getHolder
(ResourceKey<T> key) private Holder.Reference<T>
NamespacedHolderHelper.getHolder
(ResourceKey<T> key, T value) NamespacedWrapper.getHolder
(ResourceKey<T> key) <T> List<MissingMappingsEvent.Mapping<T>>
MissingMappingsEvent.getMappings
(ResourceKey<? extends Registry<T>> registryKey, String namespace) NamespacedDefaultedWrapper.getOrCreateHolder
(ResourceKey<T> key) NamespacedHolderHelper.getOrCreateHolder
(ResourceKey<T> key) NamespacedWrapper.getOrCreateHolder
(ResourceKey<T> key) NamespacedDefaultedWrapper.getOrCreateHolderOrThrow
(ResourceKey<T> key) NamespacedHolderHelper.getOrCreateHolderOrThrow
(ResourceKey<T> key) NamespacedWrapper.getOrCreateHolderOrThrow
(ResourceKey<T> key) <V> ForgeRegistry<V>
RegistryManager.getRegistry
(ResourceKey<? extends Registry<V>> key) static <T> MappedRegistry<T>
GameData.getWrapper
(ResourceKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) static <T> DefaultedRegistry<T>
GameData.getWrapper
(ResourceKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, String defKey) private static <T> RegistryBuilder<T>
GameData.makeRegistry
(ResourceKey<? extends Registry<T>> key) private static <T> RegistryBuilder<T>
GameData.makeRegistry
(ResourceKey<? extends Registry<T>> key, int min, int max) private static <T> RegistryBuilder<T>
GameData.makeRegistry
(ResourceKey<? extends Registry<T>> key, String _default) void
GameData.BlockCallbacks.onAdd
(IForgeRegistryInternal<Block> owner, RegistryManager stage, int id, ResourceKey<Block> key, Block block, @Nullable Block oldBlock) void
GameData.ItemCallbacks.onAdd
(IForgeRegistryInternal<Item> owner, RegistryManager stage, int id, ResourceKey<Item> key, Item item, @Nullable Item oldItem) void
GameData.PointOfInterestTypeCallbacks.onAdd
(IForgeRegistryInternal<PoiType> owner, RegistryManager stage, int id, ResourceKey<PoiType> key, PoiType obj, @Nullable PoiType oldObj) void
IForgeRegistry.AddCallback.onAdd
(IForgeRegistryInternal<V> owner, RegistryManager stage, int id, ResourceKey<V> key, V obj, V oldObj) void
NamespacedDefaultedWrapper.Factory.onAdd
(IForgeRegistryInternal<V> owner, RegistryManager stage, int id, ResourceKey<V> key, V value, V oldValue) void
NamespacedWrapper.Factory.onAdd
(IForgeRegistryInternal<V> owner, RegistryManager stage, int id, ResourceKey<V> key, V value, V oldValue) NamespacedHolderHelper.onAdded
(RegistryManager stage, int id, ResourceKey<T> key, T newValue, T oldValue) NamespacedDefaultedWrapper.register
(ResourceKey<T> p_205891_, T p_205892_, com.mojang.serialization.Lifecycle p_205893_) NamespacedWrapper.register
(ResourceKey<T> key, T value, com.mojang.serialization.Lifecycle lifecycle) <T> void
RegisterEvent.register
(ResourceKey<? extends Registry<T>> registryKey, Consumer<RegisterEvent.RegisterHelper<T>> consumer) Calls the provided consumer with a register helper if the provided registry key matches this event's registry key.<T> void
RegisterEvent.register
(ResourceKey<? extends Registry<T>> registryKey, ResourceLocation name, Supplier<T> valueSupplier) Registers the value with the given name to the stored registry if the provided registry key matches this event's registry key.default void
RegisterEvent.RegisterHelper.register
(ResourceKey<T> key, T value) Registers the given value with the given name to the registry.NamespacedDefaultedWrapper.registerMapping
(int id, ResourceKey<T> key, T value, com.mojang.serialization.Lifecycle lifecycle) NamespacedWrapper.registerMapping
(int id, ResourceKey<T> key, T value, com.mojang.serialization.Lifecycle lifecycle) NamespacedDefaultedWrapper.registerOrOverride
(OptionalInt id, ResourceKey<T> p_205885_, T p_205886_, com.mojang.serialization.Lifecycle p_205887_) NamespacedWrapper.registerOrOverride
(OptionalInt id, ResourceKey<T> key, T value, com.mojang.serialization.Lifecycle lifecycle) Modifier and TypeMethodDescriptionstatic Map<ResourceKey<? extends Registry<?>>,
RegistryAccess.RegistryData<?>> DataPackRegistriesHooks.grabBuiltinRegistries
(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistryAccess.RegistryData<?>> builder) ModifierConstructorDescriptionprivate
DeferredRegister
(ResourceKey<? extends Registry<T>> registryKey, String modid, boolean optionalRegistry) MissingMappingsEvent
(ResourceKey<? extends Registry<?>> key, IForgeRegistry<?> registry, Collection<MissingMappingsEvent.Mapping<?>> missed) private
OverrideOwner
(String owner, ResourceKey<V> key) Creates an instance of aOverrideOwner
record class.(package private)
RegisterEvent
(@NotNull ResourceKey<? extends Registry<?>> registryKey, @Nullable ForgeRegistry<?> forgeRegistry, @Nullable Registry<?> vanillaRegistry) private
RegistryHolder
(ResourceKey<? extends Registry<V>> registryKey) -
Uses of ResourceKey in net.minecraftforge.registries.holdersets
Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec<? extends ICustomHolderSet<T>>
AndHolderSet.codec
(ResourceKey<? extends Registry<T>> registryKey, com.mojang.serialization.Codec<Holder<T>> holderCodec, boolean forceList) static <T> com.mojang.serialization.Codec<? extends ICustomHolderSet<T>>
AnyHolderSet.codec
(ResourceKey<? extends Registry<T>> registryKey, com.mojang.serialization.Codec<Holder<T>> holderCodec, boolean forceList) static <T> com.mojang.serialization.Codec<? extends ICustomHolderSet<T>>
NotHolderSet.codec
(ResourceKey<? extends Registry<T>> registryKey, com.mojang.serialization.Codec<Holder<T>> holderCodec, boolean forceList) static <T> com.mojang.serialization.Codec<? extends ICustomHolderSet<T>>
OrHolderSet.codec
(ResourceKey<? extends Registry<T>> registryKey, com.mojang.serialization.Codec<Holder<T>> holderCodec, boolean forceList) <T> com.mojang.serialization.Codec<? extends ICustomHolderSet<T>>
HolderSetType.makeCodec
(ResourceKey<? extends Registry<T>> registryKey, com.mojang.serialization.Codec<Holder<T>> holderCodec, boolean forceList) -
Uses of ResourceKey in net.minecraftforge.server.command
Modifier and TypeFieldDescriptionprivate static final ResourceKey<Registry<Registry<?>>>
TagsCommand.ROOT_REGISTRY_KEY
Modifier and TypeMethodDescriptionprivate static <T> Optional<ResourceKey<T>>
TagsCommand.getResourceKey
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String name, ResourceKey<Registry<T>> registryKey) Modifier and TypeMethodDescriptionprivate static int
EntityCommand.EntityListCommand.execute
(CommandSourceStack sender, String filter, ResourceKey<Level> dim) private static <T> Optional<ResourceKey<T>>
TagsCommand.getResourceKey
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String name, ResourceKey<Registry<T>> registryKey)