Uses of Interface
net.minecraft.world.item.enchantment.LevelBasedValue
Package
Description
-
Uses of LevelBasedValue in net.minecraft.core.registries
Modifier 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
Modifier and TypeClassDescriptionstatic final record
static final record
static final record
static final record
static final record
static final record
Modifier 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.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<LevelBasedValue> LevelBasedValue.CODEC
static final com.mojang.serialization.Codec
<LevelBasedValue> LevelBasedValue.DISPATCH_CODEC
Modifier 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.Modifier 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()
Modifier and TypeMethodDescriptionstatic LevelBasedValue.Lookup
LevelBasedValue.lookup
(List<Float> p_352164_, LevelBasedValue p_352467_) Modifier and TypeMethodDescriptionstatic com.mojang.serialization.MapCodec
<? extends LevelBasedValue> LevelBasedValue.bootstrap
(Registry<com.mojang.serialization.MapCodec<? extends LevelBasedValue>> p_345955_) ModifierConstructorDescriptionClamped
(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
Modifier 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.Modifier and TypeFieldDescriptionprivate final Optional
<LevelBasedValue> ExplodeEffect.knockbackMultiplier
The field for theknockbackMultiplier
record component.Modifier 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.Modifier and TypeMethodDescriptionExplodeEffect.knockbackMultiplier()
Returns the value of theknockbackMultiplier
record component.ModifierConstructorDescriptionAddValue
(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
Modifier and TypeFieldDescriptionprivate final LevelBasedValue
LootItemRandomChanceWithEnchantedBonusCondition.enchantedChance
The field for theenchantedChance
record component.Modifier and TypeMethodDescriptionLootItemRandomChanceWithEnchantedBonusCondition.enchantedChance()
Returns the value of theenchantedChance
record component.ModifierConstructorDescriptionLootItemRandomChanceWithEnchantedBonusCondition
(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
Modifier and TypeFieldDescriptionprivate final LevelBasedValue
EnchantmentLevelProvider.amount
The field for theamount
record component.Modifier and TypeMethodDescriptionEnchantmentLevelProvider.amount()
Returns the value of theamount
record component.Modifier and TypeMethodDescriptionstatic EnchantmentLevelProvider
EnchantmentLevelProvider.forEnchantmentLevel
(LevelBasedValue p_345320_) ModifierConstructorDescriptionCreates an instance of aEnchantmentLevelProvider
record class.