Uses of Class
net.minecraft.core.Holder.Reference
Packages that use Holder.Reference
Package
Description
-
Uses of Holder.Reference in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type Holder.ReferenceModifier and TypeMethodDescriptionPlayerPredicate.Builder.addStat
(StatType<T> pType, Holder.Reference<T> pValue, MinMaxBounds.Ints pRange) -
Uses of Holder.Reference in net.minecraft.client.gui.screens
Fields in net.minecraft.client.gui.screens declared as Holder.ReferenceModifier and TypeFieldDescription(package private) final Holder.Reference
<Biome> CreateBuffetWorldScreen.BiomeList.Entry.biome
Constructors in net.minecraft.client.gui.screens with parameters of type Holder.Reference -
Uses of Holder.Reference in net.minecraft.commands.arguments
Fields in net.minecraft.commands.arguments declared as Holder.ReferenceModifier and TypeFieldDescriptionprivate final Holder.Reference
<T> ResourceOrTagArgument.ResourceResult.value
The field for thevalue
record component.Methods in net.minecraft.commands.arguments that return Holder.ReferenceModifier and TypeMethodDescriptionstatic Holder.Reference
<Attribute> ResourceArgument.getAttribute
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_248753_, String p_251157_) static Holder.Reference
<ConfiguredFeature<?, ?>> ResourceArgument.getConfiguredFeature
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_250819_, String p_252256_) static Holder.Reference
<ConfiguredFeature<?, ?>> ResourceKeyArgument.getConfiguredFeature
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_249310_, String p_250729_) static Holder.Reference
<Enchantment> ResourceArgument.getEnchantment
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_248656_, String p_248713_) static Holder.Reference
<EntityType<?>> ResourceArgument.getEntityType
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_251258_, String p_252322_) static Holder.Reference
<MobEffect> ResourceArgument.getMobEffect
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_250521_, String p_249927_) static <T> Holder.Reference
<T> ResourceArgument.getResource
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_251788_, String p_251996_, ResourceKey<Registry<T>> p_250077_) static Holder.Reference
<Structure> ResourceArgument.getStructure
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_250288_, String p_250856_) static Holder.Reference
<Structure> ResourceKeyArgument.getStructure
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_248804_, String p_251331_) ResourceKeyArgument.getStructureTemplatePool
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_252203_, String p_250407_) static Holder.Reference
<EntityType<?>> ResourceArgument.getSummonableEntityType
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_251880_, String p_250243_) ResourceArgument.parse
(com.mojang.brigadier.StringReader p_250909_) private static <T> Holder.Reference
<T> ResourceKeyArgument.resolveKey
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_248662_, String p_252172_, ResourceKey<Registry<T>> p_249701_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_249790_) ResourceOrTagArgument.ResourceResult.value()
Returns the value of thevalue
record component.Methods in net.minecraft.commands.arguments that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptionstatic <T> Collection
<Holder.Reference<T>> ResourceSelectorArgument.getSelectedResources
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_397945_, String p_397186_) ResourceSelectorArgument.parse
(com.mojang.brigadier.StringReader p_397392_) static <T> Collection
<Holder.Reference<T>> ResourceSelectorArgument.parse
(com.mojang.brigadier.StringReader p_397046_, HolderLookup<T> p_397718_) com.mojang.datafixers.util.Either
<Holder.Reference<T>, HolderSet.Named<T>> ResourceOrTagArgument.ResourceResult.unwrap()
com.mojang.datafixers.util.Either
<Holder.Reference<T>, HolderSet.Named<T>> ResourceOrTagArgument.Result.unwrap()
com.mojang.datafixers.util.Either
<Holder.Reference<T>, HolderSet.Named<T>> ResourceOrTagArgument.TagResult.unwrap()
Constructors in net.minecraft.commands.arguments with parameters of type Holder.ReferenceModifierConstructorDescription(package private)
ResourceResult
(Holder.Reference<T> value) Creates an instance of aResourceResult
record class. -
Uses of Holder.Reference in net.minecraft.commands.arguments.item
Constructors in net.minecraft.commands.arguments.item with parameters of type Holder.ReferenceModifierConstructorDescriptionPredicateWrapper
(Holder.Reference<DataComponentPredicate.Type<?>> p_336100_) -
Uses of Holder.Reference in net.minecraft.core
Subclasses of Holder.Reference in net.minecraft.coreFields in net.minecraft.core declared as Holder.ReferenceModifier and TypeFieldDescriptionprivate Holder.Reference
<T> DefaultedMappedRegistry.defaultValue
Fields in net.minecraft.core with type parameters of type Holder.ReferenceModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.ObjectList
<Holder.Reference<T>> MappedRegistry.byId
private final Map
<ResourceKey<T>, Holder.Reference<T>> MappedRegistry.byKey
private final Map
<ResourceLocation, Holder.Reference<T>> MappedRegistry.byLocation
private final Map
<T, Holder.Reference<T>> MappedRegistry.byValue
private final Optional
<Holder.Reference<T>> RegistrySetBuilder.ValueAndHolder.holder
The field for theholder
record component.(package private) final Map
<ResourceKey<Object>, Holder.Reference<Object>> RegistrySetBuilder.UniversalLookup.holders
private Map
<T, Holder.Reference<T>> MappedRegistry.unregisteredIntrusiveHolders
Methods in net.minecraft.core that return Holder.ReferenceModifier and TypeMethodDescriptionstatic <T> Holder.Reference
<T> Holder.Reference.createIntrusive
(HolderOwner<T> pOwner, T pValue) Deprecated.MappedRegistry.createIntrusiveHolder
(T pValue) Registry.createIntrusiveHolder
(T pValue) static <T> Holder.Reference
<T> Holder.Reference.createStandAlone
(HolderOwner<T> pOwner, ResourceKey<T> pKey) (package private) <T> Holder.Reference
<T> RegistrySetBuilder.UniversalLookup.getOrCreate
(ResourceKey<T> pKey) (package private) Holder.Reference
<T> MappedRegistry.getOrCreateHolderOrThrow
(ResourceKey<T> pKey) default Holder.Reference
<T> HolderGetter.getOrThrow
(ResourceKey<T> pResourceKey) default <T> Holder.Reference
<T> HolderGetter.Provider.getOrThrow
(ResourceKey<T> pKey) DefaultedMappedRegistry.register
(ResourceKey<T> pKey, T pValue, RegistrationInfo pRegistrationInfo) MappedRegistry.register
(int id, ResourceKey<T> p_256252_, T p_256591_, RegistrationInfo p_326235_) MappedRegistry.register
(ResourceKey<T> pKey, T pValue, RegistrationInfo pRegistrationInfo) WritableRegistry.register
(ResourceKey<T> pKey, T pValue, RegistrationInfo pRegistrationInfo) static <T> Holder.Reference
<T> Registry.registerForHolder
(Registry<T> pRegistry, ResourceKey<T> pKey, T pValue) static <T> Holder.Reference
<T> Registry.registerForHolder
(Registry<T> pRegistry, ResourceLocation pName, T pValue) private Holder.Reference
<T> MappedRegistry.validateAndUnwrapTagElement
(TagKey<T> pKey, Holder<T> pValue) Methods in net.minecraft.core that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptionHolderGetter.get
(ResourceKey<T> pResourceKey) default <T> Optional
<Holder.Reference<T>> HolderGetter.Provider.get
(ResourceKey<T> pKey) default Optional
<Holder.Reference<T>> HolderLookup.RegistryLookup.Delegate.get
(ResourceKey<T> p_255619_) MappedRegistry.get
(int pIndex) MappedRegistry.get
(ResourceKey<T> pResourceKey) MappedRegistry.get
(ResourceLocation pKey) Registry.get
(int pIndex) Registry.get
(ResourceLocation pKey) RegistrySetBuilder.UniversalLookup.get
(ResourceKey<Object> pResourceKey) DefaultedMappedRegistry.getAny()
MappedRegistry.getAny()
Registry.getAny()
DefaultedMappedRegistry.getRandom
(RandomSource pRandom) MappedRegistry.getRandom
(RandomSource pRandom) Registry.getRandom
(RandomSource pRandom) RegistrySetBuilder.ValueAndHolder.holder()
Returns the value of theholder
record component.HolderLookup.listElements()
default Stream
<Holder.Reference<T>> HolderLookup.RegistryLookup.Delegate.listElements()
MappedRegistry.listElements()
RegistrySetBuilder.UniversalLookup.listElements()
private com.mojang.serialization.Codec
<Holder.Reference<T>> Registry.referenceHolderWithLifecycle()
private com.mojang.serialization.DataResult
<Holder.Reference<T>> Registry.safeCastToReference
(Holder<T> p_326365_) Methods in net.minecraft.core with parameters of type Holder.ReferenceModifier and TypeMethodDescriptionprivate static <T> T
MappedRegistry.getValueFromNullable
(Holder.Reference<T> pHolder) Method parameters in net.minecraft.core with type arguments of type Holder.ReferenceModifier and TypeMethodDescription(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_) Constructor parameters in net.minecraft.core with type arguments of type Holder.ReferenceModifierConstructorDescription(package private)
ValueAndHolder
(RegistrySetBuilder.RegisteredValue<T> value, Optional<Holder.Reference<T>> holder) Creates an instance of aValueAndHolder
record class. -
Uses of Holder.Reference in net.minecraft.data.advancements.packs
Fields in net.minecraft.data.advancements.packs with type parameters of type Holder.ReferenceModifier and TypeFieldDescriptionprivate static final Comparator
<Holder.Reference<?>> VanillaHusbandryAdvancements.HOLDER_KEY_COMPARATOR
Methods in net.minecraft.data.advancements.packs that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptionprivate static <T> Stream
<Holder.Reference<T>> VanillaHusbandryAdvancements.sortedVariants
(HolderLookup<T> pVariantRegistry) -
Uses of Holder.Reference in net.minecraft.data.worldgen
Methods in net.minecraft.data.worldgen that return Holder.ReferenceModifier and TypeMethodDescriptiondefault Holder.Reference
<T> BootstrapContext.register
(ResourceKey<T> pKey, T pValue) BootstrapContext.register
(ResourceKey<T> pKey, T pValue, com.mojang.serialization.Lifecycle p_321792_) -
Uses of Holder.Reference in net.minecraft.gametest.framework
Fields in net.minecraft.gametest.framework declared as Holder.ReferenceModifier and TypeFieldDescriptionprivate final Holder.Reference
<GameTestInstance> GameTestInfo.test
Fields in net.minecraft.gametest.framework with type parameters of type Holder.ReferenceModifier and TypeFieldDescriptionprivate static final Set
<Holder.Reference<GameTestInstance>> FailedTestTracker.LAST_FAILED_TESTS
private final UnaryOperator
<Supplier<Stream<Holder.Reference<GameTestInstance>>>> TestFinder.Builder.testFinderWrapper
Methods in net.minecraft.gametest.framework that return Holder.ReferenceMethods in net.minecraft.gametest.framework that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptionTestFinder.findTests()
TestInstanceFinder.findTests()
static Stream
<Holder.Reference<GameTestInstance>> FailedTestTracker.getLastFailedTests()
static Stream
<Holder.Reference<GameTestInstance>> GameTestServer.getTestsForSelection
(RegistryAccess pRegistries, String pSelection) Methods in net.minecraft.gametest.framework with parameters of type Holder.ReferenceModifier and TypeMethodDescriptionGameTestBatchFactory.TestDecorator.decorate
(Holder.Reference<GameTestInstance> pInstance, ServerLevel pLevel) static void
FailedTestTracker.rememberFailedTest
(Holder.Reference<GameTestInstance> pTest) private static Stream
<GameTestInfo> GameTestServer.rotateAndMultiply
(Holder.Reference<GameTestInstance> p_397022_, ServerLevel p_397659_) Method parameters in net.minecraft.gametest.framework with type arguments of type Holder.ReferenceModifier and TypeMethodDescriptionTestFinder.Builder.byResourceSelection
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_397078_, Collection<Holder.Reference<GameTestInstance>> p_397871_) static List
<GameTestBatch> GameTestBatchFactory.divideIntoBatches
(Collection<Holder.Reference<GameTestInstance>> pInstances, GameTestBatchFactory.TestDecorator pDecorator, ServerLevel pLevel) Constructors in net.minecraft.gametest.framework with parameters of type Holder.ReferenceModifierConstructorDescriptionGameTestInfo
(Holder.Reference<GameTestInstance> pTest, Rotation pRotation, ServerLevel pLevel, RetryOptions pRetryOptions) Constructor parameters in net.minecraft.gametest.framework with type arguments of type Holder.ReferenceModifierConstructorDescriptionprivate
Builder
(UnaryOperator<Supplier<Stream<Holder.Reference<GameTestInstance>>>> pTestFinderWrapper, UnaryOperator<Supplier<Stream<BlockPos>>> pStructureBlockPosFinderWrapper) -
Uses of Holder.Reference in net.minecraft.resources
Methods in net.minecraft.resources that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptionstatic <E,
O> com.mojang.serialization.codecs.RecordCodecBuilder <O, Holder.Reference<E>> RegistryOps.retrieveElement
(ResourceKey<E> p_256347_) -
Uses of Holder.Reference in net.minecraft.server.commands
Methods in net.minecraft.server.commands that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptionprivate static List
<Holder.Reference<Item>> SpawnArmorTrimsCommand.findEquippableItemsWithAssets
(HolderLookup<Item> pItemRegistry) Methods in net.minecraft.server.commands with parameters of type Holder.ReferenceModifier and TypeMethodDescriptionstatic Entity
SummonCommand.createEntity
(CommandSourceStack pSource, Holder.Reference<EntityType<?>> pType, Vec3 pPos, CompoundTag pTag, boolean pRandomizeProperties) private static int
FillBiomeCommand.fill
(CommandSourceStack pSource, BlockPos pFrom, BlockPos pTo, Holder.Reference<Biome> pBiome, Predicate<Holder<Biome>> pFilter) static int
PlaceCommand.placeFeature
(CommandSourceStack pSource, Holder.Reference<ConfiguredFeature<?, ?>> pFeature, BlockPos pPos) static int
PlaceCommand.placeStructure
(CommandSourceStack pSource, Holder.Reference<Structure> pStructure, BlockPos pPos) private static int
SummonCommand.spawnEntity
(CommandSourceStack pSource, Holder.Reference<EntityType<?>> pType, Vec3 pPos, CompoundTag pTag, boolean pRandomizeProperties) private static CommandSourceStack
ExecuteCommand.spawnEntityAndRedirect
(CommandSourceStack pSource, Holder.Reference<EntityType<?>> pEntityType) Method parameters in net.minecraft.server.commands with type arguments of type Holder.ReferenceModifier and TypeMethodDescriptionprivate static int
SpawnArmorTrimsCommand.spawnArmorTrims
(CommandSourceStack pSource, Player pPlayer, Stream<Holder.Reference<TrimPattern>> pPatterns) -
Uses of Holder.Reference in net.minecraft.sounds
Fields in net.minecraft.sounds declared as Holder.ReferenceModifier and TypeFieldDescriptionstatic final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_BASALT_DELTAS_ADDITIONS
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_BASALT_DELTAS_LOOP
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_BASALT_DELTAS_MOOD
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_CAVE
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_CRIMSON_FOREST_ADDITIONS
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_CRIMSON_FOREST_LOOP
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_CRIMSON_FOREST_MOOD
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_NETHER_WASTES_ADDITIONS
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_NETHER_WASTES_LOOP
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_NETHER_WASTES_MOOD
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_SOUL_SAND_VALLEY_ADDITIONS
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_SOUL_SAND_VALLEY_LOOP
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_SOUL_SAND_VALLEY_MOOD
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_WARPED_FOREST_ADDITIONS
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_WARPED_FOREST_LOOP
static final Holder.Reference
<SoundEvent> SoundEvents.AMBIENT_WARPED_FOREST_MOOD
static final Holder.Reference
<SoundEvent> SoundEvents.BREEZE_WIND_CHARGE_BURST
static final Holder.Reference
<SoundEvent> SoundEvents.CAMEL_SADDLE
static final Holder.Reference
<SoundEvent> SoundEvents.GENERIC_DRINK
static final Holder.Reference
<SoundEvent> SoundEvents.GENERIC_EAT
static final Holder.Reference
<SoundEvent> SoundEvents.GENERIC_EXPLODE
static final Holder.Reference
<SoundEvent> SoundEvents.HARNESS_EQUIP
static final Holder.Reference
<SoundEvent> SoundEvents.HONEY_DRINK
static final Holder.Reference
<SoundEvent> SoundEvents.HORSE_ARMOR
static final Holder.Reference
<SoundEvent> SoundEvents.HORSE_ARMOR_UNEQUIP
static final Holder.Reference
<SoundEvent> SoundEvents.HORSE_SADDLE
static final Holder.Reference
<SoundEvent> SoundEvents.ITEM_BREAK
static final Holder.Reference
<SoundEvent> SoundEvents.LLAMA_CARPET_UNEQUIP
static final Holder.Reference
<SoundEvent> SoundEvents.LLAMA_SWAG
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_BADLANDS
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_BAMBOO_JUNGLE
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_BASALT_DELTAS
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_CHERRY_GROVE
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_CRIMSON_FOREST
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_DEEP_DARK
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_DESERT
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_DRIPSTONE_CAVES
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_FLOWER_FOREST
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_FOREST
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_FROZEN_PEAKS
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_GROVE
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_JAGGED_PEAKS
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_JUNGLE
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_LUSH_CAVES
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_MEADOW
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_NETHER_WASTES
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_OLD_GROWTH_TAIGA
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_SNOWY_SLOPES
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_SOUL_SAND_VALLEY
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_SPARSE_JUNGLE
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_STONY_PEAKS
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_SWAMP
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_BIOME_WARPED_FOREST
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_CREATIVE
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_CREDITS
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_11
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_13
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_5
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_BLOCKS
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_CAT
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_CHIRP
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_CREATOR
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_CREATOR_MUSIC_BOX
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_FAR
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_LAVA_CHICKEN
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_MALL
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_MELLOHI
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_OTHERSIDE
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_PIGSTEP
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_PRECIPICE
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_RELIC
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_STAL
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_STRAD
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_TEARS
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_WAIT
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DISC_WARD
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_DRAGON
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_END
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_GAME
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_MENU
static final Holder.Reference
<SoundEvent> SoundEvents.MUSIC_UNDER_WATER
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_BANJO
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_BASEDRUM
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_BASS
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_BELL
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_BIT
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_CHIME
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_COW_BELL
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_DIDGERIDOO
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_FLUTE
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_GUITAR
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_HARP
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_HAT
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_IMITATE_CREEPER
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_IMITATE_ENDER_DRAGON
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_IMITATE_PIGLIN
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_IMITATE_SKELETON
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_IMITATE_WITHER_SKELETON
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_IMITATE_ZOMBIE
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_IRON_XYLOPHONE
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_PLING
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_SNARE
static final Holder.Reference
<SoundEvent> SoundEvents.NOTE_BLOCK_XYLOPHONE
static final Holder.Reference
<SoundEvent> SoundEvents.OMINOUS_BOTTLE_DISPOSE
static final Holder.Reference
<SoundEvent> SoundEvents.PIG_SADDLE
static final Holder.Reference
<SoundEvent> SoundEvents.RAID_HORN
static final Holder.Reference
<SoundEvent> SoundEvents.RESPAWN_ANCHOR_DEPLETE
static final Holder.Reference
<SoundEvent> SoundEvents.SADDLE_UNEQUIP
static final Holder.Reference
<SoundEvent> SoundEvents.SHIELD_BLOCK
static final Holder.Reference
<SoundEvent> SoundEvents.SHIELD_BREAK
static final Holder.Reference
<SoundEvent> SoundEvents.SOUL_ESCAPE
static final Holder.Reference
<SoundEvent> SoundEvents.STRIDER_SADDLE
static final Holder.Reference
<SoundEvent> SoundEvents.UI_BUTTON_CLICK
static final Holder.Reference
<SoundEvent> SoundEvents.WIND_CHARGE_BURST
static final Holder.Reference
<SoundEvent> SoundEvents.WOLF_ARMOR_BREAK
Fields in net.minecraft.sounds with type parameters of type Holder.ReferenceModifier and TypeFieldDescriptionstatic final com.google.common.collect.ImmutableList
<Holder.Reference<SoundEvent>> SoundEvents.GOAT_HORN_SOUND_VARIANTS
Methods in net.minecraft.sounds that return Holder.ReferenceModifier and TypeMethodDescriptionprivate static Holder.Reference
<SoundEvent> SoundEvents.registerForHolder
(String pName) private static Holder.Reference
<SoundEvent> SoundEvents.registerForHolder
(ResourceLocation pName) private static Holder.Reference
<SoundEvent> SoundEvents.registerForHolder
(ResourceLocation pName, ResourceLocation pLocation) Methods in net.minecraft.sounds that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptionprivate static com.google.common.collect.ImmutableList
<Holder.Reference<SoundEvent>> SoundEvents.registerGoatHornSoundVariants()
-
Uses of Holder.Reference in net.minecraft.util
Fields in net.minecraft.util with type parameters of type Holder.ReferenceModifier and TypeFieldDescription(package private) final Map
<ResourceKey<Object>, Holder.Reference<Object>> PlaceholderLookupProvider.holders
Methods in net.minecraft.util that return Holder.ReferenceModifier and TypeMethodDescriptionprivate Holder.Reference
<Object> PlaceholderLookupProvider.UniversalLookup.getOrCreate
(ResourceKey<Object> pKey) PlaceholderLookupProvider.UniversalLookup.getOrThrow
(ResourceKey<Object> pResourceKey) Methods in net.minecraft.util that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptionPlaceholderLookupProvider.UniversalLookup.get
(ResourceKey<Object> pResourceKey) -
Uses of Holder.Reference in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as Holder.ReferenceModifier and TypeFieldDescriptionprivate final Holder.Reference
<EntityType<?>> EntityType.builtInRegistryHolder
Methods in net.minecraft.world.entity that return Holder.Reference -
Uses of Holder.Reference in net.minecraft.world.entity.variant
Methods in net.minecraft.world.entity.variant that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptionstatic <T extends PriorityProvider<SpawnContext,
?>>
Optional<Holder.Reference<T>> VariantUtils.selectVariantToSpawn
(SpawnContext pContext, ResourceKey<Registry<T>> pRegistryKey) -
Uses of Holder.Reference in net.minecraft.world.item
Fields in net.minecraft.world.item declared as Holder.ReferenceMethods in net.minecraft.world.item that return Holder.ReferenceMethods in net.minecraft.world.item with parameters of type Holder.ReferenceModifier and TypeMethodDescriptionprivate static void
JukeboxSongs.register
(BootstrapContext<JukeboxSong> pContext, ResourceKey<JukeboxSong> pKey, Holder.Reference<SoundEvent> pSoundEvent, int pLengthInSeconds, int pComparatorOutput) -
Uses of Holder.Reference in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block declared as Holder.ReferenceModifier and TypeFieldDescriptionprivate final Holder.Reference
<Block> Block.builtInRegistryHolder
Methods in net.minecraft.world.level.block that return Holder.Reference -
Uses of Holder.Reference in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as Holder.ReferenceModifier and TypeFieldDescriptionprivate final Holder.Reference
<BlockEntityType<?>> BlockEntityType.builtInRegistryHolder
Methods in net.minecraft.world.level.block.entity that return Holder.ReferenceMethods in net.minecraft.world.level.block.entity that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptionprivate Optional
<Holder.Reference<GameTestInstance>> TestInstanceBlockEntity.getTestHolder()
-
Uses of Holder.Reference in net.minecraft.world.level.gameevent
Fields in net.minecraft.world.level.gameevent declared as Holder.ReferenceModifier and TypeFieldDescriptionstatic final Holder.Reference
<GameEvent> GameEvent.BLOCK_ACTIVATE
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_ATTACH
This event is broadcast when a block is attached to another.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_CHANGE
This event is broadcast when a block is changed.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_CLOSE
This event is broadcast when a block such as a door, trap door, or gate is closed.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_DEACTIVATE
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_DESTROY
This event is broadcast when a block is destroyed or picked up by an enderman.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_DETACH
This event is broadcast when a block is detached from another block.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_OPEN
This event is broadcast when a block such as a door, trap door, or gate has been opened.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_PLACE
This event is broadcast when a block is placed in the world.static final Holder.Reference
<GameEvent> GameEvent.CONTAINER_CLOSE
This event is broadcast when a block with a storage inventory such as a chest or barrel is closed.static final Holder.Reference
<GameEvent> GameEvent.CONTAINER_OPEN
This event is broadcast when a block with a storage inventory such as a chest or barrel is opened.static final Holder.Reference
<GameEvent> GameEvent.DRINK
static final Holder.Reference
<GameEvent> GameEvent.EAT
This event is broadcast when an entity consumes food.static final Holder.Reference
<GameEvent> GameEvent.ELYTRA_GLIDE
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_ACTION
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_DAMAGE
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_DIE
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_DISMOUNT
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_INTERACT
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_MOUNT
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_PLACE
This event is broadcast when an entity is artificially placed in the world using an item.static final Holder.Reference
<GameEvent> GameEvent.EQUIP
This event is broadcast when an item is equipped to an entity or armor stand.static final Holder.Reference
<GameEvent> GameEvent.EXPLODE
This event is broadcast when an entity such as a creeper, tnt, or a firework explodes.static final Holder.Reference
<GameEvent> GameEvent.FLAP
This event is broadcast when a flying entity such as the ender dragon flaps its wings.static final Holder.Reference
<GameEvent> GameEvent.FLUID_PICKUP
This event is broadcast when a fluid is picked up.static final Holder.Reference
<GameEvent> GameEvent.FLUID_PLACE
This event is broadcast when fluid is placed.static final Holder.Reference
<GameEvent> GameEvent.HIT_GROUND
This event is broadcast when an entity falls far enough to take fall damage.static final Holder.Reference
<GameEvent> GameEvent.INSTRUMENT_PLAY
static final Holder.Reference
<GameEvent> GameEvent.ITEM_INTERACT_FINISH
static final Holder.Reference
<GameEvent> GameEvent.ITEM_INTERACT_START
static final Holder.Reference
<GameEvent> GameEvent.JUKEBOX_PLAY
static final Holder.Reference
<GameEvent> GameEvent.JUKEBOX_STOP_PLAY
static final Holder.Reference
<GameEvent> GameEvent.LIGHTNING_STRIKE
This event is broadcast when lightning strikes a block.static final Holder.Reference
<GameEvent> GameEvent.NOTE_BLOCK_PLAY
static final Holder.Reference
<GameEvent> GameEvent.PRIME_FUSE
This event is broadcast when an entity such as a creeper or TNT begins exploding.static final Holder.Reference
<GameEvent> GameEvent.PROJECTILE_LAND
This event is broadcast when a projectile hits something.static final Holder.Reference
<GameEvent> GameEvent.PROJECTILE_SHOOT
This event is broadcast when a projectile is fired.static final Holder.Reference
<GameEvent> GameEvent.RESONATE_1
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_10
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_11
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_12
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_13
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_14
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_15
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_2
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_3
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_4
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_5
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_6
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_7
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_8
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_9
static final Holder.Reference
<GameEvent> GameEvent.SCULK_SENSOR_TENDRILS_CLICKING
static final Holder.Reference
<GameEvent> GameEvent.SHEAR
This event is broadcast when a shear is used.static final Holder.Reference
<GameEvent> GameEvent.SHRIEK
static final Holder.Reference
<GameEvent> GameEvent.SPLASH
This event is broadcast wen an entity splashes in the water.static final Holder.Reference
<GameEvent> GameEvent.STEP
This event is broadcast when an entity moves on the ground.static final Holder.Reference
<GameEvent> GameEvent.SWIM
This event is broadcast as an entity swims around in water.static final Holder.Reference
<GameEvent> GameEvent.TELEPORT
static final Holder.Reference
<GameEvent> GameEvent.UNEQUIP
Methods in net.minecraft.world.level.gameevent that return Holder.ReferenceModifier and TypeMethodDescriptionprivate static Holder.Reference
<GameEvent> private static Holder.Reference
<GameEvent> -
Uses of Holder.Reference in net.minecraft.world.level.levelgen
Constructors in net.minecraft.world.level.levelgen with parameters of type Holder.Reference -
Uses of Holder.Reference in net.minecraft.world.level.levelgen.flat
Constructors in net.minecraft.world.level.levelgen.flat with parameters of type Holder.ReferenceModifierConstructorDescriptionprivate
FlatLevelGeneratorSettings
(Optional<HolderSet<StructureSet>> p_256456_, List<FlatLayerInfo> p_255826_, boolean p_255740_, boolean p_255726_, Optional<Holder<Biome>> p_256292_, Holder.Reference<Biome> p_255964_, Holder<PlacedFeature> p_256419_, Holder<PlacedFeature> p_255710_) -
Uses of Holder.Reference in net.minecraft.world.level.material
Fields in net.minecraft.world.level.material declared as Holder.ReferenceModifier and TypeFieldDescriptionprivate final Holder.Reference
<Fluid> Fluid.builtInRegistryHolder
Methods in net.minecraft.world.level.material that return Holder.Reference -
Uses of Holder.Reference in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptiondefault <T> Optional
<Holder.Reference<T>> IHolderLookupProviderExtension.holder
(ResourceKey<T> key) Shortcut method to get an optional holder from a ResourceKey.default <T> Optional
<Holder.Reference<T>> ILevelReaderExtension.holder
(ResourceKey<T> key) Shortcut method to get an optional holder from a ResourceKey. -
Uses of Holder.Reference in net.neoforged.neoforge.event.enchanting
Methods in net.neoforged.neoforge.event.enchanting that return types with arguments of type Holder.ReferenceModifier and TypeMethodDescriptionGetEnchantmentLevelEvent.getHolder
(ResourceKey<Enchantment> key) Attempts to resolve aHolder.Reference
for a target enchantment. -
Uses of Holder.Reference in net.neoforged.neoforge.server
Methods in net.neoforged.neoforge.server with parameters of type Holder.ReferenceModifier and TypeMethodDescriptionprivate static <T> void
ServerLifecycleHooks.ensureProperSync
(boolean modified, Holder.Reference<T> holder, Registry<T> registry)