Uses of Interface
net.minecraft.core.Holder
Packages that use Holder
Package
Description
-
Uses of Holder in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon declared as HolderModifier and TypeFieldDescriptionPlayerPredicate.StatMatcher.value
The field for thevalue
record component.Fields in net.minecraft.advancements.critereon with type parameters of type HolderModifier and TypeFieldDescriptionBeeNestDestroyedTrigger.TriggerInstance.block
The field for theblock
record component.EnterBlockTrigger.TriggerInstance.block
The field for theblock
record component.SlideDownBlockTrigger.TriggerInstance.block
The field for theblock
record component.private final com.google.common.collect.ImmutableMap.Builder
<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> MobEffectsPredicate.Builder.effectMap
private final Map
<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> MobEffectsPredicate.effectMap
The field for theeffectMap
record component.EntitySubPredicates.EntityHolderVariantPredicateType.getter
BrewedPotionTrigger.TriggerInstance.potion
The field for thepotion
record component.Methods in net.minecraft.advancements.critereon that return HolderModifier and TypeMethodDescriptionPlayerPredicate.StatMatcher.value()
Returns the value of thevalue
record component.Methods in net.minecraft.advancements.critereon that return types with arguments of type HolderModifier and TypeMethodDescriptionBeeNestDestroyedTrigger.TriggerInstance.block()
Returns the value of theblock
record component.EnterBlockTrigger.TriggerInstance.block()
Returns the value of theblock
record component.SlideDownBlockTrigger.TriggerInstance.block()
Returns the value of theblock
record component.MobEffectsPredicate.effectMap()
Returns the value of theeffectMap
record component.BrewedPotionTrigger.TriggerInstance.potion()
Returns the value of thepotion
record component.Methods in net.minecraft.advancements.critereon with parameters of type HolderModifier and TypeMethodDescriptionMobEffectsPredicate.Builder.and
(Holder<MobEffect> pEffect, MobEffectsPredicate.MobEffectInstancePredicate pPredicate) static EntitySubPredicate
EntitySubPredicates.catVariant
(Holder<CatVariant> pCatVariant) static EntitySubPredicate
EntitySubPredicates.frogVariant
(Holder<FrogVariant> pFrogVariant) static LocationPredicate.Builder
static LocationPredicate.Builder
LocationPredicate.Builder.inStructure
(Holder<Structure> pStructure) boolean
boolean
private boolean
EnchantmentPredicate.matchesEnchantment
(ItemEnchantments pItemEnchantments, Holder<Enchantment> pEnchantment) void
BrewedPotionTrigger.trigger
(ServerPlayer pPlayer, Holder<Potion> pPotion) Method parameters in net.minecraft.advancements.critereon with type arguments of type HolderModifier and TypeMethodDescriptionstatic <V> EntitySubPredicates.EntityHolderVariantPredicateType
<V> EntitySubPredicates.EntityHolderVariantPredicateType.create
(ResourceKey<? extends Registry<V>> pRegistryKey, Function<Entity, Optional<Holder<V>>> pGetter) boolean
MobEffectsPredicate.matches
(Map<Holder<MobEffect>, MobEffectInstance> pEffects) Constructors in net.minecraft.advancements.critereon with parameters of type HolderModifierConstructorDescriptionEnchantmentPredicate
(Holder<Enchantment> p_345021_, MinMaxBounds.Ints p_345012_) StatMatcher
(StatType<T> p_299207_, Holder<T> p_298208_, MinMaxBounds.Ints p_299102_) (package private)
StatMatcher
(StatType<T> type, Holder<T> value, MinMaxBounds.Ints range, Supplier<Stat<T>> stat) Creates an instance of aStatMatcher
record class.Constructor parameters in net.minecraft.advancements.critereon with type arguments of type HolderModifierConstructorDescriptionEntityHolderVariantPredicateType
(ResourceKey<? extends Registry<V>> pRegistryKey, Function<Entity, Optional<Holder<V>>> pGetter) MobEffectsPredicate
(Map<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> effectMap) Creates an instance of aMobEffectsPredicate
record class. -
Uses of Holder in net.minecraft.client.gui.components
Methods in net.minecraft.client.gui.components with parameters of type HolderModifier and TypeMethodDescriptionprivate static String
DebugScreenOverlay.printBiome
(Holder<Biome> pBiomeHolder) -
Uses of Holder in net.minecraft.client.gui.screens
Fields in net.minecraft.client.gui.screens declared as HolderFields in net.minecraft.client.gui.screens with type parameters of type HolderConstructors in net.minecraft.client.gui.screens with parameters of type HolderConstructor parameters in net.minecraft.client.gui.screens with type arguments of type HolderModifierConstructorDescriptionCreateBuffetWorldScreen
(Screen pParent, WorldCreationContext pContext, Consumer<Holder<Biome>> pApplySettings) -
Uses of Holder in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory declared as HolderModifier and TypeFieldDescriptionBeaconScreen.BeaconPowerButton.effect
BeaconScreen.primary
BeaconScreen.secondary
Methods in net.minecraft.client.gui.screens.inventory with parameters of type HolderModifier and TypeMethodDescriptionprotected MutableComponent
BeaconScreen.BeaconPowerButton.createEffectDescription
(Holder<MobEffect> pEffect) protected MutableComponent
BeaconScreen.BeaconUpgradePowerButton.createEffectDescription
(Holder<MobEffect> pEffect) private void
LoomScreen.renderPattern
(GuiGraphics pGuiGraphics, Holder<BannerPattern> pPatern, int pX, int pY) protected void
Constructors in net.minecraft.client.gui.screens.inventory with parameters of type HolderModifierConstructorDescriptionBeaconPowerButton
(int pX, int pY, Holder<MobEffect> pEffect, boolean pIsPrimary, int pTier) BeaconUpgradePowerButton
(int pX, int pY, Holder<MobEffect> pEffect) -
Uses of Holder in net.minecraft.client.gui.screens.worldselection
Fields in net.minecraft.client.gui.screens.worldselection declared as HolderModifier and TypeFieldDescriptionprivate final Holder
<WorldPreset> WorldCreationUiState.WorldTypeEntry.preset
The field for thepreset
record component.Methods in net.minecraft.client.gui.screens.worldselection that return HolderModifier and TypeMethodDescriptionWorldCreationUiState.WorldTypeEntry.preset()
Returns the value of thepreset
record component.Methods in net.minecraft.client.gui.screens.worldselection that return types with arguments of type HolderModifier and TypeMethodDescriptionprivate static Optional
<Holder<WorldPreset>> WorldCreationUiState.findPreset
(WorldCreationContext pContext, Optional<ResourceKey<WorldPreset>> pPreset) Methods in net.minecraft.client.gui.screens.worldselection with parameters of type HolderModifier and TypeMethodDescriptionprivate static WorldCreationContext.DimensionsUpdater
PresetEditor.fixedBiomeConfigurator
(Holder<Biome> pBiome) Constructors in net.minecraft.client.gui.screens.worldselection with parameters of type HolderModifierConstructorDescriptionWorldTypeEntry
(Holder<WorldPreset> preset) Creates an instance of aWorldTypeEntry
record class. -
Uses of Holder in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer that return HolderMethods in net.minecraft.client.multiplayer with parameters of type HolderModifier and TypeMethodDescriptionvoid
ClientLevel.gameEvent
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) void
ClientLevel.playSeededSound
(Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) void
ClientLevel.playSeededSound
(Player pPlayer, Entity pEntity, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) Constructors in net.minecraft.client.multiplayer with parameters of type HolderModifierConstructorDescriptionClientLevel
(ClientPacketListener pConnection, ClientLevel.ClientLevelData pClientLevelData, ResourceKey<Level> pDimension, Holder<DimensionType> pDimensionType, int pViewDistance, int pServerSimulationDistance, Supplier<ProfilerFiller> pProfiler, LevelRenderer pLevelRenderer, boolean pIsDebug, long pBiomeZoomSeed) -
Uses of Holder in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type Holder -
Uses of Holder in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer that return HolderModifier and TypeMethodDescriptionFogRenderer.BlindnessFogFunction.getMobEffect()
FogRenderer.DarknessFogFunction.getMobEffect()
FogRenderer.MobEffectFogFunction.getMobEffect()
Methods in net.minecraft.client.renderer with parameters of type HolderModifier and TypeMethodDescriptionstatic Material
Sheets.getBannerMaterial
(Holder<BannerPattern> pPattern) static Material
Sheets.getShieldMaterial
(Holder<BannerPattern> pPattern) void
LevelRenderer.playJukeboxSong
(Holder<JukeboxSong> pSong, BlockPos pPos) -
Uses of Holder in net.minecraft.client.renderer.debug
Methods in net.minecraft.client.renderer.debug with parameters of type HolderModifier and TypeMethodDescriptionboolean
GameEventListenerRenderer.TrackedListener.handleGameEvent
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) -
Uses of Holder in net.minecraft.client.renderer.entity.layers
Methods in net.minecraft.client.renderer.entity.layers with parameters of type HolderModifier and TypeMethodDescriptionprivate void
HumanoidArmorLayer.renderTrim
(Holder<ArmorMaterial> pArmorMaterial, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, ArmorTrim pTrim, A pModel, boolean pInnerTexture) private void
HumanoidArmorLayer.renderTrim
(Holder<ArmorMaterial> p_323506_, PoseStack p_289687_, MultiBufferSource p_289643_, int p_289683_, ArmorTrim p_289692_, Model p_289663_, boolean p_289651_) -
Uses of Holder in net.minecraft.client.resources
Methods in net.minecraft.client.resources with parameters of type HolderModifier and TypeMethodDescription -
Uses of Holder in net.minecraft.client.resources.sounds
Methods in net.minecraft.client.resources.sounds with parameters of type HolderModifier and TypeMethodDescriptionstatic SimpleSoundInstance
SimpleSoundInstance.forUI
(Holder<SoundEvent> pSoundHolder, float pPitch) -
Uses of Holder in net.minecraft.commands.arguments
Fields in net.minecraft.commands.arguments with type parameters of type HolderMethods in net.minecraft.commands.arguments that return HolderModifier and TypeMethodDescriptionstatic Holder
<LootItemFunction> ResourceOrIdArgument.getLootModifier
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_335678_, String p_336178_) static Holder
<LootItemCondition> ResourceOrIdArgument.getLootPredicate
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_336183_, String p_336098_) ResourceOrIdArgument.getLootTable
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_335373_, String p_336017_) private static <T> Holder
<T> ResourceOrIdArgument.getResource
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_336122_, String p_335417_) ResourceOrIdArgument.parse
(com.mojang.brigadier.StringReader p_335906_) Methods in net.minecraft.commands.arguments with parameters of type HolderModifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
Constructor parameters in net.minecraft.commands.arguments with type arguments of type HolderModifierConstructorDescriptionprotected
ResourceOrIdArgument
(CommandBuildContext p_335864_, ResourceKey<Registry<T>> p_335475_, com.mojang.serialization.Codec<Holder<T>> p_335632_) -
Uses of Holder in net.minecraft.commands.arguments.item
Fields in net.minecraft.commands.arguments.item declared as HolderModifier and TypeFieldDescriptionItemInput.item
ItemParser.ItemResult.item
The field for theitem
record component.Methods in net.minecraft.commands.arguments.item that return HolderModifier and TypeMethodDescriptionItemParser.ItemResult.item()
Returns the value of theitem
record component.Methods in net.minecraft.commands.arguments.item with parameters of type HolderModifier and TypeMethodDescriptionprivate static void
ItemParser.validateComponents
(com.mojang.brigadier.StringReader p_341137_, Holder<Item> p_341139_, DataComponentPatch p_345848_) default void
Constructors in net.minecraft.commands.arguments.item with parameters of type HolderModifierConstructorDescriptionItemInput
(Holder<Item> pItem, DataComponentPatch pComponents) ItemResult
(Holder<Item> item, DataComponentPatch components) Creates an instance of aItemResult
record class. -
Uses of Holder in net.minecraft.core
Classes in net.minecraft.core that implement HolderModifier and TypeClassDescriptionstatic final record
static class
(package private) static class
Fields in net.minecraft.core with type parameters of type HolderModifier and TypeFieldDescriptionHolderSet.Direct.contents
HolderSet.Named.contents
HolderSet.Direct.contentsSet
Methods in net.minecraft.core that return HolderModifier and TypeMethodDescriptionstatic <T> Holder
<T> Holder.direct
(T pValue) HolderSet.get
(int pIndex) HolderSet.ListBacked.get
(int p_205823_) MappedRegistry.wrapAsHolder
(T pValue) Registry.wrapAsHolder
(T pValue) Methods in net.minecraft.core that return types with arguments of type HolderModifier and TypeMethodDescriptionRegistry.asHolderIdMap()
HolderSet.Direct.contents()
HolderSet.ListBacked.contents()
HolderSet.Named.contents()
HolderSet.getRandomElement
(RandomSource pRandom) HolderSet.ListBacked.getRandomElement
(RandomSource p_235714_) Registry.getRandomElementOf
(TagKey<T> pKey, RandomSource pRandom) Registry.getTagOrEmpty
(TagKey<T> pKey) Registry.holderByNameCodec()
HolderSet.ListBacked.iterator()
HolderSet.ListBacked.spliterator()
HolderSet.ListBacked.stream()
HolderSet.stream()
HolderSet.Direct.unwrap()
HolderSet.Named.unwrap()
HolderSet.unwrap()
Methods in net.minecraft.core with parameters of type HolderModifier and TypeMethodDescriptionboolean
boolean
boolean
static <T> HolderSet.Direct
<T> boolean
boolean
Deprecated.boolean
private com.mojang.serialization.DataResult
<Holder.Reference<T>> Registry.safeCastToReference
(Holder<T> p_326365_) Method parameters in net.minecraft.core with type arguments of type HolderModifier and TypeMethodDescription(package private) void
void
void
static <E,
T> HolderSet.Direct <T> static <E,
T> HolderSet.Direct <T> HolderSet.direct
(Function<E, Holder<T>> pHolderFactory, Collection<E> pValues) static <T> HolderSet.Direct
<T> Constructor parameters in net.minecraft.core with type arguments of type Holder -
Uses of Holder in net.minecraft.core.component
Fields in net.minecraft.core.component with type parameters of type HolderModifier and TypeFieldDescriptionstatic final DataComponentType
<Holder<Instrument>> DataComponents.INSTRUMENT
-
Uses of Holder in net.minecraft.data.models
Fields in net.minecraft.data.models with type parameters of type HolderModifier and TypeFieldDescriptionprivate final Map
<Holder<ArmorMaterial>, String> ItemModelGenerators.TrimModelData.overrideArmorMaterials
The field for theoverrideArmorMaterials
record component.Methods in net.minecraft.data.models that return types with arguments of type HolderModifier and TypeMethodDescriptionItemModelGenerators.TrimModelData.overrideArmorMaterials()
Returns the value of theoverrideArmorMaterials
record component.Methods in net.minecraft.data.models with parameters of type HolderModifier and TypeMethodDescriptionprivate com.google.gson.JsonObject
ItemModelGenerators.generateBaseArmorTrimTemplate
(ResourceLocation p_266939_, Map<TextureSlot, ResourceLocation> p_267324_, Holder<ArmorMaterial> p_323559_) ItemModelGenerators.TrimModelData.name
(Holder<ArmorMaterial> pArmorMaterial) Constructor parameters in net.minecraft.data.models with type arguments of type HolderModifierConstructorDescriptionTrimModelData
(String name, float itemModelIndex, Map<Holder<ArmorMaterial>, String> overrideArmorMaterials) Creates an instance of aTrimModelData
record class. -
Uses of Holder in net.minecraft.data.worldgen.features
Methods in net.minecraft.data.worldgen.features that return HolderModifier and TypeMethodDescriptionprivate static Holder
<PlacedFeature> CaveFeatures.makeDripleaf
(Direction pFacingDirection) private static Holder
<PlacedFeature> CaveFeatures.makeSmallDripleaf()
Methods in net.minecraft.data.worldgen.features with parameters of type HolderModifier and TypeMethodDescriptionstatic RandomPatchConfiguration
FeatureUtils.simpleRandomPatchConfiguration
(int pTries, Holder<PlacedFeature> pFeature) -
Uses of Holder in net.minecraft.data.worldgen.placement
Methods in net.minecraft.data.worldgen.placement that return HolderModifier and TypeMethodDescriptionstatic <FC extends FeatureConfiguration,
F extends Feature<FC>>
Holder<PlacedFeature> PlacementUtils.filtered
(F pFeature, FC pConfig, BlockPredicate pPredicate) static <FC extends FeatureConfiguration,
F extends Feature<FC>>
Holder<PlacedFeature> PlacementUtils.inlinePlaced
(F pFeature, FC pConfig, PlacementModifier... pPlacements) static Holder
<PlacedFeature> PlacementUtils.inlinePlaced
(Holder<ConfiguredFeature<?, ?>> pFeature, PlacementModifier... pPlacements) static <FC extends FeatureConfiguration,
F extends Feature<FC>>
Holder<PlacedFeature> PlacementUtils.onlyWhenEmpty
(F pFeature, FC pConfig) Methods in net.minecraft.data.worldgen.placement with parameters of type HolderModifier and TypeMethodDescriptionstatic Holder
<PlacedFeature> PlacementUtils.inlinePlaced
(Holder<ConfiguredFeature<?, ?>> pFeature, PlacementModifier... pPlacements) static void
PlacementUtils.register
(BootstrapContext<PlacedFeature> pContext, ResourceKey<PlacedFeature> pKey, Holder<ConfiguredFeature<?, ?>> pConfiguredFeature, List<PlacementModifier> pPlacements) static void
PlacementUtils.register
(BootstrapContext<PlacedFeature> pContext, ResourceKey<PlacedFeature> pKey, Holder<ConfiguredFeature<?, ?>> pConfiguredFeature, PlacementModifier... pPlacements) -
Uses of Holder in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type HolderModifier and TypeMethodDescriptionvoid
GameTestHelper.assertLivingEntityHasMobEffect
(LivingEntity pEntity, Holder<MobEffect> pEffect, int pAmplifier) -
Uses of Holder in net.minecraft.network.chat
Fields in net.minecraft.network.chat declared as HolderModifier and TypeFieldDescriptionChatType.Bound.chatType
The field for thechatType
record component.HoverEvent.ItemStackInfo.item
Fields in net.minecraft.network.chat with type parameters of type HolderModifier and TypeFieldDescriptionstatic final StreamCodec
<RegistryFriendlyByteBuf, Holder<ChatType>> ChatType.STREAM_CODEC
Methods in net.minecraft.network.chat that return HolderModifier and TypeMethodDescriptionChatType.Bound.chatType()
Returns the value of thechatType
record component.Constructors in net.minecraft.network.chat with parameters of type HolderModifierConstructorDescription(package private)
Creates an instance of aBound
record class.(package private)
ItemStackInfo
(Holder<Item> pItem, int pCount, DataComponentPatch pComponents) -
Uses of Holder in net.minecraft.network.codec
Methods in net.minecraft.network.codec that return types with arguments of type HolderModifier and TypeMethodDescriptionstatic <T> StreamCodec
<RegistryFriendlyByteBuf, Holder<T>> ByteBufCodecs.holder
(ResourceKey<? extends Registry<T>> pRegistryKey, StreamCodec<? super RegistryFriendlyByteBuf, T> pCodec) static <T> StreamCodec
<RegistryFriendlyByteBuf, Holder<T>> ByteBufCodecs.holderRegistry
(ResourceKey<? extends Registry<T>> pRegistryKey) -
Uses of Holder in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as HolderModifier and TypeFieldDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.attribute
The field for theattribute
record component.private final Holder
<DimensionType> CommonPlayerSpawnInfo.dimensionType
The field for thedimensionType
record component.ClientboundRemoveMobEffectPacket.effect
The field for theeffect
record component.ClientboundUpdateMobEffectPacket.effect
private final Holder
<SoundEvent> ClientboundExplodePacket.explosionSound
private final Holder
<SoundEvent> ClientboundSoundEntityPacket.sound
private final Holder
<SoundEvent> ClientboundSoundPacket.sound
private final Holder
<DamageType> ClientboundDamageEventPacket.sourceType
The field for thesourceType
record component.Fields in net.minecraft.network.protocol.game with type parameters of type HolderModifier and TypeFieldDescriptionServerboundSetBeaconPacket.primary
The field for theprimary
record component.ServerboundSetBeaconPacket.secondary
The field for thesecondary
record component.Methods in net.minecraft.network.protocol.game that return HolderModifier and TypeMethodDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.attribute()
Returns the value of theattribute
record component.CommonPlayerSpawnInfo.dimensionType()
Returns the value of thedimensionType
record component.ClientboundRemoveMobEffectPacket.effect()
Returns the value of theeffect
record component.ClientboundUpdateMobEffectPacket.getEffect()
ClientboundExplodePacket.getExplosionSound()
ClientboundSoundEntityPacket.getSound()
ClientboundSoundPacket.getSound()
ClientboundDamageEventPacket.sourceType()
Returns the value of thesourceType
record component.Methods in net.minecraft.network.protocol.game that return types with arguments of type HolderModifier and TypeMethodDescriptionServerboundSetBeaconPacket.primary()
Returns the value of theprimary
record component.ServerboundSetBeaconPacket.secondary()
Returns the value of thesecondary
record component.Methods in net.minecraft.network.protocol.game with parameters of type HolderModifier and TypeMethodDescriptionstatic void
DebugPackets.sendGameEventInfo
(Level pLevel, Holder<GameEvent> pGameEvent, Vec3 pPos) Constructors in net.minecraft.network.protocol.game with parameters of type HolderModifierConstructorDescriptionAttributeSnapshot
(Holder<Attribute> attribute, double base, Collection<AttributeModifier> modifiers) Creates an instance of aAttributeSnapshot
record class.ClientboundDamageEventPacket
(int entityId, Holder<DamageType> sourceType, int sourceCauseId, int sourceDirectId, Optional<Vec3> sourcePosition) Creates an instance of aClientboundDamageEventPacket
record class.ClientboundExplodePacket
(double pX, double pY, double pZ, float pPower, List<BlockPos> pToBlow, Vec3 pKnockback, Explosion.BlockInteraction pBlockInteraction, ParticleOptions pSmallExplosionParticles, ParticleOptions pLargeExplosionParticles, Holder<SoundEvent> pExplosionSound) ClientboundRemoveMobEffectPacket
(int entityId, Holder<MobEffect> effect) Creates an instance of aClientboundRemoveMobEffectPacket
record class.ClientboundSoundEntityPacket
(Holder<SoundEvent> pSound, SoundSource pSource, Entity pEntity, float pVolume, float pPitch, long pSeed) ClientboundSoundPacket
(Holder<SoundEvent> pSound, SoundSource pSource, double pX, double pY, double pZ, float pVolume, float pPitch, long pSeed) CommonPlayerSpawnInfo
(Holder<DimensionType> dimensionType, ResourceKey<Level> dimension, long seed, GameType gameType, GameType previousGameType, boolean isDebug, boolean isFlat, Optional<GlobalPos> lastDeathLocation, int portalCooldown) Creates an instance of aCommonPlayerSpawnInfo
record class.Constructor parameters in net.minecraft.network.protocol.game with type arguments of type Holder -
Uses of Holder in net.minecraft.network.syncher
Fields in net.minecraft.network.syncher with type parameters of type HolderModifier and TypeFieldDescriptionstatic final EntityDataSerializer
<Holder<CatVariant>> EntityDataSerializers.CAT_VARIANT
static final EntityDataSerializer
<Holder<FrogVariant>> EntityDataSerializers.FROG_VARIANT
static final EntityDataSerializer
<Holder<PaintingVariant>> EntityDataSerializers.PAINTING_VARIANT
static final EntityDataSerializer
<Holder<WolfVariant>> EntityDataSerializers.WOLF_VARIANT
-
Uses of Holder in net.minecraft.resources
Fields in net.minecraft.resources with type parameters of type HolderModifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec
<com.mojang.datafixers.util.Either<ICustomHolderSet<E>, com.mojang.datafixers.util.Either<TagKey<E>, List<Holder<E>>>>> HolderSetCodec.combinedCodec
HolderSetCodec.elementCodec
HolderSetCodec.homogenousListCodec
private final com.mojang.serialization.Codec
<com.mojang.datafixers.util.Either<TagKey<E>, List<Holder<E>>>> HolderSetCodec.registryAwareCodec
Methods in net.minecraft.resources that return types with arguments of type HolderModifier and TypeMethodDescriptionRegistryFileCodec.decode
(com.mojang.serialization.DynamicOps<T> p_135608_, T p_135609_) RegistryFixedCodec.decode
(com.mojang.serialization.DynamicOps<T> p_206743_, T p_206744_) HolderSetCodec.homogenousList
(com.mojang.serialization.Codec<Holder<E>> p_206668_, boolean p_206669_) Methods in net.minecraft.resources with parameters of type HolderModifier and TypeMethodDescription<T> com.mojang.serialization.DataResult
<T> RegistryFileCodec.encode
(Holder<E> p_206716_, com.mojang.serialization.DynamicOps<T> p_206717_, T p_206718_) <T> com.mojang.serialization.DataResult
<T> RegistryFixedCodec.encode
(Holder<E> p_206729_, com.mojang.serialization.DynamicOps<T> p_206730_, T p_206731_) Method parameters in net.minecraft.resources with type arguments of type HolderModifier and TypeMethodDescriptionstatic <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_) HolderSetCodec.homogenousList
(com.mojang.serialization.Codec<Holder<E>> p_206668_, boolean p_206669_) Constructor parameters in net.minecraft.resources with type arguments of type HolderModifierConstructorDescriptionprivate
HolderSetCodec
(ResourceKey<? extends Registry<E>> p_206660_, com.mojang.serialization.Codec<Holder<E>> p_206661_, boolean p_206662_) -
Uses of Holder in net.minecraft.server.commands
Fields in net.minecraft.server.commands with type parameters of type HolderModifier and TypeFieldDescriptionprivate static final Map
<com.mojang.datafixers.util.Pair<Holder<ArmorMaterial>, EquipmentSlot>, Item> SpawnArmorTrimsCommand.MATERIAL_AND_SLOT_TO_ITEM
Methods in net.minecraft.server.commands with parameters of type HolderModifier and TypeMethodDescriptionprivate static int
AttributeCommand.addModifier
(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute, ResourceLocation pId, double pAmount, AttributeModifier.Operation pOperation) private static ItemStack
ItemCommands.applyModifier
(CommandSourceStack pSource, Holder<LootItemFunction> pModifier, ItemStack pStack) private static int
ItemCommands.blockToBlock
(CommandSourceStack pSource, BlockPos pSourcePos, int pSourceSlot, BlockPos pPos, int pSlot, Holder<LootItemFunction> pModifier) private static int
ItemCommands.blockToEntities
(CommandSourceStack pSource, BlockPos pPos, int pSourceSlot, Collection<? extends Entity> pTargets, int pSlot, Holder<LootItemFunction> pModifier) private static boolean
ExecuteCommand.checkCustomPredicate
(CommandSourceStack pSource, Holder<LootItemCondition> pCondition) private static int
EffectCommands.clearEffect
(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Holder<MobEffect> pEffect) private static int
LootCommand.drop
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_287721_, Holder<LootTable> p_335766_, LootParams p_287728_, LootCommand.DropConsumer p_287770_) private static int
LootCommand.dropChestLoot
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137933_, Holder<LootTable> p_336054_, LootCommand.DropConsumer p_137935_) private static int
LootCommand.dropFishingLoot
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137927_, Holder<LootTable> p_335944_, BlockPos p_137929_, ItemStack p_137930_, LootCommand.DropConsumer p_137931_) private static int
EnchantCommand.enchant
(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Holder<Enchantment> pEnchantment, int pLevel) private static int
ItemCommands.entityToBlock
(CommandSourceStack pSource, Entity pSourceEntity, int pSourceSlot, BlockPos pPos, int pSlot, Holder<LootItemFunction> pModifier) private static int
ItemCommands.entityToEntities
(CommandSourceStack pSource, Entity pSourceEntity, int pSourceSlot, Collection<? extends Entity> pTargets, int pSlot, Holder<LootItemFunction> pModifier) static com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> FillBiomeCommand.fill
(ServerLevel p_313898_, BlockPos p_313859_, BlockPos p_313868_, Holder<Biome> p_313728_) static com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> FillBiomeCommand.fill
(ServerLevel p_313779_, BlockPos p_313726_, BlockPos p_313895_, Holder<Biome> p_313905_, Predicate<Holder<Biome>> p_313945_, Consumer<Supplier<Component>> p_313787_) private static int
AttributeCommand.getAttributeBase
(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute, double pScale) private static Component
AttributeCommand.getAttributeDescription
(Holder<Attribute> pAttribute) private static AttributeInstance
AttributeCommand.getAttributeInstance
(Entity pEntity, Holder<Attribute> pAttribute) private static int
AttributeCommand.getAttributeModifier
(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute, ResourceLocation pId, double pScale) private static int
AttributeCommand.getAttributeValue
(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute, double pScale) private static LivingEntity
AttributeCommand.getEntityWithAttribute
(Entity pEntity, Holder<Attribute> pAttribute) private static int
EffectCommands.giveEffect
(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Holder<MobEffect> pEffect, Integer pSeconds, int pAmplifier, boolean pShowParticles) private static BiomeResolver
FillBiomeCommand.makeResolver
(org.apache.commons.lang3.mutable.MutableInt p_262615_, ChunkAccess p_262698_, BoundingBox p_262622_, Holder<Biome> p_262705_, Predicate<Holder<Biome>> p_262695_) private static int
ItemCommands.modifyBlockItem
(CommandSourceStack pSource, BlockPos pPos, int pSlot, Holder<LootItemFunction> pModifier) private static int
ItemCommands.modifyEntityItem
(CommandSourceStack pSource, Collection<? extends Entity> pTargets, int pSourceSlot, Holder<LootItemFunction> pModifer) static int
PlaceCommand.placeJigsaw
(CommandSourceStack pSource, Holder<StructureTemplatePool> pTemplatePool, ResourceLocation pTarget, int pMaxDepth, BlockPos pPos) private static int
AttributeCommand.removeModifier
(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute, ResourceLocation pId) private static int
AttributeCommand.setAttributeBase
(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute, double pValue) Method parameters in net.minecraft.server.commands with type arguments of type HolderModifier and TypeMethodDescriptionprivate static int
FillBiomeCommand.fill
(CommandSourceStack pSource, BlockPos pFrom, BlockPos pTo, Holder.Reference<Biome> pBiome, Predicate<Holder<Biome>> pFilter) static com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> FillBiomeCommand.fill
(ServerLevel p_313779_, BlockPos p_313726_, BlockPos p_313895_, Holder<Biome> p_313905_, Predicate<Holder<Biome>> p_313945_, Consumer<Supplier<Component>> p_313787_) private static BiomeResolver
FillBiomeCommand.makeResolver
(org.apache.commons.lang3.mutable.MutableInt p_262615_, ChunkAccess p_262698_, BoundingBox p_262622_, Holder<Biome> p_262705_, Predicate<Holder<Biome>> p_262695_) static int
LocateCommand.showLocateResult
(CommandSourceStack p_263098_, ResourceOrTagArgument.Result<?> p_262956_, BlockPos p_262917_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_263074_, String p_262937_, boolean p_263051_, Duration p_263028_) static int
LocateCommand.showLocateResult
(CommandSourceStack p_263019_, ResourceOrTagKeyArgument.Result<?> p_263031_, BlockPos p_262989_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_262959_, String p_263045_, boolean p_262934_, Duration p_262960_) private static int
LocateCommand.showLocateResult
(CommandSourceStack p_262983_, BlockPos p_263016_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_262941_, String p_263083_, boolean p_263010_, String p_263048_, Duration p_263040_) -
Uses of Holder in net.minecraft.server.level
Methods in net.minecraft.server.level that return HolderModifier and TypeMethodDescriptionServerLevel.getUncachedNoiseBiome
(int pX, int pY, int pZ) WorldGenRegion.getUncachedNoiseBiome
(int pX, int pY, int pZ) Methods in net.minecraft.server.level that return types with arguments of type HolderModifier and TypeMethodDescriptionServerLevel.findClosestBiome3d
(Predicate<Holder<Biome>> p_215070_, BlockPos p_215071_, int p_215072_, int p_215073_, int p_215074_) Methods in net.minecraft.server.level with parameters of type HolderModifier and TypeMethodDescriptionServerLevel.explode
(Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction, ParticleOptions pSmallExplosionParticles, ParticleOptions pLargeExplosionParticles, Holder<SoundEvent> pExplosionSound) void
ServerLevel.gameEvent
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) void
WorldGenRegion.gameEvent
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) void
ServerLevel.playSeededSound
(Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) void
ServerLevel.playSeededSound
(Player pPlayer, Entity pEntity, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) Method parameters in net.minecraft.server.level with type arguments of type Holder -
Uses of Holder in net.minecraft.sounds
Fields in net.minecraft.sounds declared as HolderModifier and TypeFieldDescriptionstatic final Holder
<SoundEvent> SoundEvents.ARMOR_EQUIP_CHAIN
static final Holder
<SoundEvent> SoundEvents.ARMOR_EQUIP_DIAMOND
static final Holder
<SoundEvent> SoundEvents.ARMOR_EQUIP_ELYTRA
static final Holder
<SoundEvent> SoundEvents.ARMOR_EQUIP_GENERIC
static final Holder
<SoundEvent> SoundEvents.ARMOR_EQUIP_GOLD
static final Holder
<SoundEvent> SoundEvents.ARMOR_EQUIP_IRON
static final Holder
<SoundEvent> SoundEvents.ARMOR_EQUIP_LEATHER
static final Holder
<SoundEvent> SoundEvents.ARMOR_EQUIP_NETHERITE
static final Holder
<SoundEvent> SoundEvents.ARMOR_EQUIP_TURTLE
static final Holder
<SoundEvent> SoundEvents.ARMOR_EQUIP_WOLF
static final Holder
<SoundEvent> SoundEvents.CROSSBOW_LOADING_END
static final Holder
<SoundEvent> SoundEvents.CROSSBOW_LOADING_MIDDLE
static final Holder
<SoundEvent> SoundEvents.CROSSBOW_LOADING_START
static final Holder
<SoundEvent> SoundEvents.CROSSBOW_QUICK_CHARGE_1
static final Holder
<SoundEvent> SoundEvents.CROSSBOW_QUICK_CHARGE_2
static final Holder
<SoundEvent> SoundEvents.CROSSBOW_QUICK_CHARGE_3
private final Holder
<SoundEvent> Music.event
static final Holder
<SoundEvent> SoundEvents.LLAMA_SWAG
static final Holder
<SoundEvent> SoundEvents.TRIDENT_RIPTIDE_1
static final Holder
<SoundEvent> SoundEvents.TRIDENT_RIPTIDE_2
static final Holder
<SoundEvent> SoundEvents.TRIDENT_RIPTIDE_3
static final Holder
<SoundEvent> SoundEvents.TRIDENT_THROW
static final Holder
<SoundEvent> SoundEvents.TRIDENT_THUNDER
Fields in net.minecraft.sounds with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<SoundEvent>> SoundEvent.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<SoundEvent>> SoundEvent.STREAM_CODEC
Methods in net.minecraft.sounds that return HolderModifier and TypeMethodDescriptionMusic.getEvent()
private static Holder
<SoundEvent> SoundEvents.register
(ResourceLocation pName, ResourceLocation pLocation, float pRange) Methods in net.minecraft.sounds with parameters of type HolderConstructors in net.minecraft.sounds with parameters of type HolderModifierConstructorDescriptionMusic
(Holder<SoundEvent> p_263426_, int p_263377_, int p_263383_, boolean p_263387_) -
Uses of Holder in net.minecraft.tags
Fields in net.minecraft.tags with type parameters of type HolderModifier and TypeFieldDescriptionprivate final Map
<ResourceLocation, Collection<Holder<T>>> TagManager.LoadResult.tags
The field for thetags
record component.Methods in net.minecraft.tags that return types with arguments of type HolderModifier and TypeMethodDescriptionTagManager.LoadResult.tags()
Returns the value of thetags
record component.Method parameters in net.minecraft.tags with type arguments of type HolderModifier and TypeMethodDescriptionvoid
Constructor parameters in net.minecraft.tags with type arguments of type HolderModifierConstructorDescriptionLoadResult
(ResourceKey<? extends Registry<T>> key, Map<ResourceLocation, Collection<Holder<T>>> tags) Creates an instance of aLoadResult
record class. -
Uses of Holder in net.minecraft.util
Methods in net.minecraft.util that return HolderModifier and TypeMethodDescriptionGsonHelper.convertToItem
(com.google.gson.JsonElement p_13875_, String p_13876_) Methods in net.minecraft.util with parameters of type Holder -
Uses of Holder in net.minecraft.world.damagesource
Fields in net.minecraft.world.damagesource declared as HolderFields in net.minecraft.world.damagesource with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<DamageType>> DamageType.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<DamageType>> DamageType.STREAM_CODEC
Methods in net.minecraft.world.damagesource that return HolderConstructors in net.minecraft.world.damagesource with parameters of type HolderModifierConstructorDescriptionDamageSource
(Holder<DamageType> pType) DamageSource
(Holder<DamageType> pType, Entity pEntity) DamageSource
(Holder<DamageType> pType, Entity pDirectEntity, Entity pCausingEntity) DamageSource
(Holder<DamageType> pType, Entity pDirectEntity, Entity pCausingEntity, Vec3 pDamageSourcePosition) DamageSource
(Holder<DamageType> pType, Vec3 pDamageSourcePosition) -
Uses of Holder in net.minecraft.world.effect
Fields in net.minecraft.world.effect declared as HolderModifier and TypeFieldDescriptionMobEffects.ABSORPTION
MobEffects.BAD_OMEN
MobEffects.BLINDNESS
MobEffects.CONDUIT_POWER
MobEffects.CONFUSION
MobEffects.DAMAGE_BOOST
MobEffects.DAMAGE_RESISTANCE
MobEffects.DARKNESS
MobEffects.DIG_SLOWDOWN
MobEffects.DIG_SPEED
MobEffects.DOLPHINS_GRACE
MobEffectInstance.effect
MobEffects.FIRE_RESISTANCE
MobEffects.GLOWING
MobEffects.HARM
MobEffects.HEAL
MobEffects.HEALTH_BOOST
MobEffects.HERO_OF_THE_VILLAGE
MobEffects.HUNGER
MobEffects.INFESTED
MobEffects.INVISIBILITY
MobEffects.JUMP
MobEffects.LEVITATION
MobEffects.LUCK
MobEffects.MOVEMENT_SLOWDOWN
MobEffects.MOVEMENT_SPEED
MobEffects.NIGHT_VISION
MobEffects.OOZING
MobEffects.POISON
MobEffects.RAID_OMEN
MobEffects.REGENERATION
MobEffects.SATURATION
MobEffects.SLOW_FALLING
MobEffects.TRIAL_OMEN
MobEffects.UNLUCK
MobEffects.WATER_BREATHING
MobEffects.WEAKNESS
MobEffects.WEAVING
MobEffects.WIND_CHARGED
MobEffects.WITHER
Fields in net.minecraft.world.effect with type parameters of type HolderModifier and TypeFieldDescriptionprivate final Map
<Holder<Attribute>, MobEffect.AttributeTemplate> MobEffect.attributeModifiers
Contains a Map of the AttributeModifiers registered by potionsMobEffect.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<MobEffect>> MobEffect.STREAM_CODEC
Methods in net.minecraft.world.effect that return HolderMethods in net.minecraft.world.effect with parameters of type HolderModifier and TypeMethodDescriptionMobEffect.addAttributeModifier
(Holder<Attribute> pAttribute, ResourceLocation pId, double pAmount, AttributeModifier.Operation pOperation) MobEffect.addAttributeModifier
(Holder<Attribute> attribute, ResourceLocation id, AttributeModifier.Operation operation, it.unimi.dsi.fastutil.ints.Int2DoubleFunction curve) Neo: attribute template with custom level curve, for mob effects providing non-linear attribute modifiers.boolean
Method parameters in net.minecraft.world.effect with type arguments of type HolderModifier and TypeMethodDescriptionvoid
MobEffect.createModifiers
(int pAmplifier, BiConsumer<Holder<Attribute>, AttributeModifier> pOutput) Constructors in net.minecraft.world.effect with parameters of type HolderModifierConstructorDescriptionMobEffectInstance
(Holder<MobEffect> pEffect) MobEffectInstance
(Holder<MobEffect> pEffect, int pDuration) MobEffectInstance
(Holder<MobEffect> pEffect, int pDuration, int pAmplifier) MobEffectInstance
(Holder<MobEffect> pEffect, int pDuration, int pAmplifier, boolean pAmbient, boolean pVisible) MobEffectInstance
(Holder<MobEffect> pEffect, int pDuration, int pAmplifier, boolean pAmbient, boolean pVisible, boolean pShowIcon) MobEffectInstance
(Holder<MobEffect> pEffect, int pDuration, int pAmplifier, boolean pAmbient, boolean pVisible, boolean pShowIcon, MobEffectInstance pHiddenEffect) private
MobEffectInstance
(Holder<MobEffect> pEffect, MobEffectInstance.Details p_324529_) -
Uses of Holder in net.minecraft.world.entity
Fields in net.minecraft.world.entity with type parameters of type HolderModifier and TypeFieldDescriptionprivate final Map
<Holder<MobEffect>, MobEffectInstance> LivingEntity.activeEffects
Methods in net.minecraft.world.entity that return types with arguments of type HolderMethods in net.minecraft.world.entity with parameters of type HolderModifier and TypeMethodDescriptionvoid
void
LivingEntity.getAttribute
(Holder<Attribute> pAttribute) double
LivingEntity.getAttributeBaseValue
(Holder<Attribute> pAttribute) double
LivingEntity.getAttributeValue
(Holder<Attribute> pAttribute) boolean
private void
LivingEntity.onAttributeUpdated
(Holder<Attribute> pAttribute) boolean
LivingEntity.removeEffect
(Holder<MobEffect> pEffect) LivingEntity.removeEffectNoUpdate
(Holder<MobEffect> pEffect) -
Uses of Holder in net.minecraft.world.entity.ai.attributes
Fields in net.minecraft.world.entity.ai.attributes declared as HolderModifier and TypeFieldDescriptionAttributes.ARMOR
Handles the armor points for an entity.Attributes.ARMOR_TOUGHNESS
Handles the amount of damage mitigated by wearing armor.Attributes.ATTACK_DAMAGE
Handles the attack damage inflicted by entities.Attributes.ATTACK_KNOCKBACK
Handles additional horizontal knockback when damaging another entity.Attributes.ATTACK_SPEED
Handles the cooldown rate when attacking with an item.AttributeInstance.attribute
The Attribute this is an instance ofAttributes.BLOCK_BREAK_SPEED
Attributes.BLOCK_INTERACTION_RANGE
Attributes.BURNING_TIME
Attributes.ENTITY_INTERACTION_RANGE
Attributes.EXPLOSION_KNOCKBACK_RESISTANCE
Attributes.FALL_DAMAGE_MULTIPLIER
Attributes.FLYING_SPEED
Handles the movement speed of flying entities such as parrots and bees.Attributes.FOLLOW_RANGE
Handles the range in blocks that a mob will notice and track players and other potential targets.Attributes.GRAVITY
Attributes.JUMP_STRENGTH
Handles the jump strength for horses.Attributes.KNOCKBACK_RESISTANCE
Handles the reduction of horizontal knockback when damaged by attacks or projectiles.Attributes.LUCK
Handles luck when a player generates loot from a loot table.Attributes.MAX_ABSORPTION
Attributes.MAX_HEALTH
Handles the maximum health of an entity.Attributes.MINING_EFFICIENCY
Attributes.MOVEMENT_EFFICIENCY
Attributes.MOVEMENT_SPEED
Handles the movement speed of entities.Attributes.OXYGEN_BONUS
Attributes.SAFE_FALL_DISTANCE
Attributes.SCALE
Attributes.SNEAKING_SPEED
Attributes.SPAWN_REINFORCEMENTS_CHANCE
Handles the chance for a zombie to summon reinforcements when attacked.Attributes.STEP_HEIGHT
Attributes.SUBMERGED_MINING_SPEED
Attributes.SWEEPING_DAMAGE_RATIO
Attributes.WATER_MOVEMENT_EFFICIENCY
Fields in net.minecraft.world.entity.ai.attributes with type parameters of type HolderModifier and TypeFieldDescriptionprivate final Map
<Holder<Attribute>, AttributeInstance> AttributeMap.attributes
private final Map
<Holder<Attribute>, AttributeInstance> AttributeSupplier.Builder.builder
Attribute.CODEC
private final Map
<Holder<Attribute>, AttributeInstance> AttributeSupplier.instances
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<Attribute>> Attribute.STREAM_CODEC
Methods in net.minecraft.world.entity.ai.attributes that return HolderMethods in net.minecraft.world.entity.ai.attributes with parameters of type HolderModifier and TypeMethodDescriptionprivate AttributeInstance
AttributeSupplier.createInstance
(Consumer<AttributeInstance> pOnDirty, Holder<Attribute> pAttribute) private AttributeInstance
AttributeSupplier.getAttributeInstance
(Holder<Attribute> pAttribute) double
AttributeMap.getBaseValue
(Holder<Attribute> pAttribute) double
AttributeSupplier.getBaseValue
(Holder<Attribute> pAttribute) AttributeMap.getInstance
(Holder<Attribute> pAttribute) double
AttributeMap.getModifierValue
(Holder<Attribute> pAttribute, ResourceLocation pId) double
AttributeSupplier.getModifierValue
(Holder<Attribute> pAttribute, ResourceLocation pId) double
double
boolean
AttributeMap.hasAttribute
(Holder<Attribute> pAttribute) boolean
AttributeSupplier.Builder.hasAttribute
(Holder<Attribute> attribute) boolean
AttributeSupplier.hasAttribute
(Holder<Attribute> pAttribute) boolean
AttributeMap.hasModifier
(Holder<Attribute> pAttribute, ResourceLocation pId) boolean
AttributeSupplier.hasModifier
(Holder<Attribute> pAttribute, ResourceLocation pId) Method parameters in net.minecraft.world.entity.ai.attributes with type arguments of type HolderModifier and TypeMethodDescriptionvoid
AttributeMap.addTransientAttributeModifiers
(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_345244_) void
AttributeMap.removeAttributeModifiers
(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_344776_) Constructors in net.minecraft.world.entity.ai.attributes with parameters of type HolderModifierConstructorDescriptionAttributeInstance
(Holder<Attribute> pAttribute, Consumer<AttributeInstance> pOnDirty) Constructor parameters in net.minecraft.world.entity.ai.attributes with type arguments of type HolderModifierConstructorDescription(package private)
AttributeSupplier
(Map<Holder<Attribute>, AttributeInstance> pInstances) -
Uses of Holder in net.minecraft.world.entity.ai.behavior
Methods in net.minecraft.world.entity.ai.behavior with parameters of type HolderModifier and TypeMethodDescriptionprivate boolean
private static boolean
PoiCompetitorScan.competesForSameJobsite
(GlobalPos pJobSitePos, Holder<PoiType> pPoi, Villager pPoiType) private static boolean
PoiCompetitorScan.hasMatchingProfession
(Holder<PoiType> pPoi, VillagerProfession pPoiType) private static boolean
YieldJobSite.nearbyWantsJobsite
(Holder<PoiType> pPoi, Villager pVillager, BlockPos pPos) Method parameters in net.minecraft.world.entity.ai.behavior with type arguments of type HolderModifier and TypeMethodDescriptionstatic BehaviorControl
<PathfinderMob> AcquirePoi.create
(Predicate<Holder<PoiType>> pAcquirablePois, MemoryModuleType<GlobalPos> pAcquiringMemory, boolean pOnlyIfAdult, Optional<Byte> pEntityEventId) static BehaviorControl
<PathfinderMob> AcquirePoi.create
(Predicate<Holder<PoiType>> pAcquirablePois, MemoryModuleType<GlobalPos> pExistingAbsentMemory, MemoryModuleType<GlobalPos> pAcquiringMemory, boolean pOnlyIfAdult, Optional<Byte> pEntityEventId) static BehaviorControl
<LivingEntity> ValidateNearbyPoi.create
(Predicate<Holder<PoiType>> pPoiValidator, MemoryModuleType<GlobalPos> pPoiPosMemory) static Path
AcquirePoi.findPathToPois
(Mob pMob, Set<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>> pPoiPositions) -
Uses of Holder in net.minecraft.world.entity.ai.village.poi
Fields in net.minecraft.world.entity.ai.village.poi declared as HolderFields in net.minecraft.world.entity.ai.village.poi with type parameters of type HolderModifier and TypeFieldDescriptionPoiSection.byType
PoiType.NONE
private static final Map
<BlockState, Holder<PoiType>> PoiTypes.TYPE_BY_STATE
Methods in net.minecraft.world.entity.ai.village.poi that return HolderMethods in net.minecraft.world.entity.ai.village.poi that return types with arguments of type HolderModifier and TypeMethodDescriptionPoiManager.findAllClosestFirstWithType
(Predicate<Holder<PoiType>> pTypePredicate, Predicate<BlockPos> pPosPredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiManager.findAllWithType
(Predicate<Holder<PoiType>> pTypePredicate, Predicate<BlockPos> pPosPredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiManager.findClosestWithType
(Predicate<Holder<PoiType>> pTypePredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiTypes.forState
(BlockState pState) Methods in net.minecraft.world.entity.ai.village.poi with parameters of type HolderModifier and TypeMethodDescriptionvoid
void
private static void
PoiTypes.registerBlockStates
(Holder<PoiType> pPoi, Set<BlockState> pStates) Method parameters in net.minecraft.world.entity.ai.village.poi with type arguments of type HolderModifier and TypeMethodDescriptionboolean
boolean
PoiManager.find
(Predicate<Holder<PoiType>> pTypePredicate, Predicate<BlockPos> pPosPredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiManager.findAll
(Predicate<Holder<PoiType>> pTypePredicate, Predicate<BlockPos> pPosPredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiManager.findAllClosestFirstWithType
(Predicate<Holder<PoiType>> pTypePredicate, Predicate<BlockPos> pPosPredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiManager.findAllWithType
(Predicate<Holder<PoiType>> pTypePredicate, Predicate<BlockPos> pPosPredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiManager.findClosest
(Predicate<Holder<PoiType>> pTypePredicate, Predicate<BlockPos> pPosPredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiManager.findClosest
(Predicate<Holder<PoiType>> pTypePredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiManager.findClosestWithType
(Predicate<Holder<PoiType>> pTypePredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) long
PoiManager.getCountInRange
(Predicate<Holder<PoiType>> pTypePredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiManager.getInChunk
(Predicate<Holder<PoiType>> pTypePredicate, ChunkPos pPosChunk, PoiManager.Occupancy pStatus) PoiManager.getInRange
(Predicate<Holder<PoiType>> pTypePredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiManager.getInSquare
(Predicate<Holder<PoiType>> pTypePredicate, BlockPos pPos, int pDistance, PoiManager.Occupancy pStatus) PoiManager.getRandom
(Predicate<Holder<PoiType>> pTypePredicate, Predicate<BlockPos> pPosPredicate, PoiManager.Occupancy pStatus, BlockPos pPos, int pDistance, RandomSource pRandom) PoiSection.getRecords
(Predicate<Holder<PoiType>> pTypePredicate, PoiManager.Occupancy pStatus) void
PoiManager.take
(Predicate<Holder<PoiType>> pTypePredicate, BiPredicate<Holder<PoiType>, BlockPos> pCombinedTypePosPredicate, BlockPos pPos, int pDistance) PoiManager.take
(Predicate<Holder<PoiType>> pTypePredicate, BiPredicate<Holder<PoiType>, BlockPos> pCombinedTypePosPredicate, BlockPos pPos, int pDistance) private void
PoiManager.updateFromSection
(LevelChunkSection pSection, SectionPos pSectionPos, BiConsumer<BlockPos, Holder<PoiType>> pPosToTypeConsumer) Constructors in net.minecraft.world.entity.ai.village.poi with parameters of type Holder -
Uses of Holder in net.minecraft.world.entity.animal
Fields in net.minecraft.world.entity.animal declared as HolderFields in net.minecraft.world.entity.animal with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<WolfVariant>> WolfVariant.CODEC
private static final EntityDataAccessor
<Holder<CatVariant>> Cat.DATA_VARIANT_ID
private static final EntityDataAccessor
<Holder<WolfVariant>> Wolf.DATA_VARIANT_ID
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<CatVariant>> CatVariant.STREAM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<FrogVariant>> FrogVariant.STREAM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<WolfVariant>> WolfVariant.STREAM_CODEC
Methods in net.minecraft.world.entity.animal that return HolderModifier and TypeMethodDescriptionstatic Holder
<WolfVariant> WolfVariants.getSpawnVariant
(RegistryAccess pRegistryAccess, Holder<Biome> pBiome) Cat.getVariant()
Wolf.getVariant()
Methods in net.minecraft.world.entity.animal with parameters of type HolderModifier and TypeMethodDescriptionstatic Fox.Type
static Holder
<WolfVariant> WolfVariants.getSpawnVariant
(RegistryAccess pRegistryAccess, Holder<Biome> pBiome) void
Cat.setVariant
(Holder<CatVariant> p_335581_) void
Wolf.setVariant
(Holder<WolfVariant> p_332777_) Constructors in net.minecraft.world.entity.animal with parameters of type Holder -
Uses of Holder in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay with parameters of type HolderModifier and TypeMethodDescriptionboolean
Allay.VibrationUser.canReceiveVibration
(ServerLevel p_282038_, BlockPos p_283385_, Holder<GameEvent> p_316820_, GameEvent.Context p_282208_) boolean
Allay.JukeboxListener.handleGameEvent
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) void
Allay.VibrationUser.onReceiveVibration
(ServerLevel p_281422_, BlockPos p_281449_, Holder<GameEvent> p_316630_, Entity p_281794_, Entity p_281864_, float p_281642_) -
Uses of Holder in net.minecraft.world.entity.animal.frog
Fields in net.minecraft.world.entity.animal.frog with type parameters of type HolderModifier and TypeFieldDescriptionprivate static final EntityDataAccessor
<Holder<FrogVariant>> Frog.DATA_VARIANT_ID
Methods in net.minecraft.world.entity.animal.frog that return HolderMethods in net.minecraft.world.entity.animal.frog with parameters of type Holder -
Uses of Holder in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type HolderModifier and TypeMethodDescriptionprivate void
AbstractHorse.setOffspringAttribute
(AgeableMob pParent, AbstractHorse pChild, Holder<Attribute> pAttribute, double pMin, double pMax) -
Uses of Holder in net.minecraft.world.entity.decoration
Fields in net.minecraft.world.entity.decoration with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<PaintingVariant>> PaintingVariant.CODEC
private static final EntityDataAccessor
<Holder<PaintingVariant>> Painting.DATA_PAINTING_VARIANT_ID
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<PaintingVariant>> PaintingVariant.STREAM_CODEC
static final com.mojang.serialization.Codec
<Holder<PaintingVariant>> Painting.VARIANT_CODEC
static final com.mojang.serialization.MapCodec
<Holder<PaintingVariant>> Painting.VARIANT_MAP_CODEC
Methods in net.minecraft.world.entity.decoration that return HolderMethods in net.minecraft.world.entity.decoration with parameters of type HolderModifier and TypeMethodDescriptionvoid
Painting.setVariant
(Holder<PaintingVariant> p_218892_) private static int
Painting.variantArea
(Holder<PaintingVariant> p_218899_) Constructors in net.minecraft.world.entity.decoration with parameters of type Holder -
Uses of Holder in net.minecraft.world.entity.monster
Fields in net.minecraft.world.entity.monster declared as Holder -
Uses of Holder in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type HolderModifier and TypeMethodDescriptionboolean
Warden.VibrationUser.canReceiveVibration
(ServerLevel p_282574_, BlockPos p_282323_, Holder<GameEvent> p_316784_, GameEvent.Context p_282515_) void
Warden.VibrationUser.onReceiveVibration
(ServerLevel p_281325_, BlockPos p_282386_, Holder<GameEvent> p_316139_, Entity p_281438_, Entity p_282582_, float p_283699_) -
Uses of Holder in net.minecraft.world.entity.npc
Fields in net.minecraft.world.entity.npc declared as HolderModifier and TypeFieldDescriptionprivate final Holder
<MapDecorationType> VillagerTrades.TreasureMapForEmeralds.destinationType
Fields in net.minecraft.world.entity.npc with type parameters of type HolderModifier and TypeFieldDescriptionVillagerProfession.acquirableJobSite
The field for theacquirableJobSite
record component.VillagerProfession.ALL_ACQUIRABLE_JOBS
VillagerProfession.heldJobSite
The field for theheldJobSite
record component.static final Map
<MemoryModuleType<GlobalPos>, BiPredicate<Villager, Holder<PoiType>>> Villager.POI_MEMORIES
Methods in net.minecraft.world.entity.npc that return types with arguments of type HolderModifier and TypeMethodDescriptionVillagerProfession.acquirableJobSite()
Returns the value of theacquirableJobSite
record component.VillagerProfession.heldJobSite()
Returns the value of theheldJobSite
record component.Methods in net.minecraft.world.entity.npc with parameters of type HolderModifier and TypeMethodDescriptionstatic VillagerType
private static ItemStack
private static ItemCost
VillagerTrades.potionCost
(Holder<Potion> pPotion) Method parameters in net.minecraft.world.entity.npc with type arguments of type HolderModifier and TypeMethodDescriptionprivate static VillagerProfession
VillagerProfession.register
(String p_219659_, Predicate<Holder<PoiType>> p_219660_, Predicate<Holder<PoiType>> p_219661_, com.google.common.collect.ImmutableSet<Item> p_219662_, com.google.common.collect.ImmutableSet<Block> p_219663_, SoundEvent p_219664_) private static VillagerProfession
VillagerProfession.register
(String pName, Predicate<Holder<PoiType>> pHeldJobSite, Predicate<Holder<PoiType>> pAcquirableJobSites, SoundEvent pWorkSound) Constructors in net.minecraft.world.entity.npc with parameters of type HolderModifierConstructorDescriptionSuspiciousStewForEmerald
(Holder<MobEffect> pEffect, int pDuration, int pXp) TreasureMapForEmeralds
(int pEmeraldCost, TagKey<Structure> pDestination, String pDisplayName, Holder<MapDecorationType> pDestinationType, int pMaxUses, int pVillagerXp) Constructor parameters in net.minecraft.world.entity.npc with type arguments of type HolderModifierConstructorDescriptionVillagerProfession
(String name, Predicate<Holder<PoiType>> heldJobSite, Predicate<Holder<PoiType>> acquirableJobSite, com.google.common.collect.ImmutableSet<Item> requestedItems, com.google.common.collect.ImmutableSet<Block> secondaryPoi, SoundEvent workSound) Creates an instance of aVillagerProfession
record class. -
Uses of Holder in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid with parameters of type HolderModifier and TypeMethodDescriptionstatic String
Raids.getFileId
(Holder<DimensionType> pDimensionTypeHolder) -
Uses of Holder in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory with type parameters of type HolderMethods in net.minecraft.world.inventory that return HolderModifier and TypeMethodDescriptionBeaconMenu.decodeEffect
(int pEffectId) BeaconMenu.getPrimaryEffect()
BeaconMenu.getSecondaryEffect()
Methods in net.minecraft.world.inventory that return types with arguments of type HolderModifier and TypeMethodDescriptionLoomMenu.getSelectablePatterns()
private List
<Holder<BannerPattern>> LoomMenu.getSelectablePatterns
(ItemStack pStack) Methods in net.minecraft.world.inventory with parameters of type HolderModifier and TypeMethodDescriptionstatic int
BeaconMenu.encodeEffect
(Holder<MobEffect> pEffect) private void
LoomMenu.setupResultSlot
(Holder<BannerPattern> pPattern) Creates an output banner ItemStack based on the patterns, dyes, etc. in the loom.Method parameters in net.minecraft.world.inventory with type arguments of type Holder -
Uses of Holder in net.minecraft.world.item
Fields in net.minecraft.world.item declared as HolderModifier and TypeFieldDescriptionstatic final Holder
<ArmorMaterial> ArmorMaterials.ARMADILLO
static final Holder
<ArmorMaterial> ArmorMaterials.CHAIN
static final Holder
<ArmorMaterial> ArmorMaterials.DIAMOND
private final Holder
<SoundEvent> ArmorMaterial.equipSound
The field for theequipSound
record component.static final Holder
<ArmorMaterial> ArmorMaterials.GOLD
static final Holder
<ArmorMaterial> ArmorMaterials.IRON
static final Holder
<ArmorMaterial> ArmorMaterials.LEATHER
protected final Holder
<ArmorMaterial> ArmorItem.material
static final Holder
<ArmorMaterial> ArmorMaterials.NETHERITE
private Holder
<JukeboxSong> JukeboxSongPlayer.song
private final Holder
<SoundEvent> Instrument.soundEvent
The field for thesoundEvent
record component.private final Holder
<SoundEvent> JukeboxSong.soundEvent
The field for thesoundEvent
record component.static final Holder
<ArmorMaterial> ArmorMaterials.TURTLE
Fields in net.minecraft.world.item with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<ArmorMaterial>> ArmorMaterial.CODEC
static final com.mojang.serialization.Codec
<Holder<Instrument>> Instrument.CODEC
static final com.mojang.serialization.Codec
<Holder<JukeboxSong>> JukeboxSong.CODEC
private final Optional
<Holder<SoundEvent>> CrossbowItem.ChargingSounds.end
The field for theend
record component.EitherHolder.holder
The field for theholder
record component.ItemStack.ITEM_NON_AIR_CODEC
private final Optional
<Holder<SoundEvent>> CrossbowItem.ChargingSounds.mid
The field for themid
record component.private static final Comparator
<Holder<PaintingVariant>> CreativeModeTabs.PAINTING_COMPARATOR
private final Optional
<Holder<SoundEvent>> CrossbowItem.ChargingSounds.start
The field for thestart
record component.static final StreamCodec
<RegistryFriendlyByteBuf, Holder<Instrument>> Instrument.STREAM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<JukeboxSong>> JukeboxSong.STREAM_CODEC
Methods in net.minecraft.world.item that return HolderModifier and TypeMethodDescriptionstatic Holder
<ArmorMaterial> ArmorMaterials.bootstrap
(Registry<ArmorMaterial> pRegistry) ArmorMaterial.equipSound()
Returns the value of theequipSound
record component.ArmorItem.getEquipSound()
ElytraItem.getEquipSound()
default Holder
<SoundEvent> Equipable.getEquipSound()
ItemStack.getItemHolder()
ArmorItem.getMaterial()
private static Holder
<ArmorMaterial> ArmorMaterials.register
(String pName, EnumMap<ArmorItem.Type, Integer> pDefense, int pEnchantmentValue, Holder<SoundEvent> pEquipSound, float pToughness, float pKnockbackResistance, Supplier<Ingredient> pRepairIngredient) private static Holder
<ArmorMaterial> ArmorMaterials.register
(String pName, EnumMap<ArmorItem.Type, Integer> pDefense, int pEnchantmentValue, Holder<SoundEvent> pEquipSound, float pToughness, float pKnockbackResistance, Supplier<Ingredient> pRepairIngridient, List<ArmorMaterial.Layer> pLayers) Instrument.soundEvent()
Returns the value of thesoundEvent
record component.JukeboxSong.soundEvent()
Returns the value of thesoundEvent
record component.Methods in net.minecraft.world.item that return types with arguments of type HolderModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either
<Holder<T>, ResourceKey<T>> EitherHolder.asEither()
CrossbowItem.ChargingSounds.end()
Returns the value of theend
record component.static Optional
<Holder<JukeboxSong>> JukeboxSong.fromStack
(HolderLookup.Provider pRegistries, ItemStack pStack) private Optional
<Holder<Instrument>> InstrumentItem.getInstrument
(ItemStack pStack) EitherHolder.holder()
Returns the value of theholder
record component.CrossbowItem.ChargingSounds.mid()
Returns the value of themid
record component.CrossbowItem.ChargingSounds.start()
Returns the value of thestart
record component.EitherHolder.unwrap
(HolderLookup.Provider pRegistries) Methods in net.minecraft.world.item with parameters of type HolderModifier and TypeMethodDescriptionprivate void
ItemStack.addModifierTooltip
(Consumer<Component> pTooltipAdder, Player pPlayer, Holder<Attribute> pAttribute, AttributeModifier pModifier) static ItemStack
InstrumentItem.create
(Item pItem, Holder<Instrument> pInstrument) void
ItemStack.enchant
(Holder<Enchantment> pEnchantment, int pLevel) boolean
void
JukeboxSongPlayer.play
(LevelAccessor pLevel, Holder<JukeboxSong> pSong) private static Holder
<ArmorMaterial> ArmorMaterials.register
(String pName, EnumMap<ArmorItem.Type, Integer> pDefense, int pEnchantmentValue, Holder<SoundEvent> pEquipSound, float pToughness, float pKnockbackResistance, Supplier<Ingredient> pRepairIngredient) private static Holder
<ArmorMaterial> ArmorMaterials.register
(String pName, EnumMap<ArmorItem.Type, Integer> pDefense, int pEnchantmentValue, Holder<SoundEvent> pEquipSound, float pToughness, float pKnockbackResistance, Supplier<Ingredient> pRepairIngridient, List<ArmorMaterial.Layer> pLayers) void
JukeboxSongPlayer.setSongWithoutPlaying
(Holder<JukeboxSong> pSong, long pTicksSinceSongStarted) Method parameters in net.minecraft.world.item with type arguments of type HolderModifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec
<EitherHolder<T>> EitherHolder.codec
(ResourceKey<Registry<T>> p_350627_, com.mojang.serialization.Codec<Holder<T>> p_350442_) void
ItemStack.forEachModifier
(EquipmentSlotGroup pSlotGroup, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) void
ItemStack.forEachModifier
(EquipmentSlot pEquipmentSLot, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) static <T> EitherHolder
<T> EitherHolder.fromEither
(com.mojang.datafixers.util.Either<Holder<T>, ResourceKey<T>> p_350717_) private static void
CreativeModeTabs.generatePresetPaintings
(CreativeModeTab.Output pOutput, HolderLookup.Provider pRegistries, HolderLookup.RegistryLookup<PaintingVariant> pPaintingVariants, Predicate<Holder<PaintingVariant>> pPredicate, CreativeModeTab.TabVisibility pTabVisibility) boolean
static <T> StreamCodec
<RegistryFriendlyByteBuf, EitherHolder<T>> EitherHolder.streamCodec
(ResourceKey<Registry<T>> pRegistryKey, StreamCodec<RegistryFriendlyByteBuf, Holder<T>> pStreamCodec) Constructors in net.minecraft.world.item with parameters of type HolderModifierConstructorDescriptionAnimalArmorItem
(Holder<ArmorMaterial> pArmorMaterial, AnimalArmorItem.BodyType pBodyType, boolean pHasOverlay, Item.Properties pProperties) ArmorItem
(Holder<ArmorMaterial> pMaterial, ArmorItem.Type pType, Item.Properties pProperties) ArmorMaterial
(Map<ArmorItem.Type, Integer> defense, int enchantmentValue, Holder<SoundEvent> equipSound, Supplier<Ingredient> repairIngredient, List<ArmorMaterial.Layer> layers, float toughness, float knockbackResistance) Creates an instance of aArmorMaterial
record class.EitherHolder
(Holder<T> p_350710_) Instrument
(Holder<SoundEvent> soundEvent, int useDuration, float range) Creates an instance of aInstrument
record class.ItemStack
(Holder<Item> pItem, int pCount, DataComponentPatch p_330362_) JukeboxSong
(Holder<SoundEvent> soundEvent, Component description, float lengthInSeconds, int comparatorOutput) Creates an instance of aJukeboxSong
record class.Constructor parameters in net.minecraft.world.item with type arguments of type HolderModifierConstructorDescriptionChargingSounds
(Optional<Holder<SoundEvent>> start, Optional<Holder<SoundEvent>> mid, Optional<Holder<SoundEvent>> end) Creates an instance of aChargingSounds
record class.EitherHolder
(Optional<Holder<T>> holder, ResourceKey<T> key) Creates an instance of aEitherHolder
record class. -
Uses of Holder in net.minecraft.world.item.alchemy
Fields in net.minecraft.world.item.alchemy declared as HolderModifier and TypeFieldDescriptionPotions.AWKWARD
Potions.FIRE_RESISTANCE
PotionBrewing.Mix.from
The field for thefrom
record component.Potions.HARMING
Potions.HEALING
Potions.INFESTED
Potions.INVISIBILITY
Potions.LEAPING
Potions.LONG_FIRE_RESISTANCE
Potions.LONG_INVISIBILITY
Potions.LONG_LEAPING
Potions.LONG_NIGHT_VISION
Potions.LONG_POISON
Potions.LONG_REGENERATION
Potions.LONG_SLOW_FALLING
Potions.LONG_SLOWNESS
Potions.LONG_STRENGTH
Potions.LONG_SWIFTNESS
Potions.LONG_TURTLE_MASTER
Potions.LONG_WATER_BREATHING
Potions.LONG_WEAKNESS
Potions.LUCK
Potions.MUNDANE
Potions.NIGHT_VISION
Potions.OOZING
Potions.POISON
Potions.REGENERATION
Potions.SLOW_FALLING
Potions.SLOWNESS
Potions.STRENGTH
Potions.STRONG_HARMING
Potions.STRONG_HEALING
Potions.STRONG_LEAPING
Potions.STRONG_POISON
Potions.STRONG_REGENERATION
Potions.STRONG_SLOWNESS
Potions.STRONG_STRENGTH
Potions.STRONG_SWIFTNESS
Potions.STRONG_TURTLE_MASTER
Potions.SWIFTNESS
Potions.THICK
PotionBrewing.Mix.to
The field for theto
record component.Potions.TURTLE_MASTER
Potions.WATER
Potions.WATER_BREATHING
Potions.WEAKNESS
Potions.WEAVING
Potions.WIND_CHARGED
Fields in net.minecraft.world.item.alchemy with type parameters of type HolderModifier and TypeFieldDescriptionPotion.CODEC
PotionContents.potion
The field for thepotion
record component.static final StreamCodec
<RegistryFriendlyByteBuf, Holder<Potion>> Potion.STREAM_CODEC
Methods in net.minecraft.world.item.alchemy that return HolderModifier and TypeMethodDescriptionPotionBrewing.Mix.from()
Returns the value of thefrom
record component.PotionBrewing.Mix.to()
Returns the value of theto
record component.Methods in net.minecraft.world.item.alchemy that return types with arguments of type HolderModifier and TypeMethodDescriptionPotionContents.potion()
Returns the value of thepotion
record component.Methods in net.minecraft.world.item.alchemy with parameters of type HolderModifier and TypeMethodDescriptionvoid
void
PotionBrewing.Builder.addStartMix
(Item pReagent, Holder<Potion> pResult) static ItemStack
PotionContents.createItemStack
(Item pItem, Holder<Potion> pPotion) static int
boolean
boolean
PotionBrewing.isBrewablePotion
(Holder<Potion> pPotion) PotionContents.withPotion
(Holder<Potion> pPotion) Method parameters in net.minecraft.world.item.alchemy with type arguments of type HolderConstructors in net.minecraft.world.item.alchemy with parameters of type HolderModifierConstructorDescription(package private)
Creates an instance of aMix
record class.PotionContents
(Holder<Potion> p_331208_) Constructor parameters in net.minecraft.world.item.alchemy with type arguments of type HolderModifierConstructorDescriptionPotionContents
(Optional<Holder<Potion>> potion, Optional<Integer> customColor, List<MobEffectInstance> customEffects) Creates an instance of aPotionContents
record class. -
Uses of Holder in net.minecraft.world.item.armortrim
Fields in net.minecraft.world.item.armortrim declared as HolderModifier and TypeFieldDescriptionTrimMaterial.ingredient
The field for theingredient
record component.private final Holder
<TrimMaterial> ArmorTrim.material
private final Holder
<TrimPattern> ArmorTrim.pattern
TrimPattern.templateItem
The field for thetemplateItem
record component.Fields in net.minecraft.world.item.armortrim with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<TrimMaterial>> TrimMaterial.CODEC
static final com.mojang.serialization.Codec
<Holder<TrimPattern>> TrimPattern.CODEC
private final Function
<Holder<ArmorMaterial>, ResourceLocation> ArmorTrim.innerTexture
private final Function
<Holder<ArmorMaterial>, ResourceLocation> ArmorTrim.outerTexture
private final Map
<Holder<ArmorMaterial>, String> TrimMaterial.overrideArmorMaterials
The field for theoverrideArmorMaterials
record component.static final StreamCodec
<RegistryFriendlyByteBuf, Holder<TrimMaterial>> TrimMaterial.STREAM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<TrimPattern>> TrimPattern.STREAM_CODEC
Methods in net.minecraft.world.item.armortrim that return HolderModifier and TypeMethodDescriptionTrimMaterial.ingredient()
Returns the value of theingredient
record component.ArmorTrim.material()
ArmorTrim.pattern()
TrimPattern.templateItem()
Returns the value of thetemplateItem
record component.Methods in net.minecraft.world.item.armortrim that return types with arguments of type HolderModifier and TypeMethodDescriptionTrimMaterial.overrideArmorMaterials()
Returns the value of theoverrideArmorMaterials
record component.Methods in net.minecraft.world.item.armortrim with parameters of type HolderModifier and TypeMethodDescriptionTrimPattern.copyWithStyle
(Holder<TrimMaterial> pTrimMaterial) private static String
ArmorTrim.getColorPaletteSuffix
(Holder<TrimMaterial> pTrimMaterial, Holder<ArmorMaterial> pArmorMaterial) boolean
ArmorTrim.hasPatternAndMaterial
(Holder<TrimPattern> pPattern, Holder<TrimMaterial> pMaterial) ArmorTrim.innerTexture
(Holder<ArmorMaterial> pArmorMaterial) ArmorTrim.outerTexture
(Holder<ArmorMaterial> pArmorMaterial) Method parameters in net.minecraft.world.item.armortrim with type arguments of type HolderModifier and TypeMethodDescriptionstatic TrimMaterial
TrimMaterial.create
(String pAssetName, Item pIngredient, float pItemModelIndex, Component pDescription, Map<Holder<ArmorMaterial>, String> pOverrideArmorMaterials) private static void
TrimMaterials.register
(BootstrapContext<TrimMaterial> pContext, ResourceKey<TrimMaterial> pMaterialKey, Item pIngredient, Style pStyle, float pItemModelIndex, Map<Holder<ArmorMaterial>, String> pOverrideArmorMaterials) Constructors in net.minecraft.world.item.armortrim with parameters of type HolderModifierConstructorDescriptionArmorTrim
(Holder<TrimMaterial> pMaterial, Holder<TrimPattern> pPattern) ArmorTrim
(Holder<TrimMaterial> pMaterial, Holder<TrimPattern> pPattern, boolean p_331871_) private
ArmorTrim
(Holder<TrimMaterial> pMaterial, Holder<TrimPattern> pPattern, boolean pShowInTooltip, Function<Holder<ArmorMaterial>, ResourceLocation> pInnerTexture, Function<Holder<ArmorMaterial>, ResourceLocation> pOuterTexture) TrimMaterial
(String assetName, Holder<Item> ingredient, float itemModelIndex, Map<Holder<ArmorMaterial>, String> overrideArmorMaterials, Component description) Creates an instance of aTrimMaterial
record class.TrimPattern
(ResourceLocation assetId, Holder<Item> templateItem, Component description, boolean decal) Creates an instance of aTrimPattern
record class.Constructor parameters in net.minecraft.world.item.armortrim with type arguments of type HolderModifierConstructorDescriptionprivate
ArmorTrim
(Holder<TrimMaterial> pMaterial, Holder<TrimPattern> pPattern, boolean pShowInTooltip, Function<Holder<ArmorMaterial>, ResourceLocation> pInnerTexture, Function<Holder<ArmorMaterial>, ResourceLocation> pOuterTexture) TrimMaterial
(String assetName, Holder<Item> ingredient, float itemModelIndex, Map<Holder<ArmorMaterial>, String> overrideArmorMaterials, Component description) Creates an instance of aTrimMaterial
record class. -
Uses of Holder in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as HolderModifier and TypeFieldDescriptionItemAttributeModifiers.Entry.attribute
The field for theattribute
record component.SuspiciousStewEffects.Entry.effect
The field for theeffect
record component.private final Holder
<MapDecorationType> MapDecorations.Entry.type
The field for thetype
record component.Fields in net.minecraft.world.item.component with type parameters of type HolderModifier and TypeFieldDescriptionDebugStickState.properties
The field for theproperties
record component.Methods in net.minecraft.world.item.component that return HolderModifier and TypeMethodDescriptionItemAttributeModifiers.Entry.attribute()
Returns the value of theattribute
record component.SuspiciousStewEffects.Entry.effect()
Returns the value of theeffect
record component.MapDecorations.Entry.type()
Returns the value of thetype
record component.Methods in net.minecraft.world.item.component that return types with arguments of type HolderModifier and TypeMethodDescriptionDebugStickState.properties()
Returns the value of theproperties
record component.Methods in net.minecraft.world.item.component with parameters of type HolderModifier and TypeMethodDescriptionItemAttributeModifiers.Builder.add
(Holder<Attribute> pAttribute, AttributeModifier pModifier, EquipmentSlotGroup pSlot) boolean
ItemAttributeModifiers.Entry.matches
(Holder<Attribute> pAttribute, ResourceLocation pId) ItemAttributeModifiers.withModifierAdded
(Holder<Attribute> pAttribute, AttributeModifier pModifier, EquipmentSlotGroup pSlot) DebugStickState.withProperty
(Holder<Block> pBlock, Property<?> pProperty) Method parameters in net.minecraft.world.item.component with type arguments of type HolderModifier and TypeMethodDescriptionvoid
ItemAttributeModifiers.forEach
(EquipmentSlotGroup pSlotGroup, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) void
ItemAttributeModifiers.forEach
(EquipmentSlot pEquipmentSlot, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) Constructors in net.minecraft.world.item.component with parameters of type HolderModifierConstructorDescriptionEntry
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Creates an instance of aEntry
record class.Entry
(Holder<MapDecorationType> type, double x, double z, float rotation) Creates an instance of aEntry
record class.Creates an instance of aEntry
record class.Constructor parameters in net.minecraft.world.item.component with type arguments of type HolderModifierConstructorDescriptionDebugStickState
(Map<Holder<Block>, Property<?>> properties) Creates an instance of aDebugStickState
record class. -
Uses of Holder in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as HolderModifier and TypeFieldDescriptionfinal Holder
<Enchantment> EnchantmentInstance.enchantment
The enchantment being represented.Fields in net.minecraft.world.item.enchantment with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<Enchantment>> Enchantment.CODEC
(package private) final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap
<Holder<Enchantment>> ItemEnchantments.enchantments
private final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap
<Holder<Enchantment>> ItemEnchantments.Mutable.enchantments
private static final com.mojang.serialization.Codec
<it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<Holder<Enchantment>>> ItemEnchantments.LEVELS_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<Enchantment>> Enchantment.STREAM_CODEC
static final DataComponentType
<List<Holder<SoundEvent>>> EnchantmentEffectComponents.TRIDENT_SOUND
Methods in net.minecraft.world.item.enchantment that return types with arguments of type HolderModifier and TypeMethodDescriptionSet
<it.unimi.dsi.fastutil.objects.Object2IntMap.Entry<Holder<Enchantment>>> ItemEnchantments.entrySet()
ItemEnchantments.keySet()
ItemEnchantments.Mutable.keySet()
Methods in net.minecraft.world.item.enchantment with parameters of type HolderModifier and TypeMethodDescriptionvoid
EnchantmentHelper.EnchantmentInSlotVisitor.accept
(Holder<Enchantment> pEnchantment, int pLevel, EnchantedItemInUse pItem) void
EnchantmentHelper.EnchantmentVisitor.accept
(Holder<Enchantment> pEnchantment, int pLevel) static boolean
Enchantment.areCompatible
(Holder<Enchantment> pFirst, Holder<Enchantment> pSecond) static int
EnchantmentHelper.getEnchantmentLevel
(Holder<Enchantment> pEnchantment, LivingEntity pEntity) static Component
Enchantment.getFullname
(Holder<Enchantment> pEnchantment, int pLevel) static int
EnchantmentHelper.getItemEnchantmentLevel
(Holder<Enchantment> pEnchantment, ItemStack pStack) Deprecated.int
ItemEnchantments.getLevel
(Holder<Enchantment> pEnchantment) int
ItemEnchantments.Mutable.getLevel
(Holder<Enchantment> pEnchantment) static int
EnchantmentHelper.getTagEnchantmentLevel
(Holder<Enchantment> p_346179_, ItemStack p_44845_) Gets the level of an enchantment from NBT.static boolean
EnchantmentHelper.isEnchantmentCompatible
(Collection<Holder<Enchantment>> pCurrentEnchantments, Holder<Enchantment> pNewEnchantment) void
ItemEnchantments.Mutable.set
(Holder<Enchantment> pEnchantment, int pLevel) void
ItemEnchantments.Mutable.upgrade
(Holder<Enchantment> pEnchantment, int pLevel) Method parameters in net.minecraft.world.item.enchantment with type arguments of type HolderModifier and TypeMethodDescriptionstatic ItemStack
EnchantmentHelper.enchantItem
(RandomSource pRandom, ItemStack pStack, int pLevel, Stream<Holder<Enchantment>> pPossibleEnchantments) static void
EnchantmentHelper.forEachModifier
(ItemStack pStack, EquipmentSlotGroup pSlotGroup, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) static void
EnchantmentHelper.forEachModifier
(ItemStack pStack, EquipmentSlot pSlot, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) static List
<EnchantmentInstance> EnchantmentHelper.getAvailableEnchantmentResults
(int pLevel, ItemStack pStack, Stream<Holder<Enchantment>> pPossibleEnchantments) static boolean
EnchantmentHelper.isEnchantmentCompatible
(Collection<Holder<Enchantment>> pCurrentEnchantments, Holder<Enchantment> pNewEnchantment) void
ItemEnchantments.Mutable.removeIf
(Predicate<Holder<Enchantment>> pPredicate) static List
<EnchantmentInstance> EnchantmentHelper.selectEnchantment
(RandomSource pRandom, ItemStack pStack, int pLevel, Stream<Holder<Enchantment>> pPossibleEnchantments) Constructors in net.minecraft.world.item.enchantment with parameters of type HolderConstructor parameters in net.minecraft.world.item.enchantment with type arguments of type HolderModifierConstructorDescription(package private)
ItemEnchantments
(it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<Holder<Enchantment>> p_341287_, boolean p_330219_) -
Uses of Holder in net.minecraft.world.item.enchantment.effects
Fields in net.minecraft.world.item.enchantment.effects declared as HolderModifier and TypeFieldDescriptionEnchantmentAttributeEffect.attribute
The field for theattribute
record component.private final Holder
<DamageType> DamageEntity.damageType
The field for thedamageType
record component.private final Holder
<SoundEvent> ExplodeEffect.sound
The field for thesound
record component.private final Holder
<SoundEvent> PlaySoundEffect.soundEvent
The field for thesoundEvent
record component.Fields in net.minecraft.world.item.enchantment.effects with type parameters of type HolderModifier and TypeFieldDescriptionprivate final Optional
<Holder<DamageType>> ExplodeEffect.damageType
The field for thedamageType
record component.ReplaceBlock.triggerGameEvent
The field for thetriggerGameEvent
record component.ReplaceDisk.triggerGameEvent
The field for thetriggerGameEvent
record component.SetBlockProperties.triggerGameEvent
The field for thetriggerGameEvent
record component.Methods in net.minecraft.world.item.enchantment.effects that return HolderModifier and TypeMethodDescriptionEnchantmentAttributeEffect.attribute()
Returns the value of theattribute
record component.DamageEntity.damageType()
Returns the value of thedamageType
record component.ExplodeEffect.sound()
Returns the value of thesound
record component.PlaySoundEffect.soundEvent()
Returns the value of thesoundEvent
record component.Methods in net.minecraft.world.item.enchantment.effects that return types with arguments of type HolderModifier and TypeMethodDescriptionExplodeEffect.damageType()
Returns the value of thedamageType
record component.private com.google.common.collect.HashMultimap
<Holder<Attribute>, AttributeModifier> EnchantmentAttributeEffect.makeAttributeMap
(int p_346033_, EquipmentSlot p_350290_) ReplaceBlock.triggerGameEvent()
Returns the value of thetriggerGameEvent
record component.ReplaceDisk.triggerGameEvent()
Returns the value of thetriggerGameEvent
record component.SetBlockProperties.triggerGameEvent()
Returns the value of thetriggerGameEvent
record component.Constructors in net.minecraft.world.item.enchantment.effects with parameters of type HolderModifierConstructorDescriptionDamageEntity
(LevelBasedValue minDamage, LevelBasedValue maxDamage, Holder<DamageType> damageType) Creates an instance of aDamageEntity
record class.EnchantmentAttributeEffect
(ResourceLocation id, Holder<Attribute> attribute, LevelBasedValue amount, AttributeModifier.Operation operation) Creates an instance of aEnchantmentAttributeEffect
record class.ExplodeEffect
(boolean attributeToUser, Optional<Holder<DamageType>> damageType, Optional<LevelBasedValue> knockbackMultiplier, Optional<HolderSet<Block>> immuneBlocks, Vec3 offset, LevelBasedValue radius, boolean createFire, Level.ExplosionInteraction blockInteraction, ParticleOptions smallParticle, ParticleOptions largeParticle, Holder<SoundEvent> sound) Creates an instance of aExplodeEffect
record class.PlaySoundEffect
(Holder<SoundEvent> soundEvent, FloatProvider volume, FloatProvider pitch) Creates an instance of aPlaySoundEffect
record class.Constructor parameters in net.minecraft.world.item.enchantment.effects with type arguments of type HolderModifierConstructorDescriptionExplodeEffect
(boolean attributeToUser, Optional<Holder<DamageType>> damageType, Optional<LevelBasedValue> knockbackMultiplier, Optional<HolderSet<Block>> immuneBlocks, Vec3 offset, LevelBasedValue radius, boolean createFire, Level.ExplosionInteraction blockInteraction, ParticleOptions smallParticle, ParticleOptions largeParticle, Holder<SoundEvent> sound) Creates an instance of aExplodeEffect
record class.SetBlockProperties
(BlockItemStateProperties properties, Vec3i offset, Optional<Holder<GameEvent>> triggerGameEvent) Creates an instance of aSetBlockProperties
record class. -
Uses of Holder in net.minecraft.world.item.enchantment.providers
Fields in net.minecraft.world.item.enchantment.providers declared as HolderModifier and TypeFieldDescriptionprivate final Holder
<Enchantment> SingleEnchantment.enchantment
The field for theenchantment
record component.Methods in net.minecraft.world.item.enchantment.providers that return HolderModifier and TypeMethodDescriptionSingleEnchantment.enchantment()
Returns the value of theenchantment
record component.Constructors in net.minecraft.world.item.enchantment.providers with parameters of type HolderModifierConstructorDescriptionSingleEnchantment
(Holder<Enchantment> enchantment, IntProvider level) Creates an instance of aSingleEnchantment
record class. -
Uses of Holder in net.minecraft.world.item.trading
Fields in net.minecraft.world.item.trading declared as HolderMethods in net.minecraft.world.item.trading that return HolderModifier and TypeMethodDescriptionItemCost.item()
Returns the value of theitem
record component.Methods in net.minecraft.world.item.trading with parameters of type HolderModifier and TypeMethodDescriptionprivate static ItemStack
ItemCost.createStack
(Holder<Item> pItem, int pCount, DataComponentPredicate pComponentPredicate) Constructors in net.minecraft.world.item.trading with parameters of type HolderModifierConstructorDescriptionItemCost
(Holder<Item> p_330702_, int p_331182_, DataComponentPredicate p_331873_) ItemCost
(Holder<Item> item, int count, DataComponentPredicate components, ItemStack itemStack) Creates an instance of aItemCost
record class. -
Uses of Holder in net.minecraft.world.level
Fields in net.minecraft.world.level declared as HolderModifier and TypeFieldDescriptionprivate final Holder
<DimensionType> private final Holder
<SoundEvent> Explosion.explosionSound
Fields in net.minecraft.world.level with type parameters of type HolderMethods in net.minecraft.world.level that return HolderModifier and TypeMethodDescriptionLevel.dimensionTypeRegistration()
Explosion.getExplosionSound()
LevelReader.getNoiseBiome
(int pX, int pY, int pZ) Gets the biome at the given quart positions.LevelReader.getUncachedNoiseBiome
(int pX, int pY, int pZ) Methods in net.minecraft.world.level with parameters of type HolderModifier and TypeMethodDescriptionLevel.explode
(Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction, boolean pSpawnParticles, ParticleOptions pSmallExplosionParticles, ParticleOptions pLargeExplosionParticles, Holder<SoundEvent> pExplosionSound) Level.explode
(Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction, ParticleOptions pSmallExplosionParticles, ParticleOptions pLargeExplosionParticles, Holder<SoundEvent> pExplosionSound) default void
LevelAccessor.gameEvent
(Holder<GameEvent> pGameEvent, BlockPos pPos, GameEvent.Context pContext) void
LevelAccessor.gameEvent
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) default void
default void
private static WeightedRandomList
<MobSpawnSettings.SpawnerData> NaturalSpawner.mobsAt
(ServerLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, MobCategory pCategory, BlockPos pPos, Holder<Biome> pBiome) abstract void
Level.playSeededSound
(Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) abstract void
Level.playSeededSound
(Player pPlayer, Entity pEntity, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) void
Level.playSound
(Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch) static void
NaturalSpawner.spawnMobsForChunkGeneration
(ServerLevelAccessor pLevelAccessor, Holder<Biome> pBiome, ChunkPos pChunkPos, RandomSource pRandom) Method parameters in net.minecraft.world.level with type arguments of type HolderModifier and TypeMethodDescriptionStructureManager.getStructureWithPieceAt
(BlockPos pPos, Predicate<Holder<Structure>> pPredicate) Constructors in net.minecraft.world.level with parameters of type HolderModifierConstructorDescriptionExplosion
(Level pLevel, Entity pSource, double pX, double pY, double pZ, float pRadius, List<BlockPos> pToBlow, Explosion.BlockInteraction pBlockInteraction, ParticleOptions pSmallExplosionParticles, ParticleOptions pLargeExplosionParticles, Holder<SoundEvent> pExplosionSound) Explosion
(Level pLevel, Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction, ParticleOptions pSmallExplosionParticles, ParticleOptions pLargeExplosionParticles, Holder<SoundEvent> pExplosionSound) protected
Level
(WritableLevelData pLevelData, ResourceKey<Level> pDimension, RegistryAccess pRegistryAccess, Holder<DimensionType> pDimensionTypeRegistration, Supplier<ProfilerFiller> pProfiler, boolean pIsClientSide, boolean pIsDebug, long pBiomeZoomSeed, int pMaxChainedNeighborUpdates) -
Uses of Holder in net.minecraft.world.level.biome
Fields in net.minecraft.world.level.biome declared as HolderModifier and TypeFieldDescriptionTheEndBiomeSource.barrens
FixedBiomeSource.biome
TheEndBiomeSource.end
TheEndBiomeSource.highlands
TheEndBiomeSource.islands
TheEndBiomeSource.midlands
private final Holder
<SoundEvent> AmbientAdditionsSettings.soundEvent
private final Holder
<SoundEvent> AmbientMoodSettings.soundEvent
Fields in net.minecraft.world.level.biome with type parameters of type HolderModifier and TypeFieldDescriptionprivate final Optional
<Holder<SoundEvent>> BiomeSpecialEffects.ambientLoopSoundEvent
protected Optional
<Holder<SoundEvent>> BiomeSpecialEffects.Builder.ambientLoopSoundEvent
protected final Map
<GenerationStep.Carving, List<Holder<ConfiguredWorldCarver<?>>>> BiomeGenerationSettings.PlainBuilder.carvers
Biome.CODEC
static final com.mojang.serialization.Codec
<Holder<MultiNoiseBiomeSourceParameterList>> MultiNoiseBiomeSourceParameterList.CODEC
static final com.mojang.serialization.MapCodec
<Climate.ParameterList<Holder<Biome>>> MultiNoiseBiomeSource.DIRECT_CODEC
MultiNoiseBiomeSource.ENTRY_CODEC
protected final List
<List<Holder<PlacedFeature>>> BiomeGenerationSettings.PlainBuilder.features
private final com.mojang.datafixers.util.Either
<Climate.ParameterList<Holder<Biome>>, Holder<MultiNoiseBiomeSourceParameterList>> MultiNoiseBiomeSource.parameters
private final com.mojang.datafixers.util.Either
<Climate.ParameterList<Holder<Biome>>, Holder<MultiNoiseBiomeSourceParameterList>> MultiNoiseBiomeSource.parameters
private final Climate.ParameterList
<Holder<Biome>> MultiNoiseBiomeSourceParameterList.parameters
BiomeSource.possibleBiomes
private static final com.mojang.serialization.MapCodec
<Holder<MultiNoiseBiomeSourceParameterList>> MultiNoiseBiomeSource.PRESET_CODEC
Methods in net.minecraft.world.level.biome that return HolderModifier and TypeMethodDescriptionBiomeManager.NoiseBiomeSource.getNoiseBiome
(int pX, int pY, int pZ) Gets the biome at the given quart positions.BiomeResolver.getNoiseBiome
(int pX, int pY, int pZ, Climate.Sampler pSampler) BiomeSource.getNoiseBiome
(int pX, int pY, int pZ, Climate.Sampler pSampler) CheckerboardColumnBiomeSource.getNoiseBiome
(int pX, int pY, int pZ, Climate.Sampler pSampler) FixedBiomeSource.getNoiseBiome
(int pX, int pY, int pZ) Gets the biome at the given quart positions.FixedBiomeSource.getNoiseBiome
(int pX, int pY, int pZ, Climate.Sampler pSampler) MultiNoiseBiomeSource.getNoiseBiome
(int pX, int pY, int pZ, Climate.Sampler pSampler) MultiNoiseBiomeSource.getNoiseBiome
(Climate.TargetPoint pTargetPoint) TheEndBiomeSource.getNoiseBiome
(int pX, int pY, int pZ, Climate.Sampler pSampler) BiomeManager.getNoiseBiomeAtPosition
(double pX, double pY, double pZ) BiomeManager.getNoiseBiomeAtPosition
(BlockPos pPos) BiomeManager.getNoiseBiomeAtQuart
(int pX, int pY, int pZ) AmbientAdditionsSettings.getSoundEvent()
AmbientMoodSettings.getSoundEvent()
Methods in net.minecraft.world.level.biome that return types with arguments of type HolderModifier and TypeMethodDescriptionBiomeSource.collectPossibleBiomes()
CheckerboardColumnBiomeSource.collectPossibleBiomes()
FixedBiomeSource.collectPossibleBiomes()
MultiNoiseBiomeSource.collectPossibleBiomes()
TheEndBiomeSource.collectPossibleBiomes()
BiomeSource.findBiomeHorizontal
(int p_220561_, int p_220562_, int p_220563_, int p_220564_, int p_220565_, Predicate<Holder<Biome>> p_220566_, RandomSource p_220567_, boolean p_220568_, Climate.Sampler p_220569_) BiomeSource.findBiomeHorizontal
(int p_220571_, int p_220572_, int p_220573_, int p_220574_, Predicate<Holder<Biome>> p_220575_, RandomSource p_220576_, Climate.Sampler p_220577_) FixedBiomeSource.findBiomeHorizontal
(int p_220640_, int p_220641_, int p_220642_, int p_220643_, int p_220644_, Predicate<Holder<Biome>> p_220645_, RandomSource p_220646_, boolean p_220647_, Climate.Sampler p_220648_) BiomeSource.findClosestBiome3d
(BlockPos p_220578_, int p_220579_, int p_220580_, int p_220581_, Predicate<Holder<Biome>> p_220582_, Climate.Sampler p_220583_, LevelReader p_220584_) FixedBiomeSource.findClosestBiome3d
(BlockPos p_220650_, int p_220651_, int p_220652_, int p_220653_, Predicate<Holder<Biome>> p_220654_, Climate.Sampler p_220655_, LevelReader p_220656_) Biome.getAmbientLoop()
BiomeSpecialEffects.getAmbientLoopSoundEvent()
BiomeSource.getBiomesWithin
(int pX, int pY, int pZ, int pRadius, Climate.Sampler pSampler) FixedBiomeSource.getBiomesWithin
(int pX, int pY, int pZ, int pRadius, Climate.Sampler pSampler) BiomeGenerationSettings.getCarvers
(GenerationStep.Carving pStep) private Climate.ParameterList
<Holder<Biome>> MultiNoiseBiomeSource.parameters()
MultiNoiseBiomeSourceParameterList.parameters()
BiomeSource.possibleBiomes()
Methods in net.minecraft.world.level.biome with parameters of type HolderModifier and TypeMethodDescriptionBiomeGenerationSettings.PlainBuilder.addCarver
(GenerationStep.Carving pCarving, Holder<ConfiguredWorldCarver<?>> pCarver) BiomeGenerationSettings.PlainBuilder.addFeature
(int pStep, Holder<PlacedFeature> pFeature) BiomeGenerationSettings.PlainBuilder.addFeature
(GenerationStep.Decoration pDecoration, Holder<PlacedFeature> pFeature) BiomeSpecialEffects.Builder.ambientLoopSound
(Holder<SoundEvent> pAmbientLoopSoundEvent) static MultiNoiseBiomeSource
MultiNoiseBiomeSource.createFromPreset
(Holder<MultiNoiseBiomeSourceParameterList> pParameters) Method parameters in net.minecraft.world.level.biome with type arguments of type HolderModifier and TypeMethodDescriptionstatic MultiNoiseBiomeSource
MultiNoiseBiomeSource.createFromList
(Climate.ParameterList<Holder<Biome>> pParameters) BiomeSource.findBiomeHorizontal
(int p_220561_, int p_220562_, int p_220563_, int p_220564_, int p_220565_, Predicate<Holder<Biome>> p_220566_, RandomSource p_220567_, boolean p_220568_, Climate.Sampler p_220569_) BiomeSource.findBiomeHorizontal
(int p_220571_, int p_220572_, int p_220573_, int p_220574_, Predicate<Holder<Biome>> p_220575_, RandomSource p_220576_, Climate.Sampler p_220577_) FixedBiomeSource.findBiomeHorizontal
(int p_220640_, int p_220641_, int p_220642_, int p_220643_, int p_220644_, Predicate<Holder<Biome>> p_220645_, RandomSource p_220646_, boolean p_220647_, Climate.Sampler p_220648_) BiomeSource.findClosestBiome3d
(BlockPos p_220578_, int p_220579_, int p_220580_, int p_220581_, Predicate<Holder<Biome>> p_220582_, Climate.Sampler p_220583_, LevelReader p_220584_) FixedBiomeSource.findClosestBiome3d
(BlockPos p_220650_, int p_220651_, int p_220652_, int p_220653_, Predicate<Holder<Biome>> p_220654_, Climate.Sampler p_220655_, LevelReader p_220656_) Constructors in net.minecraft.world.level.biome with parameters of type HolderModifierConstructorDescriptionAmbientAdditionsSettings
(Holder<SoundEvent> p_263329_, double p_263326_) AmbientMoodSettings
(Holder<SoundEvent> p_263350_, int p_263364_, int p_263333_, double p_263345_) FixedBiomeSource
(Holder<Biome> p_204257_) private
TheEndBiomeSource
(Holder<Biome> p_220678_, Holder<Biome> p_220679_, Holder<Biome> p_220680_, Holder<Biome> p_220681_, Holder<Biome> p_220682_) Constructor parameters in net.minecraft.world.level.biome with type arguments of type HolderModifierConstructorDescriptionprivate
MultiNoiseBiomeSource
(com.mojang.datafixers.util.Either<Climate.ParameterList<Holder<Biome>>, Holder<MultiNoiseBiomeSourceParameterList>> p_275370_) private
MultiNoiseBiomeSource
(com.mojang.datafixers.util.Either<Climate.ParameterList<Holder<Biome>>, Holder<MultiNoiseBiomeSourceParameterList>> p_275370_) -
Uses of Holder in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return HolderMethods in net.minecraft.world.level.block that return types with arguments of type HolderModifier and TypeMethodDescriptionprivate Optional
<? extends Holder<ConfiguredFeature<?, ?>>> FungusBlock.getFeature
(LevelReader pLevel) Methods in net.minecraft.world.level.block with parameters of type HolderModifier and TypeMethodDescriptionprotected static SuspiciousStewEffects
FlowerBlock.makeEffectList
(Holder<MobEffect> pEffect, float pSeconds) Constructors in net.minecraft.world.level.block with parameters of type HolderModifierConstructorDescriptionFlowerBlock
(Holder<MobEffect> pEffect, float pSeconds, BlockBehaviour.Properties pProperties) WitherRoseBlock
(Holder<MobEffect> pEffect, float pSeconds, BlockBehaviour.Properties pProperties) -
Uses of Holder in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as HolderModifier and TypeFieldDescriptionprivate final Holder
<BannerPattern> BannerPatternLayers.Layer.pattern
The field for thepattern
record component.BeaconBlockEntity.primaryPower
The primary effect given by this beacon.BeaconBlockEntity.secondaryPower
The secondary effect given by this beacon.Fields in net.minecraft.world.level.block.entity with type parameters of type HolderModifier and TypeFieldDescriptionBeaconBlockEntity.BEACON_EFFECTS
A list of effects that beacons can apply.static final com.mojang.serialization.Codec
<Holder<BannerPattern>> BannerPattern.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<BannerPattern>> BannerPattern.STREAM_CODEC
BeaconBlockEntity.VALID_EFFECTS
Methods in net.minecraft.world.level.block.entity that return HolderModifier and TypeMethodDescriptionBeaconBlockEntity.filterEffect
(Holder<MobEffect> p_316372_) BeaconBlockEntity.loadEffect
(CompoundTag pTag, String pKey) BannerPatternLayers.Layer.pattern()
Returns the value of thepattern
record component.Methods in net.minecraft.world.level.block.entity with parameters of type HolderModifier and TypeMethodDescriptionBannerPatternLayers.Builder.add
(Holder<BannerPattern> pPattern, DyeColor pColor) private static void
BeaconBlockEntity.applyEffects
(Level pLevel, BlockPos pPos, int pBeaconLevel, Holder<MobEffect> pPrimaryEffect, Holder<MobEffect> pSecondaryEffect) boolean
CalibratedSculkSensorBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel pLevel, BlockPos pPos, Holder<GameEvent> pGameEvent, GameEvent.Context pContext) boolean
SculkSensorBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel pLevel, BlockPos pPos, Holder<GameEvent> pGameEvent, GameEvent.Context pContext) boolean
SculkShriekerBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel p_281256_, BlockPos p_281528_, Holder<GameEvent> p_316788_, GameEvent.Context p_282914_) BeaconBlockEntity.filterEffect
(Holder<MobEffect> p_316372_) boolean
SculkCatalystBlockEntity.CatalystListener.handleGameEvent
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) void
SculkSensorBlockEntity.VibrationUser.onReceiveVibration
(ServerLevel pLevel, BlockPos pPos, Holder<GameEvent> pGameEvent, Entity pEntity, Entity pPlayerEntity, float pDistance) void
SculkShriekerBlockEntity.VibrationUser.onReceiveVibration
(ServerLevel p_283372_, BlockPos p_281679_, Holder<GameEvent> p_316155_, Entity p_282286_, Entity p_281384_, float p_283119_) private static void
BeaconBlockEntity.storeEffect
(CompoundTag pTag, String pKey, Holder<MobEffect> pEffect) Constructors in net.minecraft.world.level.block.entity with parameters of type HolderModifierConstructorDescriptionLayer
(Holder<BannerPattern> pattern, DyeColor color) Creates an instance of aLayer
record class. -
Uses of Holder in net.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type HolderModifier and TypeMethodDescriptionTrialSpawnerData.findPlayerWithOminousEffect
(ServerLevel pLevel, List<UUID> pPlayers) -
Uses of Holder in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state that return HolderMethods in net.minecraft.world.level.block.state with parameters of type Holder -
Uses of Holder in net.minecraft.world.level.block.state.properties
Fields in net.minecraft.world.level.block.state.properties declared as HolderMethods in net.minecraft.world.level.block.state.properties that return HolderConstructors in net.minecraft.world.level.block.state.properties with parameters of type HolderModifierConstructorDescriptionprivate
NoteBlockInstrument
(String pName, Holder<SoundEvent> pSoundEvent, NoteBlockInstrument.Type pType) -
Uses of Holder in net.minecraft.world.level.chunk
Fields in net.minecraft.world.level.chunk declared as HolderFields in net.minecraft.world.level.chunk with type parameters of type HolderModifier and TypeFieldDescriptionprivate PalettedContainerRO
<Holder<Biome>> LevelChunkSection.biomes
private final Function
<Holder<Biome>, BiomeGenerationSettings> ChunkGenerator.generationSettingsGetter
private final List
<Holder<StructureSet>> ChunkGeneratorStructureState.possibleStructureSets
Methods in net.minecraft.world.level.chunk that return HolderModifier and TypeMethodDescriptionChunkAccess.getNoiseBiome
(int pX, int pY, int pZ) Gets the biome at the given quart positions.EmptyLevelChunk.getNoiseBiome
(int pX, int pY, int pZ) Gets the biome at the given quart positions.ImposterProtoChunk.getNoiseBiome
(int pX, int pY, int pZ) Gets the biome at the given quart positions.LevelChunkSection.getNoiseBiome
(int pX, int pY, int pZ) ProtoChunk.getNoiseBiome
(int pX, int pY, int pZ) Gets the biome at the given quart positions.Methods in net.minecraft.world.level.chunk that return types with arguments of type HolderModifier and TypeMethodDescriptionChunkGenerator.findNearestMapStructure
(ServerLevel p_223038_, HolderSet<Structure> p_223039_, BlockPos p_223040_, int p_223041_, boolean p_223042_) LevelChunkSection.getBiomes()
ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> p_223182_, ServerLevel p_223183_, StructureManager p_223184_, BlockPos p_223185_, boolean p_223186_, ConcentricRingsStructurePlacement p_223187_) ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> p_223189_, LevelReader p_223190_, StructureManager p_223191_, int p_223192_, int p_223193_, int p_223194_, boolean p_223195_, long p_223196_, RandomSpreadStructurePlacement p_223197_) ChunkGenerator.getStructureGeneratingAt
(Set<Holder<Structure>> p_223199_, LevelReader p_223200_, StructureManager p_223201_, boolean p_223202_, StructurePlacement p_223203_, ChunkPos p_223204_) ChunkGeneratorStructureState.possibleStructureSets()
Methods in net.minecraft.world.level.chunk with parameters of type HolderModifier and TypeMethodDescriptionprivate CompletableFuture
<List<ChunkPos>> ChunkGeneratorStructureState.generateRingPositions
(Holder<StructureSet> pStructureSet, ConcentricRingsStructurePlacement pPlacement) ChunkGenerator.getBiomeGenerationSettings
(Holder<Biome> pBiome) Deprecated.ChunkGenerator.getMobsAt
(Holder<Biome> pBiome, StructureManager pStructureManager, MobCategory pCategory, BlockPos pPos) ChunkGeneratorStructureState.getPlacementsForStructure
(Holder<Structure> pStructure) boolean
ChunkGeneratorStructureState.hasStructureChunkInRange
(Holder<StructureSet> pStructureSet, int pX, int pZ, int pRange) Method parameters in net.minecraft.world.level.chunk with type arguments of type HolderModifier and TypeMethodDescriptionstatic ChunkGeneratorStructureState
ChunkGeneratorStructureState.createForFlat
(RandomState pRandomState, long pLevelSeed, BiomeSource pBiomeSource, Stream<Holder<StructureSet>> pStructureSets) ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> p_223182_, ServerLevel p_223183_, StructureManager p_223184_, BlockPos p_223185_, boolean p_223186_, ConcentricRingsStructurePlacement p_223187_) ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> p_223189_, LevelReader p_223190_, StructureManager p_223191_, int p_223192_, int p_223193_, int p_223194_, boolean p_223195_, long p_223196_, RandomSpreadStructurePlacement p_223197_) ChunkGenerator.getStructureGeneratingAt
(Set<Holder<Structure>> p_223199_, LevelReader p_223200_, StructureManager p_223201_, boolean p_223202_, StructurePlacement p_223203_, ChunkPos p_223204_) Constructors in net.minecraft.world.level.chunk with parameters of type HolderConstructor parameters in net.minecraft.world.level.chunk with type arguments of type HolderModifierConstructorDescriptionChunkGenerator
(BiomeSource pBiomeSource, Function<Holder<Biome>, BiomeGenerationSettings> pGenerationSettingsGetter) private
ChunkGeneratorStructureState
(RandomState pRandomState, BiomeSource pBiomeSource, long pLevelSeed, long pCocentricRingsSeed, List<Holder<StructureSet>> pPossibleStructureSets) LevelChunkSection
(PalettedContainer<BlockState> pStates, PalettedContainerRO<Holder<Biome>> pBiomes) -
Uses of Holder in net.minecraft.world.level.chunk.storage
Methods in net.minecraft.world.level.chunk.storage that return types with arguments of type HolderModifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec
<PalettedContainerRO<Holder<Biome>>> ChunkSerializer.makeBiomeCodec
(Registry<Biome> p_188261_) -
Uses of Holder in net.minecraft.world.level.dimension
Fields in net.minecraft.world.level.dimension declared as HolderModifier and TypeFieldDescriptionprivate final Holder
<DimensionType> LevelStem.type
The field for thetype
record component.Fields in net.minecraft.world.level.dimension with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<DimensionType>> DimensionType.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<DimensionType>> DimensionType.STREAM_CODEC
Methods in net.minecraft.world.level.dimension that return HolderModifier and TypeMethodDescriptionLevelStem.type()
Returns the value of thetype
record component.Constructors in net.minecraft.world.level.dimension with parameters of type HolderModifierConstructorDescriptionLevelStem
(Holder<DimensionType> type, ChunkGenerator generator) Creates an instance of aLevelStem
record class. -
Uses of Holder in net.minecraft.world.level.gameevent
Fields in net.minecraft.world.level.gameevent declared as HolderFields in net.minecraft.world.level.gameevent with type parameters of type HolderMethods in net.minecraft.world.level.gameevent that return HolderMethods in net.minecraft.world.level.gameevent with parameters of type HolderModifier and TypeMethodDescriptionboolean
GameEventListener.handleGameEvent
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) void
GameEventDispatcher.post
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) boolean
EuclideanGameEventListenerRegistry.visitInRangeListeners
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext, GameEventListenerRegistry.ListenerVisitor pVisitor) boolean
GameEventListenerRegistry.visitInRangeListeners
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext, GameEventListenerRegistry.ListenerVisitor pVisitor) Constructors in net.minecraft.world.level.gameevent with parameters of type HolderModifierConstructorDescriptionListenerInfo
(Holder<GameEvent> pGameEvent, Vec3 pSource, GameEvent.Context pContext, GameEventListener pRecipient, Vec3 pPos) -
Uses of Holder in net.minecraft.world.level.gameevent.vibrations
Fields in net.minecraft.world.level.gameevent.vibrations declared as HolderModifier and TypeFieldDescriptionVibrationInfo.gameEvent
The field for thegameEvent
record component.Methods in net.minecraft.world.level.gameevent.vibrations that return HolderModifier and TypeMethodDescriptionVibrationInfo.gameEvent()
Returns the value of thegameEvent
record component.Methods in net.minecraft.world.level.gameevent.vibrations with parameters of type HolderModifier and TypeMethodDescriptionboolean
VibrationSystem.User.canReceiveVibration
(ServerLevel pLevel, BlockPos pPos, Holder<GameEvent> pGameEvent, GameEvent.Context pContext) void
VibrationSystem.Listener.forceScheduleVibration
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) static int
VibrationSystem.getGameEventFrequency
(Holder<GameEvent> pGameEvent) boolean
VibrationSystem.Listener.handleGameEvent
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) default boolean
VibrationSystem.User.isValidVibration
(Holder<GameEvent> pGameEvent, GameEvent.Context pContext) void
VibrationSystem.User.onReceiveVibration
(ServerLevel pLevel, BlockPos pPos, Holder<GameEvent> pGameEvent, Entity pEntity, Entity pPlayerEntity, float pDistance) private void
VibrationSystem.Listener.scheduleVibration
(ServerLevel pLevel, VibrationSystem.Data pData, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos, Vec3 pSensorPos) Constructors in net.minecraft.world.level.gameevent.vibrations with parameters of type HolderModifierConstructorDescriptionVibrationInfo
(Holder<GameEvent> p_316546_, float p_251086_, Vec3 p_250935_, UUID p_316193_, UUID p_316157_) VibrationInfo
(Holder<GameEvent> gameEvent, float distance, Vec3 pos, UUID uuid, UUID projectileOwnerUuid, Entity entity) Creates an instance of aVibrationInfo
record class.VibrationInfo
(Holder<GameEvent> p_316851_, float p_250190_, Vec3 p_251692_, Entity p_316868_) -
Uses of Holder in net.minecraft.world.level.levelgen
Fields in net.minecraft.world.level.levelgen declared as HolderModifier and TypeFieldDescriptionprivate final Holder
<DensityFunction> DensityFunctions.HolderHolder.function
The field for thefunction
record component.private final Holder
<DensityFunction> DensityFunctions.Spline.Coordinate.function
The field for thefunction
record component.private final Holder
<NormalNoise.NoiseParameters> DensityFunction.NoiseHolder.noiseData
The field for thenoiseData
record component.private final Holder
<NoiseGeneratorSettings> NoiseBasedChunkGenerator.settings
Fields in net.minecraft.world.level.levelgen with type parameters of type HolderModifier and TypeFieldDescriptionSurfaceRules.Context.biome
SurfaceRules.Context.biomeGetter
static final com.mojang.serialization.Codec
<Holder<DensityFunction>> DensityFunction.CODEC
static final com.mojang.serialization.Codec
<Holder<NoiseGeneratorSettings>> NoiseGeneratorSettings.CODEC
Methods in net.minecraft.world.level.levelgen that return HolderModifier and TypeMethodDescriptionstatic Holder
<? extends DensityFunction> NoiseRouterData.bootstrap
(BootstrapContext<DensityFunction> pContext) DensityFunctions.HolderHolder.function()
Returns the value of thefunction
record component.DensityFunctions.Spline.Coordinate.function()
Returns the value of thefunction
record component.NoiseBasedChunkGenerator.generatorSettings()
DensityFunction.NoiseHolder.noiseData()
Returns the value of thenoiseData
record component.Methods in net.minecraft.world.level.levelgen with parameters of type HolderModifier and TypeMethodDescriptionstatic DensityFunction
DensityFunctions.mappedNoise
(Holder<NormalNoise.NoiseParameters> pNoiseData, double pFromY, double pToY) static DensityFunction
DensityFunctions.mappedNoise
(Holder<NormalNoise.NoiseParameters> pNoiseData, double pYScale, double pFromY, double pToY) static DensityFunction
DensityFunctions.mappedNoise
(Holder<NormalNoise.NoiseParameters> pNoiseData, double pXzScale, double pYScale, double pFromY, double pToY) static DensityFunction
DensityFunctions.noise
(Holder<NormalNoise.NoiseParameters> pNoiseData) static DensityFunction
DensityFunctions.noise
(Holder<NormalNoise.NoiseParameters> pNoiseData, double pYScale) static DensityFunction
DensityFunctions.noise
(Holder<NormalNoise.NoiseParameters> pNoiseData, double pXzScale, double pYScale) private static void
NoiseRouterData.registerTerrainNoises
(BootstrapContext<DensityFunction> pContext, HolderGetter<DensityFunction> pDensityFunctionGetter, DensityFunction pJaggedNoise, Holder<DensityFunction> pContinentalness, Holder<DensityFunction> pErosion, ResourceKey<DensityFunction> pOffsetKey, ResourceKey<DensityFunction> pFactorKey, ResourceKey<DensityFunction> pJaggednessKey, ResourceKey<DensityFunction> pDepthKey, ResourceKey<DensityFunction> pSlopedCheeseKey, boolean pAmplified) static DensityFunction
DensityFunctions.shift
(Holder<NormalNoise.NoiseParameters> pNoiseData) static DensityFunction
DensityFunctions.shiftA
(Holder<NormalNoise.NoiseParameters> pNoiseData) static DensityFunction
DensityFunctions.shiftB
(Holder<NormalNoise.NoiseParameters> pNoiseData) static DensityFunction
DensityFunctions.shiftedNoise2d
(DensityFunction pShiftX, DensityFunction pShiftZ, double pXzScale, Holder<NormalNoise.NoiseParameters> pNoiseData) static DensityFunction
DensityFunctions.weirdScaledSampler
(DensityFunction pInput, Holder<NormalNoise.NoiseParameters> pNoiseData, DensityFunctions.WeirdScaledSampler.RarityValueMapper pRarityValueMapper) static Map
<ResourceKey<LevelStem>, LevelStem> WorldDimensions.withOverworld
(Map<ResourceKey<LevelStem>, LevelStem> pStemMap, Holder<DimensionType> pDimensionType, ChunkGenerator pChunkGenerator) Method parameters in net.minecraft.world.level.levelgen with type arguments of type HolderModifier and TypeMethodDescriptionSurfaceSystem.topMaterial
(SurfaceRules.RuleSource pRule, CarvingContext pContext, Function<BlockPos, Holder<Biome>> pBiomeGetter, ChunkAccess pChunk, NoiseChunk pNoiseChunk, BlockPos pPos, boolean pHasFluid) Deprecated.Constructors in net.minecraft.world.level.levelgen with parameters of type HolderModifierConstructorDescriptionCoordinate
(Holder<DensityFunction> function) Creates an instance of aCoordinate
record class.HolderHolder
(Holder<DensityFunction> function) Creates an instance of aHolderHolder
record class.NoiseBasedChunkGenerator
(BiomeSource p_256415_, Holder<NoiseGeneratorSettings> p_256182_) NoiseHolder
(Holder<NormalNoise.NoiseParameters> p_224001_) NoiseHolder
(Holder<NormalNoise.NoiseParameters> noiseData, NormalNoise noise) Creates an instance of aNoiseHolder
record class.Constructor parameters in net.minecraft.world.level.levelgen with type arguments of type HolderModifierConstructorDescriptionprotected
Context
(SurfaceSystem pSystem, RandomState pRandomState, ChunkAccess pChunk, NoiseChunk pNoiseChunk, Function<BlockPos, Holder<Biome>> pBiomeGetter, Registry<Biome> p_224621_, WorldGenerationContext pContext) -
Uses of Holder in net.minecraft.world.level.levelgen.blending
Fields in net.minecraft.world.level.levelgen.blending with type parameters of type HolderMethods in net.minecraft.world.level.levelgen.blending that return HolderMethods in net.minecraft.world.level.levelgen.blending that return types with arguments of type HolderModifier and TypeMethodDescriptionBlendingData.getBiomeColumn
(ChunkAccess pChunk, int pX, int pZ) Methods in net.minecraft.world.level.levelgen.blending with parameters of type Holder -
Uses of Holder in net.minecraft.world.level.levelgen.carver
Fields in net.minecraft.world.level.levelgen.carver with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<ConfiguredWorldCarver<?>>> ConfiguredWorldCarver.CODEC
Method parameters in net.minecraft.world.level.levelgen.carver with type arguments of type HolderModifier and TypeMethodDescriptionboolean
CanyonWorldCarver.carve
(CarvingContext pContext, CanyonCarverConfiguration pConfig, ChunkAccess pChunk, Function<BlockPos, Holder<Biome>> pBiomeAccessor, RandomSource pRandom, Aquifer pAquifer, ChunkPos pChunkPos, CarvingMask pCarvingMask) Carves the given chunk with caves that originate from the givenchunkPos
.boolean
CaveWorldCarver.carve
(CarvingContext pContext, CaveCarverConfiguration pConfig, ChunkAccess pChunk, Function<BlockPos, Holder<Biome>> pBiomeAccessor, RandomSource pRandom, Aquifer pAquifer, ChunkPos pChunkPos, CarvingMask pCarvingMask) Carves the given chunk with caves that originate from the givenchunkPos
.boolean
ConfiguredWorldCarver.carve
(CarvingContext pContext, ChunkAccess pChunk, Function<BlockPos, Holder<Biome>> pBiomeAccessor, RandomSource pRandom, Aquifer pAquifer, ChunkPos pChunkPos, CarvingMask pCarvingMask) abstract boolean
WorldCarver.carve
(CarvingContext pContext, C pConfig, ChunkAccess pChunk, Function<BlockPos, Holder<Biome>> pBiomeAccessor, RandomSource pRandom, Aquifer pAquifer, ChunkPos pChunkPos, CarvingMask pCarvingMask) Carves the given chunk with caves that originate from the givenchunkPos
.protected boolean
NetherWorldCarver.carveBlock
(CarvingContext p_190731_, CaveCarverConfiguration p_190732_, ChunkAccess p_190733_, Function<BlockPos, Holder<Biome>> p_190734_, CarvingMask p_190735_, BlockPos.MutableBlockPos p_190736_, BlockPos.MutableBlockPos p_190737_, Aquifer p_190738_, org.apache.commons.lang3.mutable.MutableBoolean p_190739_) protected boolean
WorldCarver.carveBlock
(CarvingContext p_190744_, C p_190745_, ChunkAccess p_190746_, Function<BlockPos, Holder<Biome>> p_190747_, CarvingMask p_190748_, BlockPos.MutableBlockPos p_190749_, BlockPos.MutableBlockPos p_190750_, Aquifer p_190751_, org.apache.commons.lang3.mutable.MutableBoolean p_190752_) protected boolean
WorldCarver.carveEllipsoid
(CarvingContext pContext, C pConfig, ChunkAccess pChunk, Function<BlockPos, Holder<Biome>> pBiomeAccessor, Aquifer pAquifer, double pX, double pY, double pZ, double pHorizontalRadius, double pVerticalRadius, CarvingMask pCarvingMask, WorldCarver.CarveSkipChecker pSkipChecker) Carves blocks in an ellipsoid (more accurately a spheroid), defined by a center (x, y, z) position, with a horizontal and vertical radius (the semi-axes)protected void
CaveWorldCarver.createRoom
(CarvingContext pContext, CaveCarverConfiguration pConfig, ChunkAccess pChunk, Function<BlockPos, Holder<Biome>> pBiomeAccessor, Aquifer pAquifer, double pX, double pY, double pZ, float pRadius, double pHorizontalVerticalRatio, CarvingMask pCarvingMask, WorldCarver.CarveSkipChecker pSkipChecker) protected void
CaveWorldCarver.createTunnel
(CarvingContext pContext, CaveCarverConfiguration pConfig, ChunkAccess pChunk, Function<BlockPos, Holder<Biome>> pBiomeAccessor, long pSeed, Aquifer pAquifer, double pX, double pY, double pZ, double pHorizontalRadiusMultiplier, double pVerticalRadiusMultiplier, float pThickness, float pYaw, float pPitch, int pBranchIndex, int pBranchCount, double pHorizontalVerticalRatio, CarvingMask pCarvingMask, WorldCarver.CarveSkipChecker pSkipChecker) private void
CanyonWorldCarver.doCarve
(CarvingContext pContext, CanyonCarverConfiguration pConfig, ChunkAccess pChunk, Function<BlockPos, Holder<Biome>> pBiomeAccessor, long pSeed, Aquifer pAquifer, double pX, double pY, double pZ, float pThickness, float pYaw, float pPitch, int pBranchIndex, int pBranchCount, double pHorizontalVerticalRatio, CarvingMask pCarvingMask) CarvingContext.topMaterial
(Function<BlockPos, Holder<Biome>> pBiomeMapper, ChunkAccess pAccess, BlockPos pPos, boolean pHasFluid) Deprecated. -
Uses of Holder in net.minecraft.world.level.levelgen.feature
Fields in net.minecraft.world.level.levelgen.feature declared as HolderModifier and TypeFieldDescriptionfinal Holder
<PlacedFeature> WeightedPlacedFeature.feature
final Holder
<StructureProcessorList> FossilFeatureConfiguration.fossilProcessors
final Holder
<StructureProcessorList> FossilFeatureConfiguration.overlayProcessors
Fields in net.minecraft.world.level.levelgen.feature with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<ConfiguredFeature<?, ?>>> ConfiguredFeature.CODEC
Constructors in net.minecraft.world.level.levelgen.feature with parameters of type HolderModifierConstructorDescriptionFossilFeatureConfiguration
(List<ResourceLocation> p_204751_, List<ResourceLocation> p_204752_, Holder<StructureProcessorList> p_204753_, Holder<StructureProcessorList> p_204754_, int p_204755_) WeightedPlacedFeature
(Holder<PlacedFeature> p_204786_, float p_204787_) -
Uses of Holder in net.minecraft.world.level.levelgen.feature.configurations
Fields in net.minecraft.world.level.levelgen.feature.configurations declared as HolderModifier and TypeFieldDescriptionfinal Holder
<PlacedFeature> RandomFeatureConfiguration.defaultFeature
private final Holder
<PlacedFeature> RandomPatchConfiguration.feature
The field for thefeature
record component.final Holder
<PlacedFeature> RandomBooleanFeatureConfiguration.featureFalse
final Holder
<PlacedFeature> RandomBooleanFeatureConfiguration.featureTrue
final Holder
<PlacedFeature> RootSystemConfiguration.treeFeature
final Holder
<PlacedFeature> VegetationPatchConfiguration.vegetationFeature
Methods in net.minecraft.world.level.levelgen.feature.configurations that return HolderModifier and TypeMethodDescriptionRandomPatchConfiguration.feature()
Returns the value of thefeature
record component.Constructors in net.minecraft.world.level.levelgen.feature.configurations with parameters of type HolderModifierConstructorDescriptionRandomBooleanFeatureConfiguration
(Holder<PlacedFeature> p_204804_, Holder<PlacedFeature> p_204805_) RandomFeatureConfiguration
(List<WeightedPlacedFeature> p_204811_, Holder<PlacedFeature> p_204812_) RandomPatchConfiguration
(int tries, int xzSpread, int ySpread, Holder<PlacedFeature> feature) Creates an instance of aRandomPatchConfiguration
record class.RootSystemConfiguration
(Holder<PlacedFeature> p_204824_, int p_204825_, int p_204826_, TagKey<Block> p_204827_, BlockStateProvider p_204828_, int p_204829_, int p_204830_, int p_204831_, int p_204832_, BlockStateProvider p_204833_, int p_204834_, int p_204835_, BlockPredicate p_204836_) VegetationPatchConfiguration
(TagKey<Block> p_204856_, BlockStateProvider p_204857_, Holder<PlacedFeature> p_204858_, CaveSurface p_204859_, IntProvider p_204860_, float p_204861_, int p_204862_, float p_204863_, IntProvider p_204864_, float p_204865_) -
Uses of Holder in net.minecraft.world.level.levelgen.flat
Fields in net.minecraft.world.level.levelgen.flat declared as HolderModifier and TypeFieldDescriptionFlatLevelGeneratorSettings.biome
FlatLevelGeneratorPreset.displayItem
The field for thedisplayItem
record component.Fields in net.minecraft.world.level.levelgen.flat with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<FlatLevelGeneratorPreset>> FlatLevelGeneratorPreset.CODEC
private final List
<Holder<PlacedFeature>> FlatLevelGeneratorSettings.lakes
Methods in net.minecraft.world.level.levelgen.flat that return HolderModifier and TypeMethodDescriptionFlatLevelGeneratorPreset.displayItem()
Returns the value of thedisplayItem
record component.FlatLevelGeneratorSettings.getBiome()
FlatLevelGeneratorSettings.getBiome
(Optional<? extends Holder<Biome>> pBiome, Holder<Biome> pDefaultBiome) FlatLevelGeneratorSettings.getDefaultBiome
(HolderGetter<Biome> pBiomes) Methods in net.minecraft.world.level.levelgen.flat that return types with arguments of type HolderModifier and TypeMethodDescriptionstatic List
<Holder<PlacedFeature>> FlatLevelGeneratorSettings.createLakesList
(HolderGetter<PlacedFeature> pPlacedFeatureGetter) Methods in net.minecraft.world.level.levelgen.flat with parameters of type HolderModifier and TypeMethodDescriptionFlatLevelGeneratorSettings.adjustGenerationSettings
(Holder<Biome> pBiome) FlatLevelGeneratorSettings.getBiome
(Optional<? extends Holder<Biome>> pBiome, Holder<Biome> pDefaultBiome) FlatLevelGeneratorSettings.withBiomeAndLayers
(List<FlatLayerInfo> pLayerInfos, Optional<HolderSet<StructureSet>> pStructureSets, Holder<Biome> pBiome) Method parameters in net.minecraft.world.level.levelgen.flat with type arguments of type HolderModifier and TypeMethodDescriptionFlatLevelGeneratorSettings.getBiome
(Optional<? extends Holder<Biome>> pBiome, Holder<Biome> pDefaultBiome) Constructors in net.minecraft.world.level.levelgen.flat with parameters of type HolderModifierConstructorDescriptionFlatLevelGeneratorPreset
(Holder<Item> displayItem, FlatLevelGeneratorSettings settings) Creates an instance of aFlatLevelGeneratorPreset
record class.private
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_) FlatLevelGeneratorSettings
(Optional<HolderSet<StructureSet>> pStructureOverrides, Holder<Biome> pBiome, List<Holder<PlacedFeature>> pLakes) Constructor parameters in net.minecraft.world.level.levelgen.flat with type arguments of type HolderModifierConstructorDescriptionFlatLevelGeneratorSettings
(Optional<HolderSet<StructureSet>> pStructureOverrides, Holder<Biome> pBiome, List<Holder<PlacedFeature>> pLakes) -
Uses of Holder in net.minecraft.world.level.levelgen.placement
Fields in net.minecraft.world.level.levelgen.placement declared as HolderModifier and TypeFieldDescriptionprivate final Holder
<ConfiguredFeature<?, ?>> PlacedFeature.feature
The field for thefeature
record component.Fields in net.minecraft.world.level.levelgen.placement with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<PlacedFeature>> PlacedFeature.CODEC
Methods in net.minecraft.world.level.levelgen.placement that return HolderModifier and TypeMethodDescriptionHolder
<ConfiguredFeature<?, ?>> PlacedFeature.feature()
Returns the value of thefeature
record component.Constructors in net.minecraft.world.level.levelgen.placement with parameters of type HolderModifierConstructorDescriptionPlacedFeature
(Holder<ConfiguredFeature<?, ?>> feature, List<PlacementModifier> placement) Creates an instance of aPlacedFeature
record class. -
Uses of Holder in net.minecraft.world.level.levelgen.presets
Fields in net.minecraft.world.level.levelgen.presets declared as HolderModifier and TypeFieldDescriptionprivate final Holder
<DimensionType> WorldPresets.Bootstrap.overworldDimensionType
Fields in net.minecraft.world.level.levelgen.presets with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<WorldPreset>> WorldPreset.CODEC
Methods in net.minecraft.world.level.levelgen.presets with parameters of type HolderModifier and TypeMethodDescriptionprivate LevelStem
WorldPresets.Bootstrap.makeNoiseBasedOverworld
(BiomeSource pBiomeSource, Holder<NoiseGeneratorSettings> pSettings) -
Uses of Holder in net.minecraft.world.level.levelgen.structure
Fields in net.minecraft.world.level.levelgen.structure declared as HolderModifier and TypeFieldDescriptionStructureSet.StructureSelectionEntry.structure
The field for thestructure
record component.Fields in net.minecraft.world.level.levelgen.structure with type parameters of type HolderModifier and TypeFieldDescriptionStructure.CODEC
static final com.mojang.serialization.Codec
<Holder<StructureSet>> StructureSet.CODEC
Structure.GenerationContext.validBiome
The field for thevalidBiome
record component.Methods in net.minecraft.world.level.levelgen.structure that return HolderModifier and TypeMethodDescriptionStructureSet.StructureSelectionEntry.structure()
Returns the value of thestructure
record component.Methods in net.minecraft.world.level.levelgen.structure that return types with arguments of type HolderModifier and TypeMethodDescriptionStructure.GenerationContext.validBiome()
Returns the value of thevalidBiome
record component.Methods in net.minecraft.world.level.levelgen.structure with parameters of type HolderModifier and TypeMethodDescriptionMethod parameters in net.minecraft.world.level.levelgen.structure with type arguments of type HolderModifier and TypeMethodDescriptionStructure.generate
(RegistryAccess pRegistryAccess, ChunkGenerator pChunkGenerator, BiomeSource pBiomeSource, RandomState pRandomState, StructureTemplateManager pStructureTemplateManager, long pSeed, ChunkPos pChunkPos, int pReferences, LevelHeightAccessor pHeightAccessor, Predicate<Holder<Biome>> pValidBiome) Constructors in net.minecraft.world.level.levelgen.structure with parameters of type HolderModifierConstructorDescriptionStructureSelectionEntry
(Holder<Structure> structure, int weight) Creates an instance of aStructureSelectionEntry
record class.StructureSet
(Holder<Structure> p_210007_, StructurePlacement p_210008_) Constructor parameters in net.minecraft.world.level.levelgen.structure with type arguments of type HolderModifierConstructorDescriptionGenerationContext
(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. -
Uses of Holder in net.minecraft.world.level.levelgen.structure.pieces
Fields in net.minecraft.world.level.levelgen.structure.pieces with type parameters of type HolderModifier and TypeFieldDescriptionPieceGeneratorSupplier.Context.validBiome
The field for thevalidBiome
record component.Methods in net.minecraft.world.level.levelgen.structure.pieces that return types with arguments of type HolderModifier and TypeMethodDescriptionPieceGeneratorSupplier.Context.validBiome()
Returns the value of thevalidBiome
record component.Constructor parameters in net.minecraft.world.level.levelgen.structure.pieces with type arguments of type HolderModifierConstructorDescriptionContext
(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. -
Uses of Holder in net.minecraft.world.level.levelgen.structure.placement
Fields in net.minecraft.world.level.levelgen.structure.placement declared as HolderModifier and TypeFieldDescriptionprivate final Holder
<StructureSet> StructurePlacement.ExclusionZone.otherSet
Deprecated.The field for theotherSet
record component.Methods in net.minecraft.world.level.levelgen.structure.placement that return HolderModifier and TypeMethodDescriptionStructurePlacement.ExclusionZone.otherSet()
Deprecated.Returns the value of theotherSet
record component.Constructors in net.minecraft.world.level.levelgen.structure.placement with parameters of type HolderModifierConstructorDescriptionExclusionZone
(Holder<StructureSet> otherSet, int chunkCount) Deprecated.Creates an instance of aExclusionZone
record class. -
Uses of Holder in net.minecraft.world.level.levelgen.structure.pools
Fields in net.minecraft.world.level.levelgen.structure.pools declared as HolderModifier and TypeFieldDescriptionprivate static final Holder
<StructureProcessorList> StructurePoolElement.EMPTY
private final Holder
<StructureTemplatePool> StructureTemplatePool.fallback
private final Holder
<PlacedFeature> FeaturePoolElement.feature
protected final Holder
<StructureProcessorList> SinglePoolElement.processors
Fields in net.minecraft.world.level.levelgen.structure.pools with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<StructureTemplatePool>> StructureTemplatePool.CODEC
private static final org.apache.commons.lang3.mutable.MutableObject
<com.mojang.serialization.Codec<Holder<StructureTemplatePool>>> StructureTemplatePool.CODEC_REFERENCE
Methods in net.minecraft.world.level.levelgen.structure.pools that return HolderMethods in net.minecraft.world.level.levelgen.structure.pools that return types with arguments of type HolderModifier and TypeMethodDescriptionprotected static <E extends SinglePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E, Holder<StructureProcessorList>> SinglePoolElement.processorsCodec()
Methods in net.minecraft.world.level.levelgen.structure.pools with parameters of type HolderModifier and TypeMethodDescriptionstatic Optional
<Structure.GenerationStub> JigsawPlacement.addPieces
(Structure.GenerationContext pContext, Holder<StructureTemplatePool> pStartPool, Optional<ResourceLocation> pStartJigsawName, int pMaxDepth, BlockPos pPos, boolean pUseExpansionHack, Optional<Heightmap.Types> pProjectStartToHeightmap, int pMaxDistanceFromCenter, PoolAliasLookup pAliasLookup, DimensionPadding pDimensionPadding, LiquidSettings pLiquidSettings) StructurePoolElement.feature
(Holder<PlacedFeature> pFeature) static boolean
JigsawPlacement.generateJigsaw
(ServerLevel pLevel, Holder<StructureTemplatePool> pStartPool, ResourceLocation pStartJigsawName, int pMaxDepth, BlockPos pPos, boolean pKeepJigsaws) StructurePoolElement.legacy
(String pId, Holder<StructureProcessorList> pProcessors) StructurePoolElement.single
(String pId, Holder<StructureProcessorList> pProcessors) StructurePoolElement.single
(String pId, Holder<StructureProcessorList> pProcessors, LiquidSettings pLiquidSettings) Constructors in net.minecraft.world.level.levelgen.structure.pools with parameters of type HolderModifierConstructorDescriptionprotected
FeaturePoolElement
(Holder<PlacedFeature> p_210209_, StructureTemplatePool.Projection p_210210_) protected
LegacySinglePoolElement
(com.mojang.datafixers.util.Either<ResourceLocation, StructureTemplate> p_210348_, Holder<StructureProcessorList> p_210349_, StructureTemplatePool.Projection p_210350_, Optional<LiquidSettings> p_352209_) protected
SinglePoolElement
(com.mojang.datafixers.util.Either<ResourceLocation, StructureTemplate> p_210415_, Holder<StructureProcessorList> p_210416_, StructureTemplatePool.Projection p_210417_, Optional<LiquidSettings> p_352236_) StructureTemplatePool
(Holder<StructureTemplatePool> pFallback, List<com.mojang.datafixers.util.Pair<Function<StructureTemplatePool.Projection, ? extends StructurePoolElement>, Integer>> pRawTemplateFactories, StructureTemplatePool.Projection pProjection) StructureTemplatePool
(Holder<StructureTemplatePool> p_255747_, List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>> p_255919_) -
Uses of Holder in net.minecraft.world.level.levelgen.structure.pools.alias
Methods in net.minecraft.world.level.levelgen.structure.pools.alias with parameters of type HolderModifier and TypeMethodDescriptionstatic void
PoolAliasBindings.registerTargetsAsPools
(BootstrapContext<StructureTemplatePool> pContext, Holder<StructureTemplatePool> pPool, List<PoolAliasBinding> pPoolAliasBindings) -
Uses of Holder in net.minecraft.world.level.levelgen.structure.structures
Fields in net.minecraft.world.level.levelgen.structure.structures declared as HolderModifier and TypeFieldDescriptionprivate final Holder
<StructureTemplatePool> JigsawStructure.startPool
Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type HolderModifier and TypeMethodDescriptionprivate static boolean
Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type HolderModifierConstructorDescriptionJigsawStructure
(Structure.StructureSettings pSettings, Holder<StructureTemplatePool> pStartPool, int pMaxDepth, HeightProvider pStartHeight, boolean pUseExpansionHack) JigsawStructure
(Structure.StructureSettings pSettings, Holder<StructureTemplatePool> pStartPool, int pMaxDepth, HeightProvider pStartHeight, boolean pUseExpansionHack, Heightmap.Types pProjectStartToHeightmap) JigsawStructure
(Structure.StructureSettings p_227627_, Holder<StructureTemplatePool> p_227628_, Optional<ResourceLocation> p_227629_, int p_227630_, HeightProvider p_227631_, boolean p_227632_, Optional<Heightmap.Types> p_227633_, int p_227634_, List<PoolAliasBinding> p_307354_, DimensionPadding p_348651_, LiquidSettings p_352256_) -
Uses of Holder in net.minecraft.world.level.levelgen.structure.templatesystem
Fields in net.minecraft.world.level.levelgen.structure.templatesystem with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<StructureProcessorList>> StructureProcessorType.LIST_CODEC
-
Uses of Holder in net.minecraft.world.level.levelgen.synth
Fields in net.minecraft.world.level.levelgen.synth with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<NormalNoise.NoiseParameters>> NormalNoise.NoiseParameters.CODEC
-
Uses of Holder in net.minecraft.world.level.material
Methods in net.minecraft.world.level.material that return Holder -
Uses of Holder in net.minecraft.world.level.saveddata.maps
Fields in net.minecraft.world.level.saveddata.maps declared as HolderModifier and TypeFieldDescriptionstatic final Holder
<MapDecorationType> MapDecorationTypes.BLACK_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.BLUE_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.BLUE_MARKER
static final Holder
<MapDecorationType> MapDecorationTypes.BROWN_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.CYAN_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.DESERT_VILLAGE
static final Holder
<MapDecorationType> MapDecorationTypes.FRAME
static final Holder
<MapDecorationType> MapDecorationTypes.GRAY_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.GREEN_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.JUNGLE_TEMPLE
static final Holder
<MapDecorationType> MapDecorationTypes.LIGHT_BLUE_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.LIGHT_GRAY_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.LIME_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.MAGENTA_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.OCEAN_MONUMENT
static final Holder
<MapDecorationType> MapDecorationTypes.ORANGE_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.PINK_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.PLAINS_VILLAGE
static final Holder
<MapDecorationType> MapDecorationTypes.PLAYER
static final Holder
<MapDecorationType> MapDecorationTypes.PLAYER_OFF_LIMITS
static final Holder
<MapDecorationType> MapDecorationTypes.PLAYER_OFF_MAP
static final Holder
<MapDecorationType> MapDecorationTypes.PURPLE_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.RED_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.RED_MARKER
static final Holder
<MapDecorationType> MapDecorationTypes.RED_X
static final Holder
<MapDecorationType> MapDecorationTypes.SAVANNA_VILLAGE
static final Holder
<MapDecorationType> MapDecorationTypes.SNOWY_VILLAGE
static final Holder
<MapDecorationType> MapDecorationTypes.SWAMP_HUT
static final Holder
<MapDecorationType> MapDecorationTypes.TAIGA_VILLAGE
static final Holder
<MapDecorationType> MapDecorationTypes.TARGET_POINT
static final Holder
<MapDecorationType> MapDecorationTypes.TARGET_X
static final Holder
<MapDecorationType> MapDecorationTypes.TRIAL_CHAMBERS
private final Holder
<MapDecorationType> MapDecoration.type
The field for thetype
record component.static final Holder
<MapDecorationType> MapDecorationTypes.WHITE_BANNER
static final Holder
<MapDecorationType> MapDecorationTypes.WOODLAND_MANSION
static final Holder
<MapDecorationType> MapDecorationTypes.YELLOW_BANNER
Fields in net.minecraft.world.level.saveddata.maps with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<MapDecorationType>> MapDecorationType.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<MapDecorationType>> MapDecorationType.STREAM_CODEC
Methods in net.minecraft.world.level.saveddata.maps that return HolderModifier and TypeMethodDescriptionstatic Holder
<MapDecorationType> MapDecorationTypes.bootstrap
(Registry<MapDecorationType> pRegistry) MapBanner.getDecoration()
private static Holder
<MapDecorationType> MapDecorationTypes.register
(String pName, String pAssetId, boolean pShowOnItemFrame, boolean pTrackCount) private static Holder
<MapDecorationType> MapDecorationTypes.register
(String pName, String pAssetId, boolean pShowOnItemFrame, int pMapColor, boolean pExplorationMapElement, boolean pTrackCount) MapDecoration.type()
Returns the value of thetype
record component.Methods in net.minecraft.world.level.saveddata.maps with parameters of type HolderModifier and TypeMethodDescriptionvoid
MapItemSavedData.addDecoration
(Holder<MapDecorationType> pDecorationType, LevelAccessor pLevel, String pId, double pX, double pZ, double pYRot, Component pDisplayName) static void
MapItemSavedData.addTargetDecoration
(ItemStack pStack, BlockPos pPos, String pType, Holder<MapDecorationType> pMapDecorationType) Constructors in net.minecraft.world.level.saveddata.maps with parameters of type HolderModifierConstructorDescriptionMapDecoration
(Holder<MapDecorationType> type, byte x, byte y, byte rot, Optional<Component> name) Creates an instance of aMapDecoration
record class. -
Uses of Holder in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot with type parameters of type Holder -
Uses of Holder in net.minecraft.world.level.storage.loot.entries
Fields in net.minecraft.world.level.storage.loot.entries declared as HolderConstructors in net.minecraft.world.level.storage.loot.entries with parameters of type HolderModifierConstructorDescriptionprivate
LootItem
(Holder<Item> p_298423_, int p_79567_, int p_79568_, List<LootItemCondition> p_299249_, List<LootItemFunction> p_299128_) -
Uses of Holder in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as HolderModifier and TypeFieldDescriptionSetAttributesFunction.Modifier.attribute
The field for theattribute
record component.SetAttributesFunction.ModifierBuilder.attribute
CopyBlockState.block
CopyBlockState.Builder.block
static final Holder
<MapDecorationType> ExplorationMapFunction.DEFAULT_DECORATION
SetStewEffectFunction.EffectEntry.effect
The field for theeffect
record component.private final Holder
<Enchantment> ApplyBonusCount.enchantment
private final Holder
<Enchantment> EnchantedCountIncreaseFunction.Builder.enchantment
private final Holder
<Enchantment> EnchantedCountIncreaseFunction.enchantment
SetItemFunction.item
private Holder
<MapDecorationType> ExplorationMapFunction.Builder.mapDecoration
private final Holder
<MapDecorationType> ExplorationMapFunction.mapDecoration
SetPotionFunction.potion
private final Holder
<BlockEntityType<?>> SetContainerLootTable.type
Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<LootItemFunction>> LootItemFunctions.CODEC
private final com.google.common.collect.ImmutableMap.Builder
<Holder<Enchantment>, NumberProvider> SetEnchantmentsFunction.Builder.enchantments
private final Map
<Holder<Enchantment>, NumberProvider> SetEnchantmentsFunction.enchantments
Methods in net.minecraft.world.level.storage.loot.functions that return HolderModifier and TypeMethodDescriptionSetAttributesFunction.Modifier.attribute()
Returns the value of theattribute
record component.SetStewEffectFunction.EffectEntry.effect()
Returns the value of theeffect
record component.Methods in net.minecraft.world.level.storage.loot.functions with parameters of type HolderModifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder
<?> ApplyBonusCount.addBonusBinomialDistributionCount
(Holder<Enchantment> pEnchantment, float pProbability, int pExtraRounds) static LootItemConditionalFunction.Builder
<?> ApplyBonusCount.addOreBonusCount
(Holder<Enchantment> pEnchantment) SetBannerPatternFunction.Builder.addPattern
(Holder<BannerPattern> pPattern, DyeColor pColor) static LootItemConditionalFunction.Builder
<?> ApplyBonusCount.addUniformBonusCount
(Holder<Enchantment> pEnchantment) static LootItemConditionalFunction.Builder
<?> ApplyBonusCount.addUniformBonusCount
(Holder<Enchantment> pEnchantment, int pBonusMultiplier) private static ItemStack
EnchantRandomlyFunction.enchantItem
(ItemStack pStack, Holder<Enchantment> pEnchantment, RandomSource pRandom) SetAttributesFunction.modifier
(ResourceLocation pId, Holder<Attribute> pAttribute, AttributeModifier.Operation pOperation, NumberProvider pAmount) ExplorationMapFunction.Builder.setMapDecoration
(Holder<MapDecorationType> pMapDecoration) static LootItemConditionalFunction.Builder
<?> SetStewEffectFunction.Builder.withEffect
(Holder<MobEffect> pEffect, NumberProvider pAmplifier) EnchantRandomlyFunction.Builder.withEnchantment
(Holder<Enchantment> pEnchantment) SetEnchantmentsFunction.Builder.withEnchantment
(Holder<Enchantment> pEnchantment, NumberProvider pLevel) Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type HolderModifierConstructorDescriptionprivate
ApplyBonusCount
(List<LootItemCondition> p_298532_, Holder<Enchantment> p_298797_, ApplyBonusCount.Formula p_79905_) Builder
(Holder<Enchantment> pEnchantment, NumberProvider pCount) private
CopyBlockState
(List<LootItemCondition> p_298279_, Holder<Block> p_299047_, List<String> p_298632_) (package private)
CopyBlockState
(List<LootItemCondition> pConditions, Holder<Block> pBlock, Set<Property<?>> pProperties) (package private)
EffectEntry
(Holder<MobEffect> effect, NumberProvider duration) Creates an instance of aEffectEntry
record class.(package private)
EnchantedCountIncreaseFunction
(List<LootItemCondition> p_344944_, Holder<Enchantment> p_345194_, NumberProvider p_344806_, int p_345432_) (package private)
ExplorationMapFunction
(List<LootItemCondition> p_298451_, TagKey<Structure> p_210653_, Holder<MapDecorationType> p_336106_, byte p_210655_, int p_210656_, boolean p_210657_) (package private)
Modifier
(ResourceLocation id, Holder<Attribute> attribute, AttributeModifier.Operation operation, NumberProvider amount, List<EquipmentSlotGroup> slots) Creates an instance of aModifier
record class.ModifierBuilder
(ResourceLocation pId, Holder<Attribute> pAttribute, AttributeModifier.Operation pOperation, NumberProvider pAmount) private
SetContainerLootTable
(List<LootItemCondition> p_298290_, ResourceKey<LootTable> p_335525_, long p_193047_, Holder<BlockEntityType<?>> p_298416_) SetItemFunction
(List<LootItemCondition> p_340855_, Holder<Item> p_341008_) private
SetPotionFunction
(List<LootItemCondition> p_299010_, Holder<Potion> p_298587_) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type HolderModifierConstructorDescription(package private)
SetEnchantmentsFunction
(List<LootItemCondition> p_299192_, Map<Holder<Enchantment>, NumberProvider> p_165338_, boolean p_165339_) -
Uses of Holder in net.minecraft.world.level.storage.loot.predicates
Fields in net.minecraft.world.level.storage.loot.predicates declared as HolderModifier and TypeFieldDescriptionLootItemBlockStatePropertyCondition.block
The field for theblock
record component.LootItemBlockStatePropertyCondition.Builder.block
private final Holder
<Enchantment> BonusLevelTableCondition.enchantment
The field for theenchantment
record component.private final Holder
<Enchantment> LootItemRandomChanceWithEnchantedBonusCondition.enchantment
The field for theenchantment
record component.Fields in net.minecraft.world.level.storage.loot.predicates with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<LootItemCondition>> LootItemCondition.CODEC
Methods in net.minecraft.world.level.storage.loot.predicates that return HolderModifier and TypeMethodDescriptionLootItemBlockStatePropertyCondition.block()
Returns the value of theblock
record component.BonusLevelTableCondition.enchantment()
Returns the value of theenchantment
record component.LootItemRandomChanceWithEnchantedBonusCondition.enchantment()
Returns the value of theenchantment
record component.Methods in net.minecraft.world.level.storage.loot.predicates with parameters of type HolderModifier and TypeMethodDescriptionstatic LootItemCondition.Builder
BonusLevelTableCondition.bonusLevelFlatChance
(Holder<Enchantment> pEnchantment, float... pValues) Constructors in net.minecraft.world.level.storage.loot.predicates with parameters of type HolderModifierConstructorDescriptionBonusLevelTableCondition
(Holder<Enchantment> enchantment, List<Float> values) Creates an instance of aBonusLevelTableCondition
record class.LootItemBlockStatePropertyCondition
(Holder<Block> block, Optional<StatePropertiesPredicate> properties) Creates an instance of aLootItemBlockStatePropertyCondition
record class.LootItemRandomChanceWithEnchantedBonusCondition
(float unenchantedChance, LevelBasedValue enchantedChance, Holder<Enchantment> enchantment) Creates an instance of aLootItemRandomChanceWithEnchantedBonusCondition
record class. -
Uses of Holder in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type HolderModifier and TypeMethodDescriptionfinal void
RegisterClientExtensionsEvent.registerBlock
(IClientBlockExtensions extensions, Holder<Block>... blocks) Register the givenIClientBlockExtensions
for the givenBlock
sfinal void
RegisterClientExtensionsEvent.registerFluidType
(IClientFluidTypeExtensions extensions, Holder<FluidType>... fluidTypes) Register the givenIClientFluidTypeExtensions
for the givenFluidType
sfinal void
RegisterClientExtensionsEvent.registerItem
(IClientItemExtensions extensions, Holder<Item>... items) Register the givenIClientItemExtensions
for the givenItem
sfinal void
RegisterClientExtensionsEvent.registerMobEffect
(IClientMobEffectExtensions extensions, Holder<MobEffect>... mobEffects) Register the givenIClientMobEffectExtensions
for the givenMobEffect
s -
Uses of Holder in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common declared as HolderModifier and TypeFieldDescriptionstatic final Holder
<HolderSetType> NeoForgeMod.AND_HOLDER_SET
Stock holder set type that represents an intersection of other holdersets.static final Holder
<HolderSetType> NeoForgeMod.ANY_HOLDER_SET
Stock holder set type that represents any/all values in a registry.NeoForgeMod.CREATIVE_FLIGHT
This attribute controls if the player may use creative flight when not in creative mode.NeoForgeMod.EMPTY_TYPE
private static final Holder
<ArgumentTypeInfo<?, ?>> NeoForgeMod.ENUM_COMMAND_ARGUMENT_TYPE
NeoForgeMod.LAVA_TYPE
NeoForgeMod.NAMETAG_DISTANCE
static final Holder
<HolderSetType> NeoForgeMod.NOT_HOLDER_SET
Stock holder set type that represents all values in a registry except those in another given set.static final Holder
<HolderSetType> NeoForgeMod.OR_HOLDER_SET
Stock holder set type that represents a union of other holdersets.NeoForgeMod.SWIM_SPEED
NeoForgeMod.WATER_TYPE
Methods in net.neoforged.neoforge.common with parameters of type HolderModifier and TypeMethodDescriptionstatic boolean
CommonHooks.onVanillaGameEvent
(Level level, Holder<GameEvent> vanillaEvent, Vec3 pos, GameEvent.Context context) -
Uses of Holder in net.neoforged.neoforge.common.conditions
Fields in net.neoforged.neoforge.common.conditions with type parameters of type HolderModifier and TypeFieldDescriptionprivate @Nullable Map
<ResourceKey<?>, Map<ResourceLocation, Collection<Holder<?>>>> ConditionContext.loadedTags
Methods in net.neoforged.neoforge.common.conditions that return types with arguments of type HolderModifier 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.default <T> Collection
<Holder<T>> Return the requested tag if available, or an empty tag otherwise. -
Uses of Holder in net.neoforged.neoforge.common.crafting
Methods in net.neoforged.neoforge.common.crafting with parameters of type HolderModifier and TypeMethodDescriptionstatic Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentMap map, Holder<Item>... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentPredicate predicate, Holder<Item>... items) Creates a new ingredient matching any item from the list, containing the given components -
Uses of Holder in net.neoforged.neoforge.common.data
Methods in net.neoforged.neoforge.common.data with parameters of type HolderModifier and TypeMethodDescriptionDataMapProvider.Builder.add
(Holder<R> object, T value, boolean replace, ICondition... conditions) -
Uses of Holder in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return HolderModifier and TypeMethodDescriptionIHolderExtension.getDelegate()
Returns the holder that this holder wraps.default <T> Holder
<T> IHolderLookupProviderExtension.holderOrThrow
(ResourceKey<T> key) Shortcut method to get a holder from a ResourceKey.default <T> Holder
<T> ILevelReaderExtension.holderOrThrow
(ResourceKey<T> key) Shortcut method to get a holder from a ResourceKey.Methods in net.neoforged.neoforge.common.extensions with parameters of type HolderModifier and TypeMethodDescriptiondefault int
IItemExtension.getEnchantmentLevel
(ItemStack stack, Holder<Enchantment> enchantment) Gets the level of the enchantment currently present on the stack.default int
IItemStackExtension.getEnchantmentLevel
(Holder<Enchantment> enchantment) Gets the gameplay level of the target enchantment on this stack.default boolean
IItemExtension.isPrimaryItemFor
(ItemStack stack, Holder<Enchantment> enchantment) Checks if an item should be treated as a primary item for a given enchantment.default boolean
IItemStackExtension.isPrimaryItemFor
(Holder<Enchantment> enchantment) default boolean
IItemExtension.supportsEnchantment
(ItemStack stack, Holder<Enchantment> enchantment) Checks if the provided enchantment is applicable to the passed item stack.default boolean
IItemStackExtension.supportsEnchantment
(Holder<Enchantment> enchantment) -
Uses of Holder in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util that return types with arguments of type HolderModifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> AttributeUtil.getSortedModifiers
(ItemStack stack, EquipmentSlotGroup slot) Returns a sorted, mutableMultimap
containing all the attribute modifiers on an item stack for the given group.static com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> AttributeUtil.sortedMap()
Creates a sortedTreeMultimap
used to ensure a stable iteration order of item attribute modifiers.Method parameters in net.neoforged.neoforge.common.util with type arguments of type HolderModifier and TypeMethodDescriptionstatic void
AttributeUtil.addPotionTooltip
(List<com.mojang.datafixers.util.Pair<Holder<Attribute>, AttributeModifier>> list, Consumer<Component> tooltips) Adds tooltip lines for the attribute modifiers contained in aPotionContents
.static void
AttributeUtil.applyTextFor
(ItemStack stack, Consumer<Component> tooltip, com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> modifierMap, AttributeTooltipContext ctx) Applies the text for the provided attribute modifiers to the tooltip for a given item stack. -
Uses of Holder in net.neoforged.neoforge.common.world
Fields in net.neoforged.neoforge.common.world with type parameters of type HolderModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<BiomeModifier>> BiomeModifier.REFERENCE_CODEC
Codec for referring to biome modifiers by id in other datapack registry files.static final com.mojang.serialization.Codec
<Holder<StructureModifier>> StructureModifier.REFERENCE_CODEC
Codec for referring to structure modifiers by id in other datapack registry files.Methods in net.neoforged.neoforge.common.world that return types with arguments of type HolderModifier and TypeMethodDescriptionBiomeSpecialEffectsBuilder.getAmbientLoopSound()
BiomeGenerationSettingsBuilder.getCarvers
(GenerationStep.Carving stage) BiomeGenerationSettingsBuilder.getFeatures
(GenerationStep.Decoration stage) Methods in net.neoforged.neoforge.common.world with parameters of type HolderModifier and TypeMethodDescriptionboolean
ModifiableBiomeInfo.applyBiomeModifiers
(Holder<Biome> biome, List<BiomeModifier> biomeModifiers, RegistryAccess registryAccess) Internal NeoForge method.void
ModifiableStructureInfo.applyStructureModifiers
(Holder<Structure> structure, List<StructureModifier> structureModifiers) Internal NeoForge method.void
BiomeModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) Modifies the information via the provided biome builder.void
BiomeModifiers.AddCarversBiomeModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) void
BiomeModifiers.AddFeaturesBiomeModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) void
BiomeModifiers.AddSpawnCostsBiomeModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) void
BiomeModifiers.AddSpawnsBiomeModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) void
BiomeModifiers.RemoveCarversBiomeModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) void
BiomeModifiers.RemoveFeaturesBiomeModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) void
BiomeModifiers.RemoveSpawnCostsBiomeModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) void
BiomeModifiers.RemoveSpawnsBiomeModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) void
NoneBiomeModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) void
NoneStructureModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) void
StructureModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) Modifies the information via the provided structure builder.void
StructureModifiers.AddSpawnsStructureModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) void
StructureModifiers.ClearSpawnsStructureModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) void
StructureModifiers.RemoveSpawnsStructureModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) -
Uses of Holder in net.neoforged.neoforge.debug.registry
Methods in net.neoforged.neoforge.debug.registry with parameters of type HolderModifier and TypeMethodDescriptionvoid
BiomeModifierSyncTest.TestModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) -
Uses of Holder in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as HolderModifier and TypeFieldDescriptionItemAttributeModifierEvent.ItemAttributeModifiersBuilder.Key.attr
The field for theattr
record component.private Holder
<SoundEvent> PlayLevelSoundEvent.sound
VanillaGameEvent.vanillaEvent
Methods in net.neoforged.neoforge.event that return HolderModifier and TypeMethodDescriptionItemAttributeModifierEvent.ItemAttributeModifiersBuilder.Key.attr()
Returns the value of theattr
record component.@Nullable Holder
<SoundEvent> PlayLevelSoundEvent.getSound()
Returns the sound event to be played.VanillaGameEvent.getVanillaEvent()
Methods in net.neoforged.neoforge.event with parameters of type HolderModifier and TypeMethodDescriptionboolean
ItemAttributeModifierEvent.addModifier
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Adds a new attribute modifier to the given stack.(package private) boolean
ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.addModifier
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Attempts to add a new modifier, refusing if one is already present with the same id.static BlockGrowFeatureEvent
EventHooks.fireBlockGrowFeature
(LevelAccessor level, RandomSource rand, BlockPos pos, @Nullable Holder<ConfiguredFeature<?, ?>> holder) Fires theBlockGrowFeatureEvent
and returns the event object.static int
EventHooks.getEnchantmentLevelSpecific
(int level, ItemStack stack, Holder<Enchantment> ench) FiresGetEnchantmentLevelEvent
and for a single enchantment, returning the (possibly event-modified) level.static boolean
EventHooks.onEffectRemoved
(LivingEntity entity, Holder<MobEffect> effect, @Nullable EffectCure cure) static PlayLevelSoundEvent.AtEntity
EventHooks.onPlaySoundAtEntity
(Entity entity, Holder<SoundEvent> name, SoundSource category, float volume, float pitch) EventHooks.onPlaySoundAtPosition
(Level level, double x, double y, double z, Holder<SoundEvent> name, SoundSource category, float volume, float pitch) boolean
ItemAttributeModifierEvent.removeAllModifiersFor
(Holder<Attribute> attribute) Removes all modifiers for the given attribute.(package private) boolean
ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.removeModifier
(Holder<Attribute> attribute, ResourceLocation id) Removes a modifier for the target attribute with the given id.boolean
ItemAttributeModifierEvent.removeModifier
(Holder<Attribute> attribute, ResourceLocation id) Removes an attribute modifier for the target attribute by id(package private) ItemAttributeModifiers.Entry
ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.replaceModifier
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Adds a modifier to the list, replacing any existing modifiers with the same id.void
ItemAttributeModifierEvent.replaceModifier
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Adds a new attribute modifier to the given stack, optionally replacing any existing modifiers with the same id.void
PlayLevelSoundEvent.setSound
(@Nullable Holder<SoundEvent> sound) Sets the sound event to be played.Constructors in net.neoforged.neoforge.event with parameters of type HolderModifierConstructorDescriptionAtEntity
(Entity entity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) AtPosition
(Level level, Vec3 position, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) private
Key
(Holder<Attribute> attr, ResourceLocation id) Creates an instance of aKey
record class.PlayLevelSoundEvent
(Level level, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) VanillaGameEvent
(Level level, Holder<GameEvent> vanillaEvent, Vec3 position, GameEvent.Context context) -
Uses of Holder in net.neoforged.neoforge.event.enchanting
Fields in net.neoforged.neoforge.event.enchanting declared as HolderModifier and TypeFieldDescriptionprotected final @Nullable Holder
<Enchantment> GetEnchantmentLevelEvent.targetEnchant
Methods in net.neoforged.neoforge.event.enchanting that return HolderModifier and TypeMethodDescription@Nullable Holder
<Enchantment> GetEnchantmentLevelEvent.getTargetEnchant()
This method returns the specific enchantment being queried frominvalid reference
IItemStackExtension#getEnchantmentLevel(Enchantment)
Methods in net.neoforged.neoforge.event.enchanting with parameters of type HolderModifier and TypeMethodDescriptionboolean
GetEnchantmentLevelEvent.isTargetting
(Holder<Enchantment> ench) Helper method aroundGetEnchantmentLevelEvent.getTargetEnchant()
that checks if the target is the specified enchantment, or if the target is null.Constructors in net.neoforged.neoforge.event.enchanting with parameters of type HolderModifierConstructorDescriptionGetEnchantmentLevelEvent
(ItemStack stack, ItemEnchantments.Mutable enchantments, @Nullable Holder<Enchantment> targetEnchant, HolderLookup.RegistryLookup<Enchantment> lookup) -
Uses of Holder in net.neoforged.neoforge.event.entity
Methods in net.neoforged.neoforge.event.entity with parameters of type HolderModifier and TypeMethodDescriptionvoid
EntityAttributeModificationEvent.add
(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute) void
EntityAttributeModificationEvent.add
(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute, double value) boolean
EntityAttributeModificationEvent.has
(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute) -
Uses of Holder in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as HolderMethods in net.neoforged.neoforge.event.entity.living that return HolderConstructors in net.neoforged.neoforge.event.entity.living with parameters of type HolderModifierConstructorDescriptionRemove
(LivingEntity living, Holder<MobEffect> effect, @Nullable EffectCure cure) -
Uses of Holder in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as HolderModifier and TypeFieldDescriptionprivate @Nullable Holder
<ConfiguredFeature<?, ?>> BlockGrowFeatureEvent.feature
Methods in net.neoforged.neoforge.event.level that return HolderModifier and TypeMethodDescription@Nullable Holder
<ConfiguredFeature<?, ?>> BlockGrowFeatureEvent.getFeature()
Returns the holder of the feature which will be placed, possibly null.Methods in net.neoforged.neoforge.event.level with parameters of type HolderModifier and TypeMethodDescriptionvoid
BlockGrowFeatureEvent.setFeature
(@Nullable Holder<ConfiguredFeature<?, ?>> feature) Changes the feature that will be grown.Constructors in net.neoforged.neoforge.event.level with parameters of type HolderModifierConstructorDescriptionBlockGrowFeatureEvent
(LevelAccessor level, RandomSource rand, BlockPos pos, @Nullable Holder<ConfiguredFeature<?, ?>> feature) -
Uses of Holder in net.neoforged.neoforge.fluids
Fields in net.neoforged.neoforge.fluids with type parameters of type HolderMethods in net.neoforged.neoforge.fluids that return HolderModifier and TypeMethodDescriptionFluidStack.getFluidHolder()
SimpleFluidContent.getFluidHolder()
Methods in net.neoforged.neoforge.fluids with parameters of type HolderModifier and TypeMethodDescriptionboolean
boolean
Method parameters in net.neoforged.neoforge.fluids with type arguments of type HolderModifier and TypeMethodDescriptionboolean
boolean
Constructors in net.neoforged.neoforge.fluids with parameters of type HolderModifierConstructorDescriptionFluidStack
(Holder<Fluid> fluid, int amount) FluidStack
(Holder<Fluid> fluid, int amount, DataComponentPatch patch) -
Uses of Holder in net.neoforged.neoforge.fluids.crafting
Fields in net.neoforged.neoforge.fluids.crafting declared as HolderMethods in net.neoforged.neoforge.fluids.crafting that return HolderMethods in net.neoforged.neoforge.fluids.crafting with parameters of type HolderModifier and TypeMethodDescriptionstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentMap map, Holder<Fluid>... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentPredicate predicate, Holder<Fluid>... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
Constructors in net.neoforged.neoforge.fluids.crafting with parameters of type Holder -
Uses of Holder in net.neoforged.neoforge.oldtest.block
Fields in net.neoforged.neoforge.oldtest.block declared as Holder -
Uses of Holder in net.neoforged.neoforge.oldtest.client
Fields in net.neoforged.neoforge.oldtest.client declared as HolderModifier and TypeFieldDescriptionAmbientOcclusionElementsTest.AO_BLOCK_NO_SHADE
AmbientOcclusionElementsTest.AO_BLOCK_SHADE
AmbientOcclusionElementsTest.NO_AO_BLOCK_NO_SHADE
AmbientOcclusionElementsTest.NO_AO_BLOCK_SHADE
CustomSpriteSourceTest.TEST_ITEM
Constructors in net.neoforged.neoforge.oldtest.client with parameters of type HolderModifierConstructorDescriptionEndermanArmorItem
(Holder<ArmorMaterial> material, ArmorItem.Type slot, Item.Properties props) -
Uses of Holder in net.neoforged.neoforge.oldtest.fluid
Fields in net.neoforged.neoforge.oldtest.fluid declared as Holder -
Uses of Holder in net.neoforged.neoforge.oldtest.world
Fields in net.neoforged.neoforge.oldtest.world declared as HolderMethods in net.neoforged.neoforge.oldtest.world with parameters of type HolderModifier and TypeMethodDescriptionvoid
BiomeModifierTest.TestModifier.modify
(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) void
StructureModifierTest.TestModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) -
Uses of Holder in net.neoforged.neoforge.registries
Classes in net.neoforged.neoforge.registries that implement HolderModifier and TypeClassDescriptionclass
DeferredBlock<T extends Block>
class
DeferredHolder<R,
T extends R> A Deferred Holder is aHolder
that is constructed with only a ResourceKey.class
DeferredItem<T extends Item>
Fields in net.neoforged.neoforge.registries declared as HolderFields in net.neoforged.neoforge.registries with type parameters of type HolderModifier and TypeFieldDescription(package private) static final Map
<BlockState, Holder<PoiType>> NeoForgeRegistryCallbacks.PoiTypeCallbacks.BLOCKSTATE_TO_POI_TYPE_MAP
Methods in net.neoforged.neoforge.registries that return HolderMethods in net.neoforged.neoforge.registries that return types with arguments of type HolderModifier and TypeMethodDescriptionstatic Map
<BlockState, Holder<PoiType>> GameData.getBlockStatePointOfInterestTypeMap()
Methods in net.neoforged.neoforge.registries with parameters of type HolderModifier and TypeMethodDescriptionboolean
Deprecated.DeferredRegister.Items.registerSimpleBlockItem
(Holder<Block> block) Adds a new simpleBlockItem
for the givenBlock
to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.DeferredRegister.Items.registerSimpleBlockItem
(Holder<Block> block, Item.Properties properties) Adds a new simpleBlockItem
for the givenBlock
to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.Method parameters in net.neoforged.neoforge.registries with type arguments of type Holder -
Uses of Holder in net.neoforged.neoforge.registries.holdersets
Fields in net.neoforged.neoforge.registries.holdersets with type parameters of type HolderModifier and TypeFieldDescriptionCompositeHolderSet.list
NotHolderSet.list
CompositeHolderSet.set
Methods in net.neoforged.neoforge.registries.holdersets that return HolderModifier and TypeMethodDescriptionAnyHolderSet.get
(int i) CompositeHolderSet.get
(int i) NotHolderSet.get
(int i) Methods in net.neoforged.neoforge.registries.holdersets that return types with arguments of type HolderModifier and TypeMethodDescriptionAndHolderSet.createSet()
CompositeHolderSet.createSet()
Returns immutable Set of Holders given this composite holderset's component holdersets.OrHolderSet.createSet()
CompositeHolderSet.getList()
NotHolderSet.getList()
AnyHolderSet.getRandomElement
(RandomSource random) CompositeHolderSet.getRandomElement
(RandomSource rand) NotHolderSet.getRandomElement
(RandomSource random) CompositeHolderSet.getSet()
AnyHolderSet.iterator()
CompositeHolderSet.iterator()
NotHolderSet.iterator()
AnyHolderSet.stream()
CompositeHolderSet.stream()
NotHolderSet.stream()
AnyHolderSet.unwrap()
CompositeHolderSet.unwrap()
NotHolderSet.unwrap()
Methods in net.neoforged.neoforge.registries.holdersets with parameters of type HolderModifier and TypeMethodDescriptionboolean
boolean
boolean
Method parameters in net.neoforged.neoforge.registries.holdersets with type arguments of type HolderModifier and TypeMethodDescription<T> com.mojang.serialization.MapCodec
<? extends ICustomHolderSet<T>> AndHolderSet.Type.makeCodec
(ResourceKey<? extends Registry<T>> registryKey, com.mojang.serialization.Codec<Holder<T>> holderCodec, boolean forceList) <T> com.mojang.serialization.MapCodec
<? extends ICustomHolderSet<T>> AnyHolderSet.Type.makeCodec
(ResourceKey<? extends Registry<T>> registryKey, com.mojang.serialization.Codec<Holder<T>> holderCodec, boolean forceList) <T> com.mojang.serialization.MapCodec
<? extends ICustomHolderSet<T>> HolderSetType.makeCodec
(ResourceKey<? extends Registry<T>> registryKey, com.mojang.serialization.Codec<Holder<T>> holderCodec, boolean forceList) <T> com.mojang.serialization.MapCodec
<? extends ICustomHolderSet<T>> NotHolderSet.Type.makeCodec
(ResourceKey<? extends Registry<T>> registryKey, com.mojang.serialization.Codec<Holder<T>> holderCodec, boolean forceList) <T> com.mojang.serialization.MapCodec
<? extends ICustomHolderSet<T>> OrHolderSet.Type.makeCodec
(ResourceKey<? extends Registry<T>> registryKey, com.mojang.serialization.Codec<Holder<T>> holderCodec, boolean forceList) -
Uses of Holder in net.neoforged.testframework.gametest
Methods in net.neoforged.testframework.gametest with parameters of type HolderModifier and TypeMethodDescription<E extends LivingEntity>
voidExtendedGameTestHelper.assertMobEffectAbsent
(E entity, Holder<MobEffect> effect, String testName) <E extends LivingEntity>
voidExtendedGameTestHelper.assertMobEffectPresent
(E entity, Holder<MobEffect> effect, String testName) -
Uses of Holder in net.neoforged.testframework.registration
Classes in net.neoforged.testframework.registration that implement HolderModifier and TypeClassDescriptionclass
DeferredBlockBuilder<T extends Block>
class
DeferredEntityTypeBuilder<E extends Entity,
T extends EntityType<E>> class
DeferredItemBuilder<I extends Item>
Methods in net.neoforged.testframework.registration with parameters of type HolderModifier and TypeMethodDescriptionDeferredItems.registerSimpleBlockItem
(Holder<Block> block) DeferredItems.registerSimpleBlockItem
(Holder<Block> block, Item.Properties properties)
EnchantmentHelper.getTagEnchantmentLevel(Holder, ItemStack)
for NBT enchantments, orIItemStackExtension.getEnchantmentLevel(Holder)
for gameplay.