Uses of Interface
net.minecraft.core.HolderLookup.RegistryLookup
Package
Description
-
Uses of HolderLookup.RegistryLookup in net.minecraft.commands.arguments.item
Modifier and TypeFieldDescriptionprivate final HolderLookup.RegistryLookup
<DataComponentType<?>> ItemPredicateArgument.Context.components
(package private) final HolderLookup.RegistryLookup
<Item> ItemParser.items
private final HolderLookup.RegistryLookup
<Item> ItemPredicateArgument.Context.items
private final HolderLookup.RegistryLookup
<ItemSubPredicate.Type<?>> ItemPredicateArgument.Context.predicates
-
Uses of HolderLookup.RegistryLookup in net.minecraft.core
Modifier and TypeClassDescription(package private) static class
(package private) static class
Modifier and TypeFieldDescriptionprivate final HolderLookup.RegistryLookup
<T> MappedRegistry.lookup
private final HolderLookup.RegistryLookup
<T> RegistrySetBuilder.EmptyTagLookupWrapper.parent
Modifier and TypeMethodDescriptionMappedRegistry.asLookup()
Registry.asLookup()
default HolderLookup.RegistryLookup
<T> Registry.asTagAddingLookup()
RegistrySetBuilder.RegistryContents.buildAsLookup
(RegistrySetBuilder.UniversalOwner p_326796_) private <T> HolderLookup.RegistryLookup
<T> RegistrySetBuilder.createLazyFullPatchedRegistries
(HolderOwner<T> p_312323_, Cloner.Factory p_311780_, ResourceKey<? extends Registry<? extends T>> p_311836_, HolderLookup.Provider p_312115_, HolderLookup.Provider p_312725_, org.apache.commons.lang3.mutable.MutableObject<HolderLookup.Provider> p_311797_) default HolderLookup.RegistryLookup
<T> HolderLookup.RegistryLookup.filterElements
(Predicate<T> p_324043_) default HolderLookup.RegistryLookup
<T> HolderLookup.RegistryLookup.filterFeatures
(FeatureFlagSet p_249397_) (package private) static <T> HolderLookup.RegistryLookup
<T> RegistrySetBuilder.lookupFromMap
(ResourceKey<? extends Registry<? extends T>> p_312781_, com.mojang.serialization.Lifecycle p_312783_, HolderOwner<T> p_326787_, Map<ResourceKey<T>, Holder.Reference<T>> p_312180_) default <T> HolderLookup.RegistryLookup
<T> HolderLookup.Provider.lookupOrThrow
(ResourceKey<? extends Registry<? extends T>> p_255957_) HolderLookup.RegistryLookup.Delegate.parent()
RegistrySetBuilder.EmptyTagLookupWrapper.parent()
Holder.Reference.unwrapLookup()
Modifier and TypeMethodDescription<T> Optional
<HolderLookup.RegistryLookup<T>> HolderLookup.Provider.lookup
(ResourceKey<? extends Registry<? extends T>> p_256285_) default <T> Optional
<HolderLookup.RegistryLookup<T>> RegistryAccess.lookup
(ResourceKey<? extends Registry<? extends T>> p_256275_) Modifier and TypeMethodDescription(package private) static <T> HolderGetter
<T> RegistrySetBuilder.wrapContextLookup
(HolderLookup.RegistryLookup<T> p_255625_) Modifier and TypeMethodDescriptionprivate static HolderLookup.Provider
RegistrySetBuilder.buildProviderWithContext
(RegistrySetBuilder.UniversalOwner p_326837_, RegistryAccess p_312694_, Stream<HolderLookup.RegistryLookup<?>> p_312024_) static HolderLookup.Provider
HolderLookup.Provider.create
(Stream<HolderLookup.RegistryLookup<?>> p_256054_) ModifierConstructorDescription(package private)
EmptyTagLookupWrapper
(HolderOwner<T> p_326948_, HolderLookup.RegistryLookup<T> p_326784_) -
Uses of HolderLookup.RegistryLookup in net.minecraft.data.loot.packs
Modifier and TypeMethodDescriptionstatic LootTable.Builder
VanillaEquipmentLoot.trialChamberEquipment
(Item p_345453_, Item p_345712_, ArmorTrim p_346117_, HolderLookup.RegistryLookup<Enchantment> p_345542_) -
Uses of HolderLookup.RegistryLookup in net.minecraft.data.worldgen
Modifier and TypeMethodDescriptiondefault <S> Optional
<HolderLookup.RegistryLookup<S>> BootstrapContext.registryLookup
(ResourceKey<? extends Registry<? extends S>> registry) -
Uses of HolderLookup.RegistryLookup in net.minecraft.resources
Modifier and TypeMethodDescriptionstatic <E> com.mojang.serialization.MapCodec
<HolderLookup.RegistryLookup<E>> RegistryOps.retrieveRegistryLookup
(ResourceKey<? extends Registry<? extends E>> resourceKey) Modifier and TypeMethodDescriptionstatic <T> RegistryOps.RegistryInfo
<T> RegistryOps.RegistryInfo.fromRegistryLookup
(HolderLookup.RegistryLookup<T> p_326797_) -
Uses of HolderLookup.RegistryLookup in net.minecraft.server
Modifier and TypeMethodDescriptionprivate <T> HolderLookup.RegistryLookup
<T> ReloadableServerResources.ConfigurableRegistryLookup.createDispatchedLookup
(HolderLookup.RegistryLookup<T> p_324196_, HolderLookup.RegistryLookup<T> p_323710_) Modifier and TypeMethodDescription<T> Optional
<HolderLookup.RegistryLookup<T>> ReloadableServerRegistries.EmptyTagLookupWrapper.lookup
(ResourceKey<? extends Registry<? extends T>> p_335976_) <T> Optional
<HolderLookup.RegistryLookup<T>> ReloadableServerResources.ConfigurableRegistryLookup.lookup
(ResourceKey<? extends Registry<? extends T>> p_323818_) Modifier and TypeMethodDescriptionprivate <T> HolderLookup.RegistryLookup
<T> ReloadableServerResources.ConfigurableRegistryLookup.createDispatchedLookup
(HolderLookup.RegistryLookup<T> p_324196_, HolderLookup.RegistryLookup<T> p_323710_) -
Uses of HolderLookup.RegistryLookup in net.minecraft.world.item
Modifier and TypeMethodDescriptionprivate static void
CreativeModeTabs.generatePresetPaintings
(CreativeModeTab.Output p_271007_, HolderLookup.Provider p_345774_, HolderLookup.RegistryLookup<PaintingVariant> p_270618_, Predicate<Holder<PaintingVariant>> p_270878_, CreativeModeTab.TabVisibility p_270261_) -
Uses of HolderLookup.RegistryLookup in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic <T> @Nullable HolderLookup.RegistryLookup
<T> ClientHooks.resolveLookup
(ResourceKey<? extends Registry<T>> key) -
Uses of HolderLookup.RegistryLookup in net.neoforged.neoforge.common
Modifier and TypeMethodDescriptionstatic <T> @Nullable HolderLookup.RegistryLookup
<T> CommonHooks.resolveLookup
(ResourceKey<? extends Registry<T>> key) Attempts to resolve aHolderLookup.RegistryLookup
using the current global state.static <T> HolderLookup.RegistryLookup
<T> CommonHooks.wrapRegistryLookup
(HolderLookup.RegistryLookup<T> lookup) Modifier and TypeMethodDescriptionstatic <T> HolderLookup.RegistryLookup
<T> CommonHooks.wrapRegistryLookup
(HolderLookup.RegistryLookup<T> lookup) -
Uses of HolderLookup.RegistryLookup in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault HolderLookup.RegistryLookup
<T> IHolderExtension.unwrapLookup()
Attempts to resolve the underlyingHolderLookup.RegistryLookup
from aHolder
.Modifier and TypeMethodDescriptiondefault ItemEnchantments
IItemExtension.getAllEnchantments
(ItemStack stack, HolderLookup.RegistryLookup<Enchantment> lookup) Gets a map of all enchantments present on the stack.default ItemEnchantments
IItemStackExtension.getAllEnchantments
(HolderLookup.RegistryLookup<Enchantment> lookup) Gets the gameplay level of all enchantments on this stack. -
Uses of HolderLookup.RegistryLookup in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic ItemEnchantments
EventHooks.getAllEnchantmentLevels
(ItemEnchantments enchantments, ItemStack stack, HolderLookup.RegistryLookup<Enchantment> lookup) FiresGetEnchantmentLevelEvent
and for all enchantments, returning the (possibly event-modified) enchantment map. -
Uses of HolderLookup.RegistryLookup in net.neoforged.neoforge.event.enchanting
Modifier and TypeFieldDescriptionprotected final HolderLookup.RegistryLookup
<Enchantment> GetEnchantmentLevelEvent.lookup
Modifier and TypeMethodDescriptionGetEnchantmentLevelEvent.getLookup()
Returns the underlying registry lookup, which can be used to access enchantment Holders.ModifierConstructorDescriptionGetEnchantmentLevelEvent
(ItemStack stack, ItemEnchantments.Mutable enchantments, @Nullable Holder<Enchantment> targetEnchant, HolderLookup.RegistryLookup<Enchantment> lookup) -
Uses of HolderLookup.RegistryLookup in net.neoforged.neoforge.registries.holdersets
Modifier and TypeFieldDescriptionprivate final HolderLookup.RegistryLookup
<T> AnyHolderSet.registryLookup
The field for theregistryLookup
record component.private final HolderLookup.RegistryLookup
<T> NotHolderSet.registryLookup
Modifier and TypeMethodDescriptionAnyHolderSet.registryLookup()
Returns the value of theregistryLookup
record component.NotHolderSet.registryLookup()
ModifierConstructorDescriptionAnyHolderSet
(HolderLookup.RegistryLookup<T> registryLookup) Creates an instance of aAnyHolderSet
record class.NotHolderSet
(HolderLookup.RegistryLookup<T> registryLookup, HolderSet<T> value)