Uses of Interface
net.minecraft.world.item.enchantment.LevelBasedValue
Packages that use LevelBasedValue
Package
Description
-
Uses of LevelBasedValue in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type LevelBasedValueModifier and TypeFieldDescriptionstatic final Registry
<com.mojang.serialization.MapCodec<? extends LevelBasedValue>> BuiltInRegistries.ENCHANTMENT_LEVEL_BASED_VALUE_TYPE
static final ResourceKey
<Registry<com.mojang.serialization.MapCodec<? extends LevelBasedValue>>> Registries.ENCHANTMENT_LEVEL_BASED_VALUE_TYPE
-
Uses of LevelBasedValue in net.minecraft.world.item.enchantment
Classes in net.minecraft.world.item.enchantment that implement LevelBasedValueModifier and TypeClassDescriptionstatic final record
static final record
static final record
static final record
static final record
static final record
Fields in net.minecraft.world.item.enchantment declared as LevelBasedValueModifier and TypeFieldDescriptionprivate final LevelBasedValue
LevelBasedValue.Fraction.denominator
The field for thedenominator
record component.private final LevelBasedValue
LevelBasedValue.Lookup.fallback
The field for thefallback
record component.private final LevelBasedValue
LevelBasedValue.Fraction.numerator
The field for thenumerator
record component.private final LevelBasedValue
LevelBasedValue.Clamped.value
The field for thevalue
record component.Fields in net.minecraft.world.item.enchantment with type parameters of type LevelBasedValueModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<LevelBasedValue> LevelBasedValue.CODEC
static final com.mojang.serialization.Codec
<LevelBasedValue> LevelBasedValue.DISPATCH_CODEC
Methods in net.minecraft.world.item.enchantment that return LevelBasedValueModifier and TypeMethodDescriptionLevelBasedValue.Fraction.denominator()
Returns the value of thedenominator
record component.LevelBasedValue.Lookup.fallback()
Returns the value of thefallback
record component.LevelBasedValue.Fraction.numerator()
Returns the value of thenumerator
record component.LevelBasedValue.Clamped.value()
Returns the value of thevalue
record component.Methods in net.minecraft.world.item.enchantment that return types with arguments of type LevelBasedValueModifier and TypeMethodDescriptionstatic com.mojang.serialization.MapCodec
<? extends LevelBasedValue> LevelBasedValue.bootstrap
(Registry<com.mojang.serialization.MapCodec<? extends LevelBasedValue>> p_345955_) com.mojang.serialization.MapCodec
<? extends LevelBasedValue> LevelBasedValue.codec()
Methods in net.minecraft.world.item.enchantment with parameters of type LevelBasedValueModifier and TypeMethodDescriptionstatic LevelBasedValue.Lookup
LevelBasedValue.lookup
(List<Float> p_352164_, LevelBasedValue p_352467_) Method parameters in net.minecraft.world.item.enchantment with type arguments of type LevelBasedValueModifier and TypeMethodDescriptionstatic com.mojang.serialization.MapCodec
<? extends LevelBasedValue> LevelBasedValue.bootstrap
(Registry<com.mojang.serialization.MapCodec<? extends LevelBasedValue>> p_345955_) Constructors in net.minecraft.world.item.enchantment with parameters of type LevelBasedValueModifierConstructorDescriptionClamped
(LevelBasedValue value, float min, float max) Creates an instance of aClamped
record class.Fraction
(LevelBasedValue numerator, LevelBasedValue denominator) Creates an instance of aFraction
record class.Lookup
(List<Float> values, LevelBasedValue fallback) Creates an instance of aLookup
record class. -
Uses of LevelBasedValue in net.minecraft.world.item.enchantment.effects
Fields in net.minecraft.world.item.enchantment.effects declared as LevelBasedValueModifier and TypeFieldDescriptionprivate final LevelBasedValue
DamageItem.amount
The field for theamount
record component.private final LevelBasedValue
EnchantmentAttributeEffect.amount
The field for theamount
record component.private final LevelBasedValue
RemoveBinomial.chance
The field for thechance
record component.private final LevelBasedValue
Ignite.duration
The field for theduration
record component.private final LevelBasedValue
MultiplyValue.factor
The field for thefactor
record component.private final LevelBasedValue
ReplaceDisk.height
The field for theheight
record component.private final LevelBasedValue
ApplyMobEffect.maxAmplifier
The field for themaxAmplifier
record component.private final LevelBasedValue
DamageEntity.maxDamage
The field for themaxDamage
record component.private final LevelBasedValue
ApplyMobEffect.maxDuration
The field for themaxDuration
record component.private final LevelBasedValue
ApplyMobEffect.minAmplifier
The field for theminAmplifier
record component.private final LevelBasedValue
DamageEntity.minDamage
The field for theminDamage
record component.private final LevelBasedValue
ApplyMobEffect.minDuration
The field for theminDuration
record component.private final LevelBasedValue
ExplodeEffect.radius
The field for theradius
record component.private final LevelBasedValue
ReplaceDisk.radius
The field for theradius
record component.private final LevelBasedValue
AddValue.value
The field for thevalue
record component.private final LevelBasedValue
SetValue.value
The field for thevalue
record component.Fields in net.minecraft.world.item.enchantment.effects with type parameters of type LevelBasedValueModifier and TypeFieldDescriptionprivate final Optional
<LevelBasedValue> ExplodeEffect.knockbackMultiplier
The field for theknockbackMultiplier
record component.Methods in net.minecraft.world.item.enchantment.effects that return LevelBasedValueModifier and TypeMethodDescriptionDamageItem.amount()
Returns the value of theamount
record component.EnchantmentAttributeEffect.amount()
Returns the value of theamount
record component.RemoveBinomial.chance()
Returns the value of thechance
record component.Ignite.duration()
Returns the value of theduration
record component.MultiplyValue.factor()
Returns the value of thefactor
record component.ReplaceDisk.height()
Returns the value of theheight
record component.ApplyMobEffect.maxAmplifier()
Returns the value of themaxAmplifier
record component.DamageEntity.maxDamage()
Returns the value of themaxDamage
record component.ApplyMobEffect.maxDuration()
Returns the value of themaxDuration
record component.ApplyMobEffect.minAmplifier()
Returns the value of theminAmplifier
record component.DamageEntity.minDamage()
Returns the value of theminDamage
record component.ApplyMobEffect.minDuration()
Returns the value of theminDuration
record component.ExplodeEffect.radius()
Returns the value of theradius
record component.ReplaceDisk.radius()
Returns the value of theradius
record component.AddValue.value()
Returns the value of thevalue
record component.SetValue.value()
Returns the value of thevalue
record component.Methods in net.minecraft.world.item.enchantment.effects that return types with arguments of type LevelBasedValueModifier and TypeMethodDescriptionExplodeEffect.knockbackMultiplier()
Returns the value of theknockbackMultiplier
record component.Constructors in net.minecraft.world.item.enchantment.effects with parameters of type LevelBasedValueModifierConstructorDescriptionAddValue
(LevelBasedValue value) Creates an instance of aAddValue
record class.ApplyMobEffect
(HolderSet<MobEffect> toApply, LevelBasedValue minDuration, LevelBasedValue maxDuration, LevelBasedValue minAmplifier, LevelBasedValue maxAmplifier) Creates an instance of aApplyMobEffect
record class.DamageEntity
(LevelBasedValue minDamage, LevelBasedValue maxDamage, Holder<DamageType> damageType) Creates an instance of aDamageEntity
record class.DamageItem
(LevelBasedValue amount) Creates an instance of aDamageItem
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.Ignite
(LevelBasedValue duration) Creates an instance of aIgnite
record class.MultiplyValue
(LevelBasedValue factor) Creates an instance of aMultiplyValue
record class.RemoveBinomial
(LevelBasedValue chance) Creates an instance of aRemoveBinomial
record class.ReplaceDisk
(LevelBasedValue radius, LevelBasedValue height, Vec3i offset, Optional<BlockPredicate> predicate, BlockStateProvider blockState, Optional<Holder<GameEvent>> triggerGameEvent) Creates an instance of aReplaceDisk
record class.SetValue
(LevelBasedValue value) Creates an instance of aSetValue
record class. -
Uses of LevelBasedValue in net.minecraft.world.level.storage.loot.predicates
Fields in net.minecraft.world.level.storage.loot.predicates declared as LevelBasedValueModifier and TypeFieldDescriptionprivate final LevelBasedValue
LootItemRandomChanceWithEnchantedBonusCondition.enchantedChance
The field for theenchantedChance
record component.Methods in net.minecraft.world.level.storage.loot.predicates that return LevelBasedValueModifier and TypeMethodDescriptionLootItemRandomChanceWithEnchantedBonusCondition.enchantedChance()
Returns the value of theenchantedChance
record component.Constructors in net.minecraft.world.level.storage.loot.predicates with parameters of type LevelBasedValueModifierConstructorDescriptionLootItemRandomChanceWithEnchantedBonusCondition
(float unenchantedChance, LevelBasedValue enchantedChance, Holder<Enchantment> enchantment) Creates an instance of aLootItemRandomChanceWithEnchantedBonusCondition
record class. -
Uses of LevelBasedValue in net.minecraft.world.level.storage.loot.providers.number
Fields in net.minecraft.world.level.storage.loot.providers.number declared as LevelBasedValueModifier and TypeFieldDescriptionprivate final LevelBasedValue
EnchantmentLevelProvider.amount
The field for theamount
record component.Methods in net.minecraft.world.level.storage.loot.providers.number that return LevelBasedValueModifier and TypeMethodDescriptionEnchantmentLevelProvider.amount()
Returns the value of theamount
record component.Methods in net.minecraft.world.level.storage.loot.providers.number with parameters of type LevelBasedValueModifier and TypeMethodDescriptionstatic EnchantmentLevelProvider
EnchantmentLevelProvider.forEnchantmentLevel
(LevelBasedValue p_345320_) Constructors in net.minecraft.world.level.storage.loot.providers.number with parameters of type LevelBasedValueModifierConstructorDescriptionCreates an instance of aEnchantmentLevelProvider
record class.