History - net.minecraft.enchantment.Enchantment
26.4-snapshot-7
Names
Fields
Constructors
Methods
26.4-snapshot-6
Names
Fields
Constructors
Methods
26.4-snapshot-5
Names
Fields
Constructors
Methods
26.4-snapshot-4
Names
Fields
Constructors
Methods
26.4-snapshot-3
Names
Fields
Constructors
Methods
26.4-snapshot-2
Names
Fields
Constructors
Methods
26.4-snapshot-1
Names
Fields
Constructors
Methods
26.3
Names
Fields
Constructors
Methods
26.2
Names
Fields
Constructors
Methods
26.1.2
Names
Fields
Constructors
Methods
26.1.1
Names
Fields
Constructors
Methods
26.1
Names
Fields
Constructors
Methods
void (ServerWorld, int, EnchantmentEffectContext, Entity): doLunge, method_75251, onPiercingAttack
void (ServerWorld, int, EnchantmentEffectContext, Entity): doPostPiercingAttack, method_75251, onPiercingAttack
void (ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>>, ServerWorld, int, ItemStack, org.apache.commons.lang3.mutable.MutableFloat): modifyItemFilteredCount, method_60037, modifyValue
LootContext (ServerWorld, int, ItemStack): itemContext, method_60017, createEnchantedItemLootContext
<T> void (List<EnchantmentEffectEntry<T>>, LootContext, Consumer<T>): applyEffects, method_60032, applyEffects
void (EnchantmentEffectContext, LivingEntity, int, EnchantmentLocationBasedEffect): lambda$runLocationChangedEffects$9, method_60029, method_60029
void (EnchantmentEffectContext, LivingEntity, int, EnchantmentLocationBasedEffect): lambda$runLocationChangedEffects$0, method_60029, method_60029
void (org.apache.commons.lang3.mutable.MutableFloat, int, Entity, EnchantmentValueEffect): lambda$modifyDamageFilteredValue$8, method_60039, method_60039
void (org.apache.commons.lang3.mutable.MutableFloat, int, Entity, EnchantmentValueEffect): lambda$modifyEntityFilteredValue$7, method_60047, method_60047
void (org.apache.commons.lang3.mutable.MutableFloat, int, ServerWorld, EnchantmentValueEffect): lambda$modifyItemFilteredCount$6, method_60038, method_60038
void (ServerWorld, int, EnchantmentEffectContext, Entity, Vec3d, EnchantmentEntityEffect): lambda$onHitBlock$5, method_60024, method_60024
void (ServerWorld, int, EnchantmentEffectContext, Entity, Vec3d, EnchantmentEntityEffect): lambda$onHitBlock$0, method_60024, method_60024
void (ServerWorld, int, EnchantmentEffectContext, Entity, EnchantmentEntityEffect): lambda$onProjectileSpawned$4, method_60022, method_60022
void (ServerWorld, int, EnchantmentEffectContext, Entity, EnchantmentEntityEffect): lambda$onProjectileSpawned$0, method_60022, method_60022
void (ServerWorld, int, EnchantmentEffectContext, Entity, EnchantmentEntityEffect): lambda$tick$3, method_60045, method_60045
void (ServerWorld, int, EnchantmentEffectContext, Entity, EnchantmentEntityEffect): lambda$tick$0, method_60045, method_60045
void (ServerWorld, int, EnchantmentEffectContext, Entity, EnchantmentEntityEffect): lambda$doLunge$2, method_75252, method_75252
void (ServerWorld, int, EnchantmentEffectContext, Entity, EnchantmentEntityEffect): lambda$doPostPiercingAttack$0, method_75252, method_75252
boolean (EquipmentSlot, AttributeModifierSlot): lambda$matchingSlot$1, method_60027, method_60027
boolean (EquipmentSlot, AttributeModifierSlot): lambda$matchingSlot$0, method_60027, method_60027
void (ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>>, ServerWorld, int, ItemStackView, org.apache.commons.lang3.mutable.MutableFloat): modifyItemFilteredCount, method_60037, modifyValue
LootContext (ServerWorld, int, ItemStackView): itemContext, method_60017, createEnchantedItemLootContext
<T> void (List<EnchantmentEffectEntry<T>>, LootContext, Enchantment$EffectApplier<T>): applyEffects, method_1_565, applyEnchantmentEffects
<T> void (List<EnchantmentEffectEntry<T>>, LootContext, org.apache.commons.lang3.mutable.MutableFloat, Enchantment$ValueAdjuster<T>): applyEffects, method_1_566, adjustByEnchantmentEffects
float (int, Entity, EnchantmentValueEffect, float): lambda$modifyDamageFilteredValue$0, method_1_567, method_1_567
float (int, Entity, EnchantmentValueEffect, float): lambda$modifyEntityFilteredValue$0, method_1_569, method_1_569
float (int, ServerWorld, EnchantmentValueEffect, float): lambda$modifyItemFilteredCount$0, method_1_570, method_1_570
float (int, Entity, EnchantmentValueEffect, float): lambda$modifyDamageProtection$0, method_1_568, method_1_568
1.21.11_unobfuscated
Names
net.minecraft.world.item.enchantment.Enchantment
net.minecraft.class_1887
net.minecraft.enchantment.Enchantment
Fields
Text: description, comp_2686, description
Enchantment$Definition: definition, comp_2687, definition
RegistryEntryList<Enchantment>: exclusiveSet, comp_2688, exclusiveSet
ComponentMap: effects, comp_2689, effects
int: MAX_LEVEL, field_51949, MAX_LEVEL
com.mojang.serialization.Codec<Enchantment>: DIRECT_CODEC, field_51643, CODEC
com.mojang.serialization.Codec<RegistryEntry<Enchantment>>: CODEC, field_51644, ENTRY_CODEC
PacketCodec<RegistryByteBuf, RegistryEntry<Enchantment>>: STREAM_CODEC, field_51950, ENTRY_PACKET_CODEC
Constructors
(Text, Enchantment$Definition, RegistryEntryList<Enchantment>, ComponentMap)
Methods
Enchantment$Cost (int): constantCost, method_58440, constantCost
Enchantment$Cost (int, int): dynamicCost, method_58441, leveledCost
Enchantment$Definition (RegistryEntryList<Item>, RegistryEntryList<Item>, int, int, Enchantment$Cost, Enchantment$Cost, int, AttributeModifierSlot[]): definition, method_58443, definition
Enchantment$Definition (RegistryEntryList<Item>, int, int, Enchantment$Cost, Enchantment$Cost, int, AttributeModifierSlot[]): definition, method_58442, definition
Map<EquipmentSlot, ItemStack> (LivingEntity): getSlotItems, method_8185, getEquipment
RegistryEntryList<Item> (): getSupportedItems, method_56109, getApplicableItems
boolean (EquipmentSlot): matchingSlot, method_60026, slotMatches
boolean (ItemStack): isPrimaryItem, method_58444, isPrimaryItem
boolean (ItemStack): isSupportedItem, method_60046, isSupportedItem
int (): getWeight, method_58445, getWeight
int (): getAnvilCost, method_58446, getAnvilCost
int (): getMinLevel, method_8187, getMinLevel
int (): getMaxLevel, method_8183, getMaxLevel
int (int): getMinCost, method_8182, getMinPower
int (int): getMaxCost, method_20742, getMaxPower
boolean (RegistryEntry<Enchantment>, RegistryEntry<Enchantment>): areCompatible, method_60033, canBeCombined
Text (RegistryEntry<Enchantment>, int): getFullname, method_8179, getName
boolean (ItemStack): canEnchant, method_8192, isAcceptableItem
<T> List<T> (ComponentType<List<T>>): getEffects, method_60034, getEffect
boolean (ServerWorld, int, Entity, DamageSource): isImmuneToDamage, method_60014, hasDamageImmunityTo
void (ServerWorld, int, ItemStack, Entity, DamageSource, org.apache.commons.lang3.mutable.MutableFloat): modifyDamageProtection, method_60018, modifyDamageProtection
void (ServerWorld, int, ItemStack, org.apache.commons.lang3.mutable.MutableFloat): modifyDurabilityChange, method_60020, modifyItemDamage
void (ServerWorld, int, ItemStack, org.apache.commons.lang3.mutable.MutableFloat): modifyAmmoCount, method_60043, modifyAmmoUse
void (ServerWorld, int, ItemStack, org.apache.commons.lang3.mutable.MutableFloat): modifyPiercingCount, method_60050, modifyProjectilePiercing
void (ServerWorld, int, ItemStack, org.apache.commons.lang3.mutable.MutableFloat): modifyBlockExperience, method_60053, modifyBlockExperience
void (ServerWorld, int, ItemStack, Entity, org.apache.commons.lang3.mutable.MutableFloat): modifyMobExperience, method_60019, modifyMobExperience
void (ServerWorld, int, ItemStack, org.apache.commons.lang3.mutable.MutableFloat): modifyDurabilityToRepairFromXp, method_60056, modifyRepairWithExperience
void (ServerWorld, int, ItemStack, Entity, org.apache.commons.lang3.mutable.MutableFloat): modifyTridentReturnToOwnerAcceleration, method_60042, modifyTridentReturnAcceleration
void (Random, int, org.apache.commons.lang3.mutable.MutableFloat): modifyTridentSpinAttackStrength, method_60049, modifyTridentSpinAttackStrength
void (ServerWorld, int, ItemStack, Entity, org.apache.commons.lang3.mutable.MutableFloat): modifyFishingTimeReduction, method_60052, modifyFishingTimeReduction
void (ServerWorld, int, ItemStack, Entity, org.apache.commons.lang3.mutable.MutableFloat): modifyFishingLuckBonus, method_60055, modifyFishingLuckBonus
void (ServerWorld, int, ItemStack, Entity, DamageSource, org.apache.commons.lang3.mutable.MutableFloat): modifyDamage, method_60041, modifyDamage
void (ServerWorld, int, ItemStack, Entity, DamageSource, org.apache.commons.lang3.mutable.MutableFloat): modifyFallBasedDamage, method_60048, modifySmashDamagePerFallenBlock
void (ServerWorld, int, ItemStack, Entity, DamageSource, org.apache.commons.lang3.mutable.MutableFloat): modifyKnockback, method_60051, modifyKnockback
void (ServerWorld, int, ItemStack, Entity, DamageSource, org.apache.commons.lang3.mutable.MutableFloat): modifyArmorEffectivness, method_60054, modifyArmorEffectiveness
void (ServerWorld, int, EnchantmentEffectContext, EnchantmentEffectTarget, Entity, DamageSource): doPostAttack, method_8189, onTargetDamaged
void (TargetedEnchantmentEffect<EnchantmentEntityEffect>, ServerWorld, int, EnchantmentEffectContext, Entity, DamageSource): doPostAttack, method_60031, applyTargetedEffect
void (ServerWorld, int, EnchantmentEffectContext, Entity): doLunge, method_75251, onPiercingAttack
void (ServerWorld, int, ItemStack, Entity, org.apache.commons.lang3.mutable.MutableFloat): modifyProjectileCount, method_60057, modifyProjectileCount
void (ServerWorld, int, ItemStack, Entity, org.apache.commons.lang3.mutable.MutableFloat): modifyProjectileSpread, method_60059, modifyProjectileSpread
void (Random, int, org.apache.commons.lang3.mutable.MutableFloat): modifyCrossbowChargeTime, method_60058, modifyCrossbowChargeTime
void (ComponentType<EnchantmentValueEffect>, Random, int, org.apache.commons.lang3.mutable.MutableFloat): modifyUnfilteredValue, method_60506, modifyValue
void (ServerWorld, int, EnchantmentEffectContext, Entity): tick, method_60021, onTick
void (ServerWorld, int, EnchantmentEffectContext, Entity): onProjectileSpawned, method_60044, onProjectileSpawned
void (ServerWorld, int, EnchantmentEffectContext, Entity, Vec3d, BlockState): onHitBlock, method_60023, onHitBlock
void (ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>>, ServerWorld, int, ItemStack, org.apache.commons.lang3.mutable.MutableFloat): modifyItemFilteredCount, method_60037, modifyValue
void (ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>>, ServerWorld, int, ItemStack, Entity, org.apache.commons.lang3.mutable.MutableFloat): modifyEntityFilteredValue, method_60036, modifyValue
void (ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>>, ServerWorld, int, ItemStack, Entity, DamageSource, org.apache.commons.lang3.mutable.MutableFloat): modifyDamageFilteredValue, method_60035, modifyValue
LootContext (ServerWorld, int, Entity, DamageSource): damageContext, method_60040, createEnchantedDamageLootContext
LootContext (ServerWorld, int, ItemStack): itemContext, method_60017, createEnchantedItemLootContext
LootContext (ServerWorld, int, Entity, boolean): locationContext, method_60016, createEnchantedLocationLootContext
LootContext (ServerWorld, int, Entity, Vec3d): entityContext, method_60015, createEnchantedEntityLootContext
LootContext (ServerWorld, int, Entity, Vec3d, BlockState): blockHitContext, method_60768, createHitBlockLootContext
<T> void (List<EnchantmentEffectEntry<T>>, LootContext, Consumer<T>): applyEffects, method_60032, applyEffects
void (ServerWorld, int, EnchantmentEffectContext, LivingEntity): runLocationChangedEffects, method_60025, applyLocationBasedEffects
void (int, EnchantmentEffectContext, LivingEntity): stopLocationBasedEffects, method_60013, removeLocationBasedEffects
Enchantment$Builder (Enchantment$Definition): enchantment, method_60030, builder
Text (): description, comp_2686, description
Enchantment$Definition (): definition, comp_2687, definition
RegistryEntryList<Enchantment> (): exclusiveSet, comp_2688, exclusiveSet
ComponentMap (): effects, comp_2689, effects
void (EnchantmentEffectContext, LivingEntity, int, EnchantmentLocationBasedEffect): lambda$runLocationChangedEffects$9, method_60029, method_60029
void (org.apache.commons.lang3.mutable.MutableFloat, int, Entity, EnchantmentValueEffect): lambda$modifyDamageFilteredValue$8, method_60039, method_60039
void (org.apache.commons.lang3.mutable.MutableFloat, int, Entity, EnchantmentValueEffect): lambda$modifyEntityFilteredValue$7, method_60047, method_60047
void (org.apache.commons.lang3.mutable.MutableFloat, int, ServerWorld, EnchantmentValueEffect): lambda$modifyItemFilteredCount$6, method_60038, method_60038
void (ServerWorld, int, EnchantmentEffectContext, Entity, Vec3d, EnchantmentEntityEffect): lambda$onHitBlock$5, method_60024, method_60024
void (ServerWorld, int, EnchantmentEffectContext, Entity, EnchantmentEntityEffect): lambda$onProjectileSpawned$4, method_60022, method_60022
void (ServerWorld, int, EnchantmentEffectContext, Entity, EnchantmentEntityEffect): lambda$tick$3, method_60045, method_60045
void (ServerWorld, int, EnchantmentEffectContext, Entity, EnchantmentEntityEffect): lambda$doLunge$2, method_75252, method_75252
boolean (EquipmentSlot, AttributeModifierSlot): lambda$matchingSlot$1, method_60027, method_60027
com.mojang.datafixers.kinds.App (com.mojang.serialization.codecs.RecordCodecBuilder$Instance): lambda$static$0, method_60028, method_60028