Package net.minecraft.enchantment
Record Class Enchantment
java.lang.Object
java.lang.Record
net.minecraft.enchantment.Enchantment
- Record Components:
description-definition-exclusiveSet-effects-
public record Enchantment(Text description, Enchantment.Definition definition, RegistryEntryList<Enchantment> exclusiveSet, ComponentMap effects)
extends Record
- Mappings:
Namespace Name named net/minecraft/enchantment/Enchantmentintermediary net/minecraft/class_1887official dacnamed descriptionintermediary comp_2686official enamed definitionintermediary comp_2687official fnamed exclusiveSetintermediary comp_2688official gnamed effectsintermediary comp_2689official h
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Enchantment> private final Enchantment.DefinitionThe field for thedefinitionrecord component.private final TextThe field for thedescriptionrecord component.private final ComponentMapThe field for theeffectsrecord component.static final com.mojang.serialization.Codec<RegistryEntry<Enchantment>> static final PacketCodec<RegistryByteBuf, RegistryEntry<Enchantment>> private final RegistryEntryList<Enchantment> The field for theexclusiveSetrecord component.static final int -
Constructor Summary
ConstructorsConstructorDescriptionEnchantment(Text text, Enchantment.Definition definition, RegistryEntryList<Enchantment> registryEntryList, ComponentMap componentMap) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> voidapplyEffects(List<EnchantmentEffectEntry<T>> entries, LootContext lootContext, Consumer<T> effectConsumer) voidapplyLocationBasedEffects(ServerWorld world, int level, EnchantmentEffectContext context, LivingEntity user) static voidapplyTargetedEffect(TargetedEnchantmentEffect<EnchantmentEntityEffect> effect, ServerWorld world, int level, EnchantmentEffectContext context, Entity user, DamageSource damageSource) static Enchantment.Builderbuilder(Enchantment.Definition definition) static booleancanBeCombined(RegistryEntry<Enchantment> first, RegistryEntry<Enchantment> second) static Enchantment.CostconstantCost(int base) static LootContextcreateEnchantedDamageLootContext(ServerWorld world, int level, Entity entity, DamageSource damageSource) private static LootContextcreateEnchantedEntityLootContext(ServerWorld world, int level, Entity entity, Vec3d pos) private static LootContextcreateEnchantedItemLootContext(ServerWorld world, int level, ItemStack stack) private static LootContextcreateEnchantedLocationLootContext(ServerWorld world, int level, Entity entity, boolean enchantmentActive) private static LootContextcreateHitBlockLootContext(ServerWorld world, int level, Entity entity, Vec3d pos, BlockState state) Returns the value of thedefinitionrecord component.static Enchantment.Definitiondefinition(RegistryEntryList<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) static Enchantment.Definitiondefinition(RegistryEntryList<Item> supportedItems, RegistryEntryList<Item> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) Returns the value of thedescriptionrecord component.effects()Returns the value of theeffectsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexclusiveSetrecord component.int<T> List<T> getEffect(ComponentType<List<T>> type) getEquipment(LivingEntity entity) intintgetMaxPower(int level) intintgetMinPower(int level) static TextgetName(RegistryEntry<Enchantment> enchantment, int level) intbooleanhasDamageImmunityTo(ServerWorld world, int level, Entity user, DamageSource damageSource) final inthashCode()Returns a hash code value for this object.booleanisAcceptableItem(ItemStack stack) booleanisPrimaryItem(ItemStack stack) booleanisSupportedItem(ItemStack stack) static Enchantment.CostleveledCost(int base, int perLevel) voidmodifyAmmoUse(ServerWorld world, int level, ItemStack projectileStack, MutableFloat ammoUse) voidmodifyArmorEffectiveness(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat armorEffectiveness) voidmodifyBlockExperience(ServerWorld world, int level, ItemStack stack, MutableFloat blockExperience) voidmodifyCrossbowChargeTime(Random random, int level, MutableFloat crossbowChargeTime) voidmodifyDamage(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat damage) voidmodifyDamageProtection(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat damageProtection) voidmodifyFishingLuckBonus(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat fishingLuckBonus) voidmodifyFishingTimeReduction(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat fishingTimeReduction) voidmodifyItemDamage(ServerWorld world, int level, ItemStack stack, MutableFloat itemDamage) voidmodifyKnockback(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat knockback) voidmodifyMobExperience(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat mobExperience) voidmodifyProjectileCount(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat projectileCount) voidmodifyProjectilePiercing(ServerWorld world, int level, ItemStack stack, MutableFloat projectilePiercing) voidmodifyProjectileSpread(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat projectileSpread) voidmodifyRepairWithXp(ServerWorld world, int level, ItemStack stack, MutableFloat repairWithXp) voidmodifySmashDamagePerFallenBlock(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat smashDamagePerFallenBlock) voidmodifyTridentReturnAcceleration(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat tridentReturnAcceleration) voidmodifyTridentSpinAttackStrength(Random random, int level, MutableFloat tridentSpinAttackStrength) private voidmodifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat value) private voidmodifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat value) private voidmodifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, MutableFloat value) voidmodifyValue(ComponentType<EnchantmentValueEffect> type, Random random, int level, MutableFloat value) voidonHitBlock(ServerWorld world, int level, EnchantmentEffectContext context, Entity enchantedEntity, Vec3d pos, BlockState state) voidonProjectileSpawned(ServerWorld world, int level, EnchantmentEffectContext context, Entity user) voidonTargetDamaged(ServerWorld world, int level, EnchantmentEffectContext context, EnchantmentEffectTarget target, Entity user, DamageSource damageSource) voidonTick(ServerWorld world, int level, EnchantmentEffectContext context, Entity user) voidremoveLocationBasedEffects(int level, EnchantmentEffectContext context, LivingEntity user) booleanslotMatches(EquipmentSlot slot) toString()Returns a string representation of this record class.
-
Field Details
-
description
The field for thedescriptionrecord component. -
definition
The field for thedefinitionrecord component. -
exclusiveSet
The field for theexclusiveSetrecord component. -
effects
The field for theeffectsrecord component. -
MAX_LEVEL
public static final int MAX_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LEVELLnet/minecraft/enchantment/Enchantment;MAX_LEVEL:Iintermediary field_51949Lnet/minecraft/class_1887;field_51949:Iofficial aLdac;a:I
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/enchantment/Enchantment;CODEC:Lcom/mojang/serialization/Codec;intermediary field_51643Lnet/minecraft/class_1887;field_51643:Lcom/mojang/serialization/Codec;official bLdac;b:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODECLnet/minecraft/enchantment/Enchantment;ENTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_51644Lnet/minecraft/class_1887;field_51644:Lcom/mojang/serialization/Codec;official cLdac;c:Lcom/mojang/serialization/Codec;
-
ENTRY_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_PACKET_CODECLnet/minecraft/enchantment/Enchantment;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_51950Lnet/minecraft/class_1887;field_51950:Lnet/minecraft/class_9139;official dLdac;d:Lyx;
-
-
Constructor Details
-
Enchantment
public Enchantment(Text text, Enchantment.Definition definition, RegistryEntryList<Enchantment> registryEntryList, ComponentMap componentMap)
-
-
Method Details
-
constantCost
- Mappings:
Namespace Name Mixin selector named constantCostLnet/minecraft/enchantment/Enchantment;constantCost(I)Lnet/minecraft/enchantment/Enchantment$Cost;intermediary method_58440Lnet/minecraft/class_1887;method_58440(I)Lnet/minecraft/class_1887$class_9426;official aLdac;a(I)Ldac$b;
-
leveledCost
- Mappings:
Namespace Name Mixin selector named leveledCostLnet/minecraft/enchantment/Enchantment;leveledCost(II)Lnet/minecraft/enchantment/Enchantment$Cost;intermediary method_58441Lnet/minecraft/class_1887;method_58441(II)Lnet/minecraft/class_1887$class_9426;official aLdac;a(II)Ldac$b;
-
definition
public static Enchantment.Definition definition(RegistryEntryList<Item> supportedItems, RegistryEntryList<Item> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) - Mappings:
Namespace Name Mixin selector named definitionLnet/minecraft/enchantment/Enchantment;definition(Lnet/minecraft/registry/entry/RegistryEntryList;Lnet/minecraft/registry/entry/RegistryEntryList;IILnet/minecraft/enchantment/Enchantment$Cost;Lnet/minecraft/enchantment/Enchantment$Cost;I[Lnet/minecraft/component/type/AttributeModifierSlot;)Lnet/minecraft/enchantment/Enchantment$Definition;intermediary method_58443Lnet/minecraft/class_1887;method_58443(Lnet/minecraft/class_6885;Lnet/minecraft/class_6885;IILnet/minecraft/class_1887$class_9426;Lnet/minecraft/class_1887$class_9426;I[Lnet/minecraft/class_9274;)Lnet/minecraft/class_1887$class_9427;official aLdac;a(Ljq;Ljq;IILdac$b;Ldac$b;I[Lbsz;)Ldac$c;
-
definition
public static Enchantment.Definition definition(RegistryEntryList<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) - Mappings:
Namespace Name Mixin selector named definitionLnet/minecraft/enchantment/Enchantment;definition(Lnet/minecraft/registry/entry/RegistryEntryList;IILnet/minecraft/enchantment/Enchantment$Cost;Lnet/minecraft/enchantment/Enchantment$Cost;I[Lnet/minecraft/component/type/AttributeModifierSlot;)Lnet/minecraft/enchantment/Enchantment$Definition;intermediary method_58442Lnet/minecraft/class_1887;method_58442(Lnet/minecraft/class_6885;IILnet/minecraft/class_1887$class_9426;Lnet/minecraft/class_1887$class_9426;I[Lnet/minecraft/class_9274;)Lnet/minecraft/class_1887$class_9427;official aLdac;a(Ljq;IILdac$b;Ldac$b;I[Lbsz;)Ldac$c;
-
getEquipment
- Mappings:
Namespace Name Mixin selector named getEquipmentLnet/minecraft/enchantment/Enchantment;getEquipment(Lnet/minecraft/entity/LivingEntity;)Ljava/util/Map;intermediary method_8185Lnet/minecraft/class_1887;method_8185(Lnet/minecraft/class_1309;)Ljava/util/Map;official aLdac;a(Lbtn;)Ljava/util/Map;
-
getApplicableItems
- Mappings:
Namespace Name Mixin selector named getApplicableItemsLnet/minecraft/enchantment/Enchantment;getApplicableItems()Lnet/minecraft/registry/entry/RegistryEntryList;intermediary method_56109Lnet/minecraft/class_1887;method_56109()Lnet/minecraft/class_6885;official aLdac;a()Ljq;
-
slotMatches
- Mappings:
Namespace Name Mixin selector named slotMatchesLnet/minecraft/enchantment/Enchantment;slotMatches(Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_60026Lnet/minecraft/class_1887;method_60026(Lnet/minecraft/class_1304;)Zofficial aLdac;a(Lbsy;)Z
-
isPrimaryItem
- Mappings:
Namespace Name Mixin selector named isPrimaryItemLnet/minecraft/enchantment/Enchantment;isPrimaryItem(Lnet/minecraft/item/ItemStack;)Zintermediary method_58444Lnet/minecraft/class_1887;method_58444(Lnet/minecraft/class_1799;)Zofficial aLdac;a(Lcuq;)Z
-
isSupportedItem
- Mappings:
Namespace Name Mixin selector named isSupportedItemLnet/minecraft/enchantment/Enchantment;isSupportedItem(Lnet/minecraft/item/ItemStack;)Zintermediary method_60046Lnet/minecraft/class_1887;method_60046(Lnet/minecraft/class_1799;)Zofficial bLdac;b(Lcuq;)Z
-
getWeight
public int getWeight()- Mappings:
Namespace Name Mixin selector named getWeightLnet/minecraft/enchantment/Enchantment;getWeight()Iintermediary method_58445Lnet/minecraft/class_1887;method_58445()Iofficial bLdac;b()I
-
getAnvilCost
public int getAnvilCost()- Mappings:
Namespace Name Mixin selector named getAnvilCostLnet/minecraft/enchantment/Enchantment;getAnvilCost()Iintermediary method_58446Lnet/minecraft/class_1887;method_58446()Iofficial cLdac;c()I
-
getMinLevel
public int getMinLevel()- Mappings:
Namespace Name Mixin selector named getMinLevelLnet/minecraft/enchantment/Enchantment;getMinLevel()Iintermediary method_8187Lnet/minecraft/class_1887;method_8187()Iofficial dLdac;d()I
-
getMaxLevel
public int getMaxLevel()- Mappings:
Namespace Name Mixin selector named getMaxLevelLnet/minecraft/enchantment/Enchantment;getMaxLevel()Iintermediary method_8183Lnet/minecraft/class_1887;method_8183()Iofficial eLdac;e()I
-
getMinPower
public int getMinPower(int level) - Mappings:
Namespace Name Mixin selector named getMinPowerLnet/minecraft/enchantment/Enchantment;getMinPower(I)Iintermediary method_8182Lnet/minecraft/class_1887;method_8182(I)Iofficial bLdac;b(I)I
-
getMaxPower
public int getMaxPower(int level) - Mappings:
Namespace Name Mixin selector named getMaxPowerLnet/minecraft/enchantment/Enchantment;getMaxPower(I)Iintermediary method_20742Lnet/minecraft/class_1887;method_20742(I)Iofficial cLdac;c(I)I
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
canBeCombined
public static boolean canBeCombined(RegistryEntry<Enchantment> first, RegistryEntry<Enchantment> second) - Mappings:
Namespace Name Mixin selector named canBeCombinedLnet/minecraft/enchantment/Enchantment;canBeCombined(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/entry/RegistryEntry;)Zintermediary method_60033Lnet/minecraft/class_1887;method_60033(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;)Zofficial aLdac;a(Ljm;Ljm;)Z
-
getName
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/enchantment/Enchantment;getName(Lnet/minecraft/registry/entry/RegistryEntry;I)Lnet/minecraft/text/Text;intermediary method_8179Lnet/minecraft/class_1887;method_8179(Lnet/minecraft/class_6880;I)Lnet/minecraft/class_2561;official aLdac;a(Ljm;I)Lwz;
-
isAcceptableItem
- Mappings:
Namespace Name Mixin selector named isAcceptableItemLnet/minecraft/enchantment/Enchantment;isAcceptableItem(Lnet/minecraft/item/ItemStack;)Zintermediary method_8192Lnet/minecraft/class_1887;method_8192(Lnet/minecraft/class_1799;)Zofficial cLdac;c(Lcuq;)Z
-
getEffect
- Mappings:
Namespace Name Mixin selector named getEffectLnet/minecraft/enchantment/Enchantment;getEffect(Lnet/minecraft/component/ComponentType;)Ljava/util/List;intermediary method_60034Lnet/minecraft/class_1887;method_60034(Lnet/minecraft/class_9331;)Ljava/util/List;official aLdac;a(Lkp;)Ljava/util/List;
-
hasDamageImmunityTo
public boolean hasDamageImmunityTo(ServerWorld world, int level, Entity user, DamageSource damageSource) - Mappings:
Namespace Name Mixin selector named hasDamageImmunityToLnet/minecraft/enchantment/Enchantment;hasDamageImmunityTo(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)Zintermediary method_60014Lnet/minecraft/class_1887;method_60014(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Lnet/minecraft/class_1282;)Zofficial aLdac;a(Laqu;ILbsr;Lbrk;)Z
-
modifyDamageProtection
public void modifyDamageProtection(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat damageProtection) - Mappings:
Namespace Name Mixin selector named modifyDamageProtectionLnet/minecraft/enchantment/Enchantment;modifyDamageProtection(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60018Lnet/minecraft/class_1887;method_60018(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial aLdac;a(Laqu;ILcuq;Lbsr;Lbrk;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyItemDamage
public void modifyItemDamage(ServerWorld world, int level, ItemStack stack, MutableFloat itemDamage) - Mappings:
Namespace Name Mixin selector named modifyItemDamageLnet/minecraft/enchantment/Enchantment;modifyItemDamage(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60020Lnet/minecraft/class_1887;method_60020(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial aLdac;a(Laqu;ILcuq;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyAmmoUse
public void modifyAmmoUse(ServerWorld world, int level, ItemStack projectileStack, MutableFloat ammoUse) - Mappings:
Namespace Name Mixin selector named modifyAmmoUseLnet/minecraft/enchantment/Enchantment;modifyAmmoUse(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60043Lnet/minecraft/class_1887;method_60043(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial bLdac;b(Laqu;ILcuq;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyProjectilePiercing
public void modifyProjectilePiercing(ServerWorld world, int level, ItemStack stack, MutableFloat projectilePiercing) - Mappings:
Namespace Name Mixin selector named modifyProjectilePiercingLnet/minecraft/enchantment/Enchantment;modifyProjectilePiercing(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60050Lnet/minecraft/class_1887;method_60050(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial cLdac;c(Laqu;ILcuq;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyBlockExperience
public void modifyBlockExperience(ServerWorld world, int level, ItemStack stack, MutableFloat blockExperience) - Mappings:
Namespace Name Mixin selector named modifyBlockExperienceLnet/minecraft/enchantment/Enchantment;modifyBlockExperience(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60053Lnet/minecraft/class_1887;method_60053(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial dLdac;d(Laqu;ILcuq;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyMobExperience
public void modifyMobExperience(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat mobExperience) - Mappings:
Namespace Name Mixin selector named modifyMobExperienceLnet/minecraft/enchantment/Enchantment;modifyMobExperience(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60019Lnet/minecraft/class_1887;method_60019(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial aLdac;a(Laqu;ILcuq;Lbsr;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyRepairWithXp
public void modifyRepairWithXp(ServerWorld world, int level, ItemStack stack, MutableFloat repairWithXp) - Mappings:
Namespace Name Mixin selector named modifyRepairWithXpLnet/minecraft/enchantment/Enchantment;modifyRepairWithXp(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60056Lnet/minecraft/class_1887;method_60056(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial eLdac;e(Laqu;ILcuq;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyTridentReturnAcceleration
public void modifyTridentReturnAcceleration(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat tridentReturnAcceleration) - Mappings:
Namespace Name Mixin selector named modifyTridentReturnAccelerationLnet/minecraft/enchantment/Enchantment;modifyTridentReturnAcceleration(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60042Lnet/minecraft/class_1887;method_60042(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial bLdac;b(Laqu;ILcuq;Lbsr;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyTridentSpinAttackStrength
public void modifyTridentSpinAttackStrength(Random random, int level, MutableFloat tridentSpinAttackStrength) - Mappings:
Namespace Name Mixin selector named modifyTridentSpinAttackStrengthLnet/minecraft/enchantment/Enchantment;modifyTridentSpinAttackStrength(Lnet/minecraft/util/math/random/Random;ILorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60049Lnet/minecraft/class_1887;method_60049(Lnet/minecraft/class_5819;ILorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial aLdac;a(Layw;ILorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyFishingTimeReduction
public void modifyFishingTimeReduction(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat fishingTimeReduction) - Mappings:
Namespace Name Mixin selector named modifyFishingTimeReductionLnet/minecraft/enchantment/Enchantment;modifyFishingTimeReduction(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60052Lnet/minecraft/class_1887;method_60052(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial cLdac;c(Laqu;ILcuq;Lbsr;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyFishingLuckBonus
public void modifyFishingLuckBonus(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat fishingLuckBonus) - Mappings:
Namespace Name Mixin selector named modifyFishingLuckBonusLnet/minecraft/enchantment/Enchantment;modifyFishingLuckBonus(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60055Lnet/minecraft/class_1887;method_60055(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial dLdac;d(Laqu;ILcuq;Lbsr;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyDamage
public void modifyDamage(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat damage) - Mappings:
Namespace Name Mixin selector named modifyDamageLnet/minecraft/enchantment/Enchantment;modifyDamage(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60041Lnet/minecraft/class_1887;method_60041(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial bLdac;b(Laqu;ILcuq;Lbsr;Lbrk;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifySmashDamagePerFallenBlock
public void modifySmashDamagePerFallenBlock(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat smashDamagePerFallenBlock) - Mappings:
Namespace Name Mixin selector named modifySmashDamagePerFallenBlockLnet/minecraft/enchantment/Enchantment;modifySmashDamagePerFallenBlock(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60048Lnet/minecraft/class_1887;method_60048(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial cLdac;c(Laqu;ILcuq;Lbsr;Lbrk;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyKnockback
public void modifyKnockback(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat knockback) - Mappings:
Namespace Name Mixin selector named modifyKnockbackLnet/minecraft/enchantment/Enchantment;modifyKnockback(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60051Lnet/minecraft/class_1887;method_60051(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial dLdac;d(Laqu;ILcuq;Lbsr;Lbrk;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyArmorEffectiveness
public void modifyArmorEffectiveness(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat armorEffectiveness) - Mappings:
Namespace Name Mixin selector named modifyArmorEffectivenessLnet/minecraft/enchantment/Enchantment;modifyArmorEffectiveness(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60054Lnet/minecraft/class_1887;method_60054(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial eLdac;e(Laqu;ILcuq;Lbsr;Lbrk;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
applyTargetedEffect
public static void applyTargetedEffect(TargetedEnchantmentEffect<EnchantmentEntityEffect> effect, ServerWorld world, int level, EnchantmentEffectContext context, Entity user, DamageSource damageSource) - Mappings:
Namespace Name Mixin selector named applyTargetedEffectLnet/minecraft/enchantment/Enchantment;applyTargetedEffect(Lnet/minecraft/enchantment/effect/TargetedEnchantmentEffect;Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_60031Lnet/minecraft/class_1887;method_60031(Lnet/minecraft/class_9710;Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;)Vofficial aLdac;a(Ldak;Laqu;ILdab;Lbsr;Lbrk;)V
-
onTargetDamaged
public void onTargetDamaged(ServerWorld world, int level, EnchantmentEffectContext context, EnchantmentEffectTarget target, Entity user, DamageSource damageSource) - Mappings:
Namespace Name Mixin selector named onTargetDamagedLnet/minecraft/enchantment/Enchantment;onTargetDamaged(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_8189Lnet/minecraft/class_1887;method_8189(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_9703;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;)Vofficial aLdac;a(Laqu;ILdab;Ldag;Lbsr;Lbrk;)V
-
modifyProjectileCount
public void modifyProjectileCount(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat projectileCount) - Mappings:
Namespace Name Mixin selector named modifyProjectileCountLnet/minecraft/enchantment/Enchantment;modifyProjectileCount(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60057Lnet/minecraft/class_1887;method_60057(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial eLdac;e(Laqu;ILcuq;Lbsr;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyProjectileSpread
public void modifyProjectileSpread(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat projectileSpread) - Mappings:
Namespace Name Mixin selector named modifyProjectileSpreadLnet/minecraft/enchantment/Enchantment;modifyProjectileSpread(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60059Lnet/minecraft/class_1887;method_60059(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial fLdac;f(Laqu;ILcuq;Lbsr;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyCrossbowChargeTime
- Mappings:
Namespace Name Mixin selector named modifyCrossbowChargeTimeLnet/minecraft/enchantment/Enchantment;modifyCrossbowChargeTime(Lnet/minecraft/util/math/random/Random;ILorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60058Lnet/minecraft/class_1887;method_60058(Lnet/minecraft/class_5819;ILorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial bLdac;b(Layw;ILorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyValue
public void modifyValue(ComponentType<EnchantmentValueEffect> type, Random random, int level, MutableFloat value) - Mappings:
Namespace Name Mixin selector named modifyValueLnet/minecraft/enchantment/Enchantment;modifyValue(Lnet/minecraft/component/ComponentType;Lnet/minecraft/util/math/random/Random;ILorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60506Lnet/minecraft/class_1887;method_60506(Lnet/minecraft/class_9331;Lnet/minecraft/class_5819;ILorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial aLdac;a(Lkp;Layw;ILorg/apache/commons/lang3/mutable/MutableFloat;)V
-
onTick
- Mappings:
Namespace Name Mixin selector named onTickLnet/minecraft/enchantment/Enchantment;onTick(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/Entity;)Vintermediary method_60021Lnet/minecraft/class_1887;method_60021(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;)Vofficial aLdac;a(Laqu;ILdab;Lbsr;)V
-
onProjectileSpawned
public void onProjectileSpawned(ServerWorld world, int level, EnchantmentEffectContext context, Entity user) - Mappings:
Namespace Name Mixin selector named onProjectileSpawnedLnet/minecraft/enchantment/Enchantment;onProjectileSpawned(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/Entity;)Vintermediary method_60044Lnet/minecraft/class_1887;method_60044(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;)Vofficial bLdac;b(Laqu;ILdab;Lbsr;)V
-
onHitBlock
public void onHitBlock(ServerWorld world, int level, EnchantmentEffectContext context, Entity enchantedEntity, Vec3d pos, BlockState state) - Mappings:
Namespace Name Mixin selector named onHitBlockLnet/minecraft/enchantment/Enchantment;onHitBlock(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/block/BlockState;)Vintermediary method_60023Lnet/minecraft/class_1887;method_60023(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;Lnet/minecraft/class_2680;)Vofficial aLdac;a(Laqu;ILdab;Lbsr;Lexc;Ldtc;)V
-
modifyValue
private void modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, MutableFloat value) - Mappings:
Namespace Name Mixin selector named modifyValueLnet/minecraft/enchantment/Enchantment;modifyValue(Lnet/minecraft/component/ComponentType;Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60037Lnet/minecraft/class_1887;method_60037(Lnet/minecraft/class_9331;Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial aLdac;a(Lkp;Laqu;ILcuq;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyValue
private void modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat value) - Mappings:
Namespace Name Mixin selector named modifyValueLnet/minecraft/enchantment/Enchantment;modifyValue(Lnet/minecraft/component/ComponentType;Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60036Lnet/minecraft/class_1887;method_60036(Lnet/minecraft/class_9331;Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial aLdac;a(Lkp;Laqu;ILcuq;Lbsr;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyValue
private void modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat value) - Mappings:
Namespace Name Mixin selector named modifyValueLnet/minecraft/enchantment/Enchantment;modifyValue(Lnet/minecraft/component/ComponentType;Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vintermediary method_60035Lnet/minecraft/class_1887;method_60035(Lnet/minecraft/class_9331;Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)Vofficial aLdac;a(Lkp;Laqu;ILcuq;Lbsr;Lbrk;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
createEnchantedDamageLootContext
public static LootContext createEnchantedDamageLootContext(ServerWorld world, int level, Entity entity, DamageSource damageSource) - Mappings:
Namespace Name Mixin selector named createEnchantedDamageLootContextLnet/minecraft/enchantment/Enchantment;createEnchantedDamageLootContext(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/loot/context/LootContext;intermediary method_60040Lnet/minecraft/class_1887;method_60040(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Lnet/minecraft/class_1282;)Lnet/minecraft/class_47;official bLdac;b(Laqu;ILbsr;Lbrk;)Lerr;
-
createEnchantedItemLootContext
private static LootContext createEnchantedItemLootContext(ServerWorld world, int level, ItemStack stack) - Mappings:
Namespace Name Mixin selector named createEnchantedItemLootContextLnet/minecraft/enchantment/Enchantment;createEnchantedItemLootContext(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;)Lnet/minecraft/loot/context/LootContext;intermediary method_60017Lnet/minecraft/class_1887;method_60017(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;)Lnet/minecraft/class_47;official aLdac;a(Laqu;ILcuq;)Lerr;
-
createEnchantedLocationLootContext
private static LootContext createEnchantedLocationLootContext(ServerWorld world, int level, Entity entity, boolean enchantmentActive) - Mappings:
Namespace Name Mixin selector named createEnchantedLocationLootContextLnet/minecraft/enchantment/Enchantment;createEnchantedLocationLootContext(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/entity/Entity;Z)Lnet/minecraft/loot/context/LootContext;intermediary method_60016Lnet/minecraft/class_1887;method_60016(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Z)Lnet/minecraft/class_47;official aLdac;a(Laqu;ILbsr;Z)Lerr;
-
createEnchantedEntityLootContext
private static LootContext createEnchantedEntityLootContext(ServerWorld world, int level, Entity entity, Vec3d pos) - Mappings:
Namespace Name Mixin selector named createEnchantedEntityLootContextLnet/minecraft/enchantment/Enchantment;createEnchantedEntityLootContext(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/loot/context/LootContext;intermediary method_60015Lnet/minecraft/class_1887;method_60015(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Lnet/minecraft/class_243;)Lnet/minecraft/class_47;official aLdac;a(Laqu;ILbsr;Lexc;)Lerr;
-
createHitBlockLootContext
private static LootContext createHitBlockLootContext(ServerWorld world, int level, Entity entity, Vec3d pos, BlockState state) - Mappings:
Namespace Name Mixin selector named createHitBlockLootContextLnet/minecraft/enchantment/Enchantment;createHitBlockLootContext(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/block/BlockState;)Lnet/minecraft/loot/context/LootContext;intermediary method_60768Lnet/minecraft/class_1887;method_60768(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Lnet/minecraft/class_243;Lnet/minecraft/class_2680;)Lnet/minecraft/class_47;official aLdac;a(Laqu;ILbsr;Lexc;Ldtc;)Lerr;
-
applyEffects
private static <T> void applyEffects(List<EnchantmentEffectEntry<T>> entries, LootContext lootContext, Consumer<T> effectConsumer) - Mappings:
Namespace Name Mixin selector named applyEffectsLnet/minecraft/enchantment/Enchantment;applyEffects(Ljava/util/List;Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)Vintermediary method_60032Lnet/minecraft/class_1887;method_60032(Ljava/util/List;Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Vofficial aLdac;a(Ljava/util/List;Lerr;Ljava/util/function/Consumer;)V
-
applyLocationBasedEffects
public void applyLocationBasedEffects(ServerWorld world, int level, EnchantmentEffectContext context, LivingEntity user) - Mappings:
Namespace Name Mixin selector named applyLocationBasedEffectsLnet/minecraft/enchantment/Enchantment;applyLocationBasedEffects(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/LivingEntity;)Vintermediary method_60025Lnet/minecraft/class_1887;method_60025(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1309;)Vofficial aLdac;a(Laqu;ILdab;Lbtn;)V
-
removeLocationBasedEffects
public void removeLocationBasedEffects(int level, EnchantmentEffectContext context, LivingEntity user) - Mappings:
Namespace Name Mixin selector named removeLocationBasedEffectsLnet/minecraft/enchantment/Enchantment;removeLocationBasedEffects(ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/LivingEntity;)Vintermediary method_60013Lnet/minecraft/class_1887;method_60013(ILnet/minecraft/class_9699;Lnet/minecraft/class_1309;)Vofficial aLdac;a(ILdab;Lbtn;)V
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/enchantment/Enchantment;builder(Lnet/minecraft/enchantment/Enchantment$Definition;)Lnet/minecraft/enchantment/Enchantment$Builder;intermediary method_60030Lnet/minecraft/class_1887;method_60030(Lnet/minecraft/class_1887$class_9427;)Lnet/minecraft/class_1887$class_9700;official aLdac;a(Ldac$c;)Ldac$a;
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-
exclusiveSet
Returns the value of theexclusiveSetrecord component.- Returns:
- the value of the
exclusiveSetrecord component
-
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-