Uses of Interface
net.minecraft.core.RegistryAccess
Package
Description
-
Uses of RegistryAccess in net.minecraft.client
Modifier and TypeMethodDescriptionprivate void
Minecraft.addCustomNbtData
(ItemStack p_263370_, BlockEntity p_263368_, RegistryAccess p_323897_) void
ClientRecipeBook.setupCollections
(Iterable<RecipeHolder<?>> p_266814_, RegistryAccess p_266878_) -
Uses of RegistryAccess in net.minecraft.client.gui.screens
-
Uses of RegistryAccess in net.minecraft.client.gui.screens.recipebook
Modifier and TypeMethodDescriptionprivate static boolean
RecipeCollection.allRecipesHaveSameResult
(RegistryAccess p_267210_, List<RecipeHolder<?>> p_100509_) ModifierConstructorDescriptionRecipeCollection
(RegistryAccess p_266782_, List<RecipeHolder<?>> p_267051_) -
Uses of RegistryAccess in net.minecraft.client.gui.screens.worldselection
Modifier and TypeMethodDescriptionvoid
WorldOpenFlows.createFreshLevel
(String p_233158_, LevelSettings p_233159_, WorldOptions p_249243_, Function<RegistryAccess, WorldDimensions> p_249252_, Screen p_307305_) ModifierConstructorDescriptionprivate
OptimizeWorldScreen
(it.unimi.dsi.fastutil.booleans.BooleanConsumer p_251295_, com.mojang.datafixers.DataFixer p_250489_, LevelStorageSource.LevelStorageAccess p_248781_, LevelSettings p_251180_, boolean p_250358_, RegistryAccess p_323621_) -
Uses of RegistryAccess in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionRegistryDataCollector.ContentsCollector.loadRegistries
(ResourceProvider p_326039_, RegistryAccess p_321627_) ClientSuggestionProvider.registryAccess()
Modifier and TypeMethodDescriptionprivate void
TagCollector.applyTags
(RegistryAccess p_326395_, Predicate<ResourceKey<? extends Registry<?>>> p_326512_) RegistryDataCollector.collectGameRegistries
(ResourceProvider p_326319_, RegistryAccess p_321556_, boolean p_321683_) RegistryDataCollector.ContentsCollector.loadRegistries
(ResourceProvider p_326039_, RegistryAccess p_321627_) void
TagCollector.updateTags
(RegistryAccess p_326147_, boolean p_326486_) -
Uses of RegistryAccess in net.minecraft.client.player.inventory
Modifier and TypeMethodDescriptionvoid
Hotbar.storeFrom
(Inventory p_324559_, RegistryAccess p_324514_) -
Uses of RegistryAccess in net.minecraft.commands
Modifier and TypeMethodDescriptionCommandSourceStack.registryAccess()
SharedSuggestionProvider.registryAccess()
-
Uses of RegistryAccess in net.minecraft.core
Modifier and TypeMethodDescriptionRegistrySetBuilder.build
(RegistryAccess p_256112_) RegistrySetBuilder.buildPatch
(RegistryAccess p_255676_, HolderLookup.Provider p_255900_, Cloner.Factory p_312173_) private static HolderLookup.Provider
RegistrySetBuilder.buildProviderWithContext
(RegistrySetBuilder.UniversalOwner p_326837_, RegistryAccess p_312694_, Stream<HolderLookup.RegistryLookup<?>> p_312024_) RegistrySetBuilder.BuildState.create
(RegistryAccess p_255995_, Stream<ResourceKey<? extends Registry<?>>> p_256495_) private HolderLookup.Provider
RegistrySetBuilder.createLazyFullPatchedRegistries
(RegistryAccess p_312301_, HolderLookup.Provider p_311942_, Cloner.Factory p_312464_, Map<ResourceKey<? extends Registry<?>>, RegistrySetBuilder.RegistryContents<?>> p_312890_, HolderLookup.Provider p_311825_) private RegistrySetBuilder.BuildState
RegistrySetBuilder.createState
(RegistryAccess p_256400_) private static Stream
<RegistryAccess.RegistryEntry<?>> RegistrySynchronization.ownedNetworkableRegistries
(RegistryAccess p_251842_) static void
RegistrySynchronization.packRegistries
(com.mojang.serialization.DynamicOps<Tag> p_321796_, RegistryAccess p_321733_, Set<KnownPack> p_326143_, BiConsumer<ResourceKey<? extends Registry<?>>, List<RegistrySynchronization.PackedRegistryEntry>> p_321539_) private static <T> void
RegistrySynchronization.packRegistry
(com.mojang.serialization.DynamicOps<Tag> p_321608_, RegistryDataLoader.RegistryData<T> p_321701_, RegistryAccess p_321717_, Set<KnownPack> p_326432_, BiConsumer<ResourceKey<? extends Registry<?>>, List<RegistrySynchronization.PackedRegistryEntry>> p_321724_) Modifier and TypeMethodDescriptionprivate static Map
<ResourceKey<? extends Registry<?>>, Registry<?>> LayeredRegistryAccess.collectRegistries
(Stream<? extends RegistryAccess> p_248595_) -
Uses of RegistryAccess in net.minecraft.network
Modifier and TypeFieldDescriptionprivate final RegistryAccess
RegistryFriendlyByteBuf.registryAccess
Modifier and TypeMethodDescriptionstatic Function
<io.netty.buffer.ByteBuf, RegistryFriendlyByteBuf> RegistryFriendlyByteBuf.decorator
(RegistryAccess p_320166_) Deprecated.Neo: use overload with ConnectionType contextstatic Function
<io.netty.buffer.ByteBuf, RegistryFriendlyByteBuf> RegistryFriendlyByteBuf.decorator
(RegistryAccess p_320166_, ConnectionType connectionType) ModifierConstructorDescriptionRegistryFriendlyByteBuf
(io.netty.buffer.ByteBuf p_320951_, RegistryAccess p_319803_) Deprecated.Neo: use overload with ConnectionType contextRegistryFriendlyByteBuf
(io.netty.buffer.ByteBuf p_320951_, RegistryAccess p_319803_, ConnectionType connectionType) -
Uses of RegistryAccess in net.minecraft.network.chat
Modifier and TypeMethodDescriptionstatic ChatType.Bound
ChatType.bind
(ResourceKey<ChatType> p_241284_, RegistryAccess p_241373_, Component p_241455_) -
Uses of RegistryAccess in net.minecraft.network.protocol.game
Modifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create
(BlockEntity p_195643_, BiFunction<BlockEntity, RegistryAccess, CompoundTag> p_324611_) -
Uses of RegistryAccess in net.minecraft.resources
Modifier and TypeMethodDescriptionprivate static RegistryOps.RegistryInfoLookup
RegistryDataLoader.createContext
(RegistryAccess p_256568_, List<RegistryDataLoader.Loader<?>> p_255821_) static RegistryAccess.Frozen
RegistryDataLoader.load
(Map<ResourceKey<? extends Registry<?>>, List<RegistrySynchronization.PackedRegistryEntry>> p_321642_, ResourceProvider p_326068_, RegistryAccess p_321850_, List<RegistryDataLoader.RegistryData<?>> p_321716_) private static RegistryAccess.Frozen
RegistryDataLoader.load
(RegistryDataLoader.LoadingFunction p_321713_, RegistryAccess p_321583_, List<RegistryDataLoader.RegistryData<?>> p_321856_) static RegistryAccess.Frozen
RegistryDataLoader.load
(ResourceManager p_252046_, RegistryAccess p_249916_, List<RegistryDataLoader.RegistryData<?>> p_250344_) -
Uses of RegistryAccess in net.minecraft.server
Modifier and TypeFieldDescriptionprivate final RegistryAccess
ReloadableServerRegistries.EmptyTagLookupWrapper.registryAccess
private final RegistryAccess
ReloadableServerResources.ConfigurableRegistryLookup.registryAccess
Modifier and TypeMethodDescriptionprivate static void
Main.forceUpgrade
(LevelStorageSource.LevelStorageAccess p_195489_, com.mojang.datafixers.DataFixer p_195490_, boolean p_195491_, BooleanSupplier p_195492_, RegistryAccess p_323503_, boolean p_321704_) private static <T> void
ReloadableServerResources.updateRegistryTags
(RegistryAccess p_206871_, TagManager.LoadResult<T> p_206872_) private static <T> void
ReloadableServerRegistries.validateRegistry
(ValidationContext p_335565_, LootDataType<T> p_335997_, RegistryAccess p_335400_) ModifierConstructorDescription(package private)
ConfigurableRegistryLookup
(RegistryAccess p_324146_) (package private)
EmptyTagLookupWrapper
(RegistryAccess p_335912_) -
Uses of RegistryAccess in net.minecraft.server.dedicated
Modifier and TypeMethodDescriptionDedicatedServerProperties.WorldDimensionData.create
(RegistryAccess p_248812_) DedicatedServerProperties.createDimensions
(RegistryAccess p_250466_) protected DedicatedServerProperties
DedicatedServerProperties.reload
(RegistryAccess p_139761_, Properties p_139762_) protected abstract T
Settings.reload
(RegistryAccess p_139857_, Properties p_139858_) Settings.MutableValue.update
(RegistryAccess p_139896_, V p_139897_) -
Uses of RegistryAccess in net.minecraft.server.level
-
Uses of RegistryAccess in net.minecraft.tags
-
Uses of RegistryAccess in net.minecraft.util.worldupdate
ModifierConstructorDescriptionWorldUpgrader
(LevelStorageSource.LevelStorageAccess p_249922_, com.mojang.datafixers.DataFixer p_250273_, RegistryAccess p_323645_, boolean p_250738_, boolean p_321700_) -
Uses of RegistryAccess in net.minecraft.world.damagesource
-
Uses of RegistryAccess in net.minecraft.world.entity
-
Uses of RegistryAccess in net.minecraft.world.entity.ai.village.poi
ModifierConstructorDescriptionPoiManager
(RegionStorageInfo p_325948_, Path p_217869_, com.mojang.datafixers.DataFixer p_217870_, boolean p_217871_, RegistryAccess p_217872_, ChunkIOErrorReporter p_352327_, LevelHeightAccessor p_217873_) -
Uses of RegistryAccess in net.minecraft.world.entity.animal
Modifier and TypeMethodDescriptionstatic Holder
<WolfVariant> WolfVariants.getSpawnVariant
(RegistryAccess p_332694_, Holder<Biome> p_332773_) -
Uses of RegistryAccess in net.minecraft.world.inventory
Modifier and TypeMethodDescriptionprivate List
<EnchantmentInstance> EnchantmentMenu.getEnchantmentList
(RegistryAccess p_345264_, ItemStack p_39472_, int p_39473_, int p_39474_) -
Uses of RegistryAccess in net.minecraft.world.item.enchantment
Modifier and TypeMethodDescriptionstatic ItemStack
EnchantmentHelper.enchantItem
(RandomSource p_346328_, ItemStack p_346267_, int p_345272_, RegistryAccess p_345660_, Optional<? extends HolderSet<Enchantment>> p_345161_) static void
EnchantmentHelper.enchantItemFromProvider
(ItemStack p_345172_, RegistryAccess p_348593_, ResourceKey<EnchantmentProvider> p_345876_, DifficultyInstance p_348599_, RandomSource p_345717_) -
Uses of RegistryAccess in net.minecraft.world.level
Modifier and TypeMethodDescriptionLevel.registryAccess()
LevelReader.registryAccess()
StructureManager.registryAccess()
ModifierConstructorDescriptionprotected
Level
(WritableLevelData p_270739_, ResourceKey<Level> p_270683_, RegistryAccess p_270200_, Holder<DimensionType> p_270240_, Supplier<ProfilerFiller> p_270692_, boolean p_270904_, boolean p_270470_, long p_270248_, int p_270466_) -
Uses of RegistryAccess in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionprivate static boolean
AbstractFurnaceBlockEntity.burn
(RegistryAccess p_266740_, RecipeHolder<?> p_300910_, NonNullList<ItemStack> p_267073_, int p_267157_, AbstractFurnaceBlockEntity furnace) private static boolean
AbstractFurnaceBlockEntity.canBurn
(RegistryAccess p_266924_, RecipeHolder<?> p_301107_, NonNullList<ItemStack> p_155007_, int p_155008_, AbstractFurnaceBlockEntity furnace) -
Uses of RegistryAccess in net.minecraft.world.level.chunk
Modifier and TypeMethodDescriptionvoid
ChunkGenerator.createStructures
(RegistryAccess p_255835_, ChunkGeneratorStructureState p_256505_, StructureManager p_255934_, ChunkAccess p_255767_, StructureTemplateManager p_255832_) private boolean
ChunkGenerator.tryGenerateStructure
(StructureSet.StructureSelectionEntry p_223105_, StructureManager p_223106_, RegistryAccess p_223107_, RandomState p_223108_, StructureTemplateManager p_223109_, long p_223110_, ChunkAccess p_223111_, ChunkPos p_223112_, SectionPos p_223113_) -
Uses of RegistryAccess in net.minecraft.world.level.chunk.storage
Modifier and TypeMethodDescriptionChunkSerializer.unpackStructureReferences
(RegistryAccess p_208155_, ChunkPos p_208156_, CompoundTag p_208157_) ModifierConstructorDescriptionSectionStorage
(SimpleRegionStorage p_321814_, Function<Runnable, com.mojang.serialization.Codec<R>> p_223510_, Function<Runnable, R> p_223511_, RegistryAccess p_223515_, ChunkIOErrorReporter p_352357_, LevelHeightAccessor p_223516_) -
Uses of RegistryAccess in net.minecraft.world.level.levelgen
Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.DataResult
<T> WorldGenSettings.encode
(com.mojang.serialization.DynamicOps<T> p_250917_, WorldOptions p_250366_, RegistryAccess p_251515_) WorldDimensions.replaceOverworldGenerator
(RegistryAccess p_251390_, ChunkGenerator p_248755_) -
Uses of RegistryAccess in net.minecraft.world.level.levelgen.carver
ModifierConstructorDescriptionCarvingContext
(NoiseBasedChunkGenerator p_224845_, RegistryAccess p_224846_, LevelHeightAccessor p_224847_, NoiseChunk p_224848_, RandomState p_224849_, SurfaceRules.RuleSource p_224850_) -
Uses of RegistryAccess in net.minecraft.world.level.levelgen.presets
Modifier and TypeMethodDescriptionstatic WorldDimensions
WorldPresets.createNormalWorldDimensions
(RegistryAccess p_251732_) static LevelStem
WorldPresets.getNormalOverworld
(RegistryAccess p_226464_) -
Uses of RegistryAccess in net.minecraft.world.level.levelgen.structure
Modifier and TypeFieldDescriptionprivate final RegistryAccess
Structure.GenerationContext.registryAccess
The field for theregistryAccess
record component.private final RegistryAccess
StructureCheck.registryAccess
Modifier and TypeMethodDescriptionStructure.GenerationContext.registryAccess()
Returns the value of theregistryAccess
record component.Modifier and TypeMethodDescriptionStructure.generate
(RegistryAccess p_226597_, ChunkGenerator p_226598_, BiomeSource p_226599_, RandomState p_226600_, StructureTemplateManager p_226601_, long p_226602_, ChunkPos p_226603_, int p_226604_, LevelHeightAccessor p_226605_, Predicate<Holder<Biome>> p_226606_) ModifierConstructorDescriptionGenerationContext
(RegistryAccess p_226632_, ChunkGenerator p_226633_, BiomeSource p_226634_, RandomState p_226635_, StructureTemplateManager p_226636_, long p_226637_, ChunkPos p_226638_, LevelHeightAccessor p_226639_, Predicate<Holder<Biome>> p_226640_) GenerationContext
(RegistryAccess registryAccess, ChunkGenerator chunkGenerator, BiomeSource biomeSource, RandomState randomState, StructureTemplateManager structureTemplateManager, WorldgenRandom random, long seed, ChunkPos chunkPos, LevelHeightAccessor heightAccessor, Predicate<Holder<Biome>> validBiome) Creates an instance of aGenerationContext
record class.StructureCheck
(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 RegistryAccess in net.minecraft.world.level.levelgen.structure.pieces
Modifier and TypeFieldDescriptionprivate final RegistryAccess
PieceGeneratorSupplier.Context.registryAccess
The field for theregistryAccess
record component.private final RegistryAccess
StructurePieceSerializationContext.registryAccess
The field for theregistryAccess
record component.Modifier and TypeMethodDescriptionPieceGeneratorSupplier.Context.registryAccess()
Returns the value of theregistryAccess
record component.StructurePieceSerializationContext.registryAccess()
Returns the value of theregistryAccess
record component.ModifierConstructorDescriptionContext
(ChunkGenerator chunkGenerator, BiomeSource biomeSource, RandomState randomState, long seed, ChunkPos chunkPos, C config, LevelHeightAccessor heightAccessor, Predicate<Holder<Biome>> validBiome, StructureTemplateManager structureTemplateManager, RegistryAccess registryAccess) Creates an instance of aContext
record class.StructurePieceSerializationContext
(ResourceManager resourceManager, RegistryAccess registryAccess, StructureTemplateManager structureTemplateManager) Creates an instance of aStructurePieceSerializationContext
record class. -
Uses of RegistryAccess in net.minecraft.world.level.storage
Modifier and TypeMethodDescriptionPrimaryLevelData.createTag
(RegistryAccess p_78543_, CompoundTag p_78544_) WorldData.createTag
(RegistryAccess p_78636_, CompoundTag p_78637_) void
LevelStorageSource.LevelStorageAccess.saveDataTag
(RegistryAccess p_78288_, WorldData p_78289_) void
LevelStorageSource.LevelStorageAccess.saveDataTag
(RegistryAccess p_78291_, WorldData p_78292_, CompoundTag p_78293_) private void
PrimaryLevelData.setTagData
(RegistryAccess p_78546_, CompoundTag p_78547_, CompoundTag p_78548_) -
Uses of RegistryAccess in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionClientCommandSourceStack.registryAccess()
Returns theRegistryAccess
from the client side. -
Uses of RegistryAccess in net.neoforged.neoforge.common.util
Modifier and TypeMethodDescriptionstatic byte[]
FriendlyByteBufUtil.writeCustomData
(Consumer<RegistryFriendlyByteBuf> dataWriter, RegistryAccess registryAccess) Writes custom data to aRegistryFriendlyByteBuf
, then returns the written data as a byte array. -
Uses of RegistryAccess in net.neoforged.neoforge.event
Modifier and TypeFieldDescriptionprivate final RegistryAccess
AddReloadListenerEvent.registryAccess
private final RegistryAccess
TagsUpdatedEvent.registryAccess
Modifier and TypeMethodDescriptionAddReloadListenerEvent.getRegistryAccess()
Provides access to the loaded registries associated with these server resources.TagsUpdatedEvent.getRegistryAccess()
Modifier and TypeMethodDescriptionstatic List
<PreparableReloadListener> EventHooks.onResourceReload
(ReloadableServerResources serverResources, RegistryAccess registryAccess) ModifierConstructorDescriptionAddReloadListenerEvent
(ReloadableServerResources serverResources, RegistryAccess registryAccess) TagsUpdatedEvent
(RegistryAccess registryAccess, boolean fromClientPacket, boolean isIntegratedServerConnection) -
Uses of RegistryAccess in net.neoforged.neoforge.registries
Modifier and TypeMethodDescriptionprivate static Map
<ResourceKey<? extends Registry<?>>, DataMapLoader.LoadResult<?>> DataMapLoader.load
(ResourceManager manager, ProfilerFiller profiler, RegistryAccess access, ICondition.IContext context) ModifierConstructorDescriptionDataMapLoader
(ICondition.IContext conditionContext, RegistryAccess registryAccess) -
Uses of RegistryAccess in net.neoforged.neoforge.registries.datamaps
Modifier and TypeFieldDescriptionprivate final RegistryAccess
DataMapsUpdatedEvent.registryAccess
Modifier and TypeMethodDescriptionDataMapsUpdatedEvent.getRegistries()
Returns a registry access.ModifierConstructorDescriptionDataMapsUpdatedEvent
(RegistryAccess registryAccess, Registry<?> registry, DataMapsUpdatedEvent.UpdateCause cause)