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_TYPEstatic 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 recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordFields in net.minecraft.world.item.enchantment declared as LevelBasedValueModifier and TypeFieldDescriptionprivate final LevelBasedValueLevelBasedValue.Fraction.denominatorThe field for thedenominatorrecord component.private final LevelBasedValueLevelBasedValue.Lookup.fallbackThe field for thefallbackrecord component.private final LevelBasedValueLevelBasedValue.Fraction.numeratorThe field for thenumeratorrecord component.private final LevelBasedValueLevelBasedValue.Clamped.valueThe field for thevaluerecord component.Fields in net.minecraft.world.item.enchantment with type parameters of type LevelBasedValueModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LevelBasedValue> LevelBasedValue.CODECstatic final com.mojang.serialization.Codec<LevelBasedValue> LevelBasedValue.DISPATCH_CODECMethods in net.minecraft.world.item.enchantment that return LevelBasedValueModifier and TypeMethodDescriptionLevelBasedValue.Fraction.denominator()Returns the value of thedenominatorrecord component.LevelBasedValue.Lookup.fallback()Returns the value of thefallbackrecord component.LevelBasedValue.Fraction.numerator()Returns the value of thenumeratorrecord component.LevelBasedValue.Clamped.value()Returns the value of thevaluerecord 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.LookupLevelBasedValue.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 aClampedrecord class.Fraction(LevelBasedValue numerator, LevelBasedValue denominator) Creates an instance of aFractionrecord class.Lookup(List<Float> values, LevelBasedValue fallback) Creates an instance of aLookuprecord 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 LevelBasedValueDamageItem.amountThe field for theamountrecord component.private final LevelBasedValueEnchantmentAttributeEffect.amountThe field for theamountrecord component.private final LevelBasedValueRemoveBinomial.chanceThe field for thechancerecord component.private final LevelBasedValueIgnite.durationThe field for thedurationrecord component.private final LevelBasedValueMultiplyValue.factorThe field for thefactorrecord component.private final LevelBasedValueReplaceDisk.heightThe field for theheightrecord component.private final LevelBasedValueApplyMobEffect.maxAmplifierThe field for themaxAmplifierrecord component.private final LevelBasedValueDamageEntity.maxDamageThe field for themaxDamagerecord component.private final LevelBasedValueApplyMobEffect.maxDurationThe field for themaxDurationrecord component.private final LevelBasedValueApplyMobEffect.minAmplifierThe field for theminAmplifierrecord component.private final LevelBasedValueDamageEntity.minDamageThe field for theminDamagerecord component.private final LevelBasedValueApplyMobEffect.minDurationThe field for theminDurationrecord component.private final LevelBasedValueExplodeEffect.radiusThe field for theradiusrecord component.private final LevelBasedValueReplaceDisk.radiusThe field for theradiusrecord component.private final LevelBasedValueAddValue.valueThe field for thevaluerecord component.private final LevelBasedValueSetValue.valueThe field for thevaluerecord component.Fields in net.minecraft.world.item.enchantment.effects with type parameters of type LevelBasedValueModifier and TypeFieldDescriptionprivate final Optional<LevelBasedValue> ExplodeEffect.knockbackMultiplierThe field for theknockbackMultiplierrecord component.Methods in net.minecraft.world.item.enchantment.effects that return LevelBasedValueModifier and TypeMethodDescriptionDamageItem.amount()Returns the value of theamountrecord component.EnchantmentAttributeEffect.amount()Returns the value of theamountrecord component.RemoveBinomial.chance()Returns the value of thechancerecord component.Ignite.duration()Returns the value of thedurationrecord component.MultiplyValue.factor()Returns the value of thefactorrecord component.ReplaceDisk.height()Returns the value of theheightrecord component.ApplyMobEffect.maxAmplifier()Returns the value of themaxAmplifierrecord component.DamageEntity.maxDamage()Returns the value of themaxDamagerecord component.ApplyMobEffect.maxDuration()Returns the value of themaxDurationrecord component.ApplyMobEffect.minAmplifier()Returns the value of theminAmplifierrecord component.DamageEntity.minDamage()Returns the value of theminDamagerecord component.ApplyMobEffect.minDuration()Returns the value of theminDurationrecord component.ExplodeEffect.radius()Returns the value of theradiusrecord component.ReplaceDisk.radius()Returns the value of theradiusrecord component.AddValue.value()Returns the value of thevaluerecord component.SetValue.value()Returns the value of thevaluerecord component.Methods in net.minecraft.world.item.enchantment.effects that return types with arguments of type LevelBasedValueModifier and TypeMethodDescriptionExplodeEffect.knockbackMultiplier()Returns the value of theknockbackMultiplierrecord component.Constructors in net.minecraft.world.item.enchantment.effects with parameters of type LevelBasedValueModifierConstructorDescriptionAddValue(LevelBasedValue value) Creates an instance of aAddValuerecord class.ApplyMobEffect(HolderSet<MobEffect> toApply, LevelBasedValue minDuration, LevelBasedValue maxDuration, LevelBasedValue minAmplifier, LevelBasedValue maxAmplifier) Creates an instance of aApplyMobEffectrecord class.DamageEntity(LevelBasedValue minDamage, LevelBasedValue maxDamage, Holder<DamageType> damageType) Creates an instance of aDamageEntityrecord class.DamageItem(LevelBasedValue amount) Creates an instance of aDamageItemrecord class.EnchantmentAttributeEffect(ResourceLocation id, Holder<Attribute> attribute, LevelBasedValue amount, AttributeModifier.Operation operation) Creates an instance of aEnchantmentAttributeEffectrecord 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 aExplodeEffectrecord class.Ignite(LevelBasedValue duration) Creates an instance of aIgniterecord class.MultiplyValue(LevelBasedValue factor) Creates an instance of aMultiplyValuerecord class.RemoveBinomial(LevelBasedValue chance) Creates an instance of aRemoveBinomialrecord class.ReplaceDisk(LevelBasedValue radius, LevelBasedValue height, Vec3i offset, Optional<BlockPredicate> predicate, BlockStateProvider blockState, Optional<Holder<GameEvent>> triggerGameEvent) Creates an instance of aReplaceDiskrecord class.SetValue(LevelBasedValue value) Creates an instance of aSetValuerecord 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 LevelBasedValueLootItemRandomChanceWithEnchantedBonusCondition.enchantedChanceThe field for theenchantedChancerecord component.Methods in net.minecraft.world.level.storage.loot.predicates that return LevelBasedValueModifier and TypeMethodDescriptionLootItemRandomChanceWithEnchantedBonusCondition.enchantedChance()Returns the value of theenchantedChancerecord 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 aLootItemRandomChanceWithEnchantedBonusConditionrecord 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 LevelBasedValueEnchantmentLevelProvider.amountThe field for theamountrecord component.Methods in net.minecraft.world.level.storage.loot.providers.number that return LevelBasedValueModifier and TypeMethodDescriptionEnchantmentLevelProvider.amount()Returns the value of theamountrecord component.Methods in net.minecraft.world.level.storage.loot.providers.number with parameters of type LevelBasedValueModifier and TypeMethodDescriptionstatic EnchantmentLevelProviderEnchantmentLevelProvider.forEnchantmentLevel(LevelBasedValue p_345320_) Constructors in net.minecraft.world.level.storage.loot.providers.number with parameters of type LevelBasedValueModifierConstructorDescriptionCreates an instance of aEnchantmentLevelProviderrecord class.