Uses of Class
net.minecraft.core.Holder.Reference
Package
Description
-
Uses of Holder.Reference in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionPlayerPredicate.Builder.addStat
(StatType<T> p_299266_, Holder.Reference<T> p_299053_, MinMaxBounds.Ints p_156770_) -
Uses of Holder.Reference in net.minecraft.client.gui.screens
Modifier and TypeFieldDescription(package private) final Holder.Reference<Biome>
CreateBuffetWorldScreen.BiomeList.Entry.biome
-
Uses of Holder.Reference in net.minecraft.commands.arguments
Modifier and TypeFieldDescriptionprivate final Holder.Reference<T>
ResourceOrTagArgument.ResourceResult.value
The field for thevalue
record component.Modifier 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.Modifier and TypeMethodDescriptioncom.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()
ModifierConstructorDescription(package private)
ResourceResult
(Holder.Reference<T> value) Creates an instance of aResourceResult
record class. -
Uses of Holder.Reference in net.minecraft.core
Modifier and TypeFieldDescriptionprivate Holder.Reference<T>
DefaultedMappedRegistry.defaultValue
Modifier 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 List<Holder.Reference<T>>
MappedRegistry.holdersInOrder
protected Map<T,
Holder.Reference<T>> MappedRegistry.unregisteredIntrusiveHolders
Modifier and TypeMethodDescriptionstatic <T> Holder.Reference<T>
Holder.Reference.createIntrusive
(HolderOwner<T> p_256106_, T p_255948_) Deprecated.MappedRegistry.createIntrusiveHolder
(T p_205915_) Registry.createIntrusiveHolder
(T p_206068_) static <T> Holder.Reference<T>
Holder.Reference.createStandAlone
(HolderOwner<T> p_255955_, ResourceKey<T> p_255958_) default Holder.Reference<T>
Registry.getHolderOrThrow
(ResourceKey<T> p_249087_) (package private) <T> Holder.Reference<T>
RegistrySetBuilder.UniversalLookup.getOrCreate
(ResourceKey<T> p_256298_) (package private) Holder.Reference<T>
MappedRegistry.getOrCreateHolderOrThrow
(ResourceKey<T> p_248831_) default Holder.Reference<T>
HolderGetter.getOrThrow
(ResourceKey<T> p_255990_) MappedRegistry.register
(ResourceKey<T> p_256252_, T p_256591_, com.mojang.serialization.Lifecycle p_256255_) WritableRegistry.register
(ResourceKey<T> p_256320_, T p_255978_, com.mojang.serialization.Lifecycle p_256625_) static <T> Holder.Reference<T>
Registry.registerForHolder
(Registry<T> p_263347_, ResourceKey<T> p_263355_, T p_263428_) static <T> Holder.Reference<T>
Registry.registerForHolder
(Registry<T> p_263351_, ResourceLocation p_263363_, T p_263423_) DefaultedMappedRegistry.registerMapping
(int p_259787_, ResourceKey<T> p_259677_, T p_259430_, com.mojang.serialization.Lifecycle p_259516_) MappedRegistry.registerMapping
(int p_256563_, ResourceKey<T> p_256594_, T p_256374_, com.mojang.serialization.Lifecycle p_256469_) Modifier and TypeMethodDescriptionHolderGetter.get
(ResourceKey<T> p_255645_) HolderLookup.Delegate.get
(ResourceKey<T> p_256195_) HolderLookup.RegistryLookup.Delegate.get
(ResourceKey<T> p_255619_) RegistrySetBuilder.UniversalLookup.get
(ResourceKey<Object> p_256303_) MappedRegistry.getHolder
(int p_205907_) MappedRegistry.getHolder
(ResourceKey<T> p_205905_) Registry.getHolder
(int p_206051_) Registry.getHolder
(ResourceKey<T> p_206050_) DefaultedMappedRegistry.getRandom
(RandomSource p_260255_) MappedRegistry.getRandom
(RandomSource p_235716_) Registry.getRandom
(RandomSource p_235781_) RegistrySetBuilder.ValueAndHolder.holder()
Returns the value of theholder
record component.MappedRegistry.holders()
Registry.holders()
private List<Holder.Reference<T>>
MappedRegistry.holdersInOrder()
HolderLookup.Delegate.listElements()
HolderLookup.listElements()
HolderLookup.RegistryLookup.Delegate.listElements()
Modifier and TypeMethodDescriptionprivate static <T> T
MappedRegistry.getValueFromNullable
(Holder.Reference<T> p_205866_) ModifierConstructorDescription(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.worldgen
Modifier and TypeMethodDescriptiondefault Holder.Reference<T>
BootstapContext.register
(ResourceKey<T> p_255743_, T p_256121_) BootstapContext.register
(ResourceKey<T> p_256008_, T p_256454_, com.mojang.serialization.Lifecycle p_255725_) -
Uses of Holder.Reference in net.minecraft.resources
Modifier 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
Modifier and TypeMethodDescriptionstatic Entity
SummonCommand.createEntity
(CommandSourceStack p_270582_, Holder.Reference<EntityType<?>> p_270277_, Vec3 p_270366_, CompoundTag p_270197_, boolean p_270947_) private static int
FillBiomeCommand.fill
(CommandSourceStack p_262664_, BlockPos p_262651_, BlockPos p_262678_, Holder.Reference<Biome> p_262612_, Predicate<Holder<Biome>> p_262697_) static int
PlaceCommand.placeFeature
(CommandSourceStack p_214576_, Holder.Reference<ConfiguredFeature<?, ?>> p_248822_, BlockPos p_214578_) static int
PlaceCommand.placeStructure
(CommandSourceStack p_214588_, Holder.Reference<Structure> p_251799_, BlockPos p_214590_) private static int
SummonCommand.spawnEntity
(CommandSourceStack p_249752_, Holder.Reference<EntityType<?>> p_251948_, Vec3 p_251429_, CompoundTag p_250568_, boolean p_250229_) private static CommandSourceStack
ExecuteCommand.spawnEntityAndRedirect
(CommandSourceStack p_270320_, Holder.Reference<EntityType<?>> p_270344_) -
Uses of Holder.Reference in net.minecraft.sounds
Modifier 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.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_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.RAID_HORN
static final Holder.Reference<SoundEvent>
SoundEvents.RESPAWN_ANCHOR_DEPLETE
static final Holder.Reference<SoundEvent>
SoundEvents.UI_BUTTON_CLICK
Modifier and TypeFieldDescriptionstatic final com.google.common.collect.ImmutableList<Holder.Reference<SoundEvent>>
SoundEvents.GOAT_HORN_SOUND_VARIANTS
Modifier and TypeMethodDescriptionprivate static Holder.Reference<SoundEvent>
SoundEvents.registerForHolder
(String p_263391_) private static Holder.Reference<SoundEvent>
SoundEvents.registerForHolder
(ResourceLocation p_263361_) private static Holder.Reference<SoundEvent>
SoundEvents.registerForHolder
(ResourceLocation p_263362_, ResourceLocation p_263424_) Modifier and TypeMethodDescriptionprivate static com.google.common.collect.ImmutableList<Holder.Reference<SoundEvent>>
SoundEvents.registerGoatHornSoundVariants()
-
Uses of Holder.Reference in net.minecraft.world.effect
Modifier and TypeFieldDescriptionprivate final Holder.Reference<MobEffect>
MobEffect.builtInRegistryHolder
-
Uses of Holder.Reference in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate final Holder.Reference<EntityType<?>>
EntityType.builtInRegistryHolder
-
Uses of Holder.Reference in net.minecraft.world.item
-
Uses of Holder.Reference in net.minecraft.world.item.alchemy
Modifier and TypeFieldDescriptionprivate final Holder.Reference<Potion>
Potion.builtInRegistryHolder
-
Uses of Holder.Reference in net.minecraft.world.item.armortrim
Modifier and TypeMethodDescriptionstatic Optional<Holder.Reference<TrimMaterial>>
TrimMaterials.getFromIngredient
(RegistryAccess p_266981_, ItemStack p_267327_) static Optional<Holder.Reference<TrimPattern>>
TrimPatterns.getFromTemplate
(RegistryAccess p_267205_, ItemStack p_267001_) -
Uses of Holder.Reference in net.minecraft.world.item.enchantment
Modifier and TypeFieldDescriptionprivate final Holder.Reference<Enchantment>
Enchantment.builtInRegistryHolder
-
Uses of Holder.Reference in net.minecraft.world.level.block
Modifier and TypeFieldDescriptionprivate final Holder.Reference<Block>
Block.builtInRegistryHolder
-
Uses of Holder.Reference in net.minecraft.world.level.block.entity
Modifier and TypeFieldDescriptionprivate final Holder.Reference<BlockEntityType<?>>
BlockEntityType.builtInRegistryHolder
-
Uses of Holder.Reference in net.minecraft.world.level.gameevent
Modifier and TypeFieldDescriptionprivate final Holder.Reference<GameEvent>
GameEvent.builtInRegistryHolder
-
Uses of Holder.Reference in net.minecraft.world.level.levelgen
-
Uses of Holder.Reference in net.minecraft.world.level.levelgen.flat
ModifierConstructorDescriptionprivate
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
Modifier and TypeFieldDescriptionprivate final Holder.Reference<Fluid>
Fluid.builtInRegistryHolder