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/Enchantment
intermediary net/minecraft/class_1887
official czm
named description
intermediary comp_2686
official e
named definition
intermediary comp_2687
official f
named exclusiveSet
intermediary comp_2688
official g
named effects
intermediary comp_2689
official h
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Enchantment> private final Enchantment.Definition
The field for thedefinition
record component.private final Text
The field for thedescription
record component.private final ComponentMap
The field for theeffects
record component.static final com.mojang.serialization.Codec
<RegistryEntry<Enchantment>> static final PacketCodec
<RegistryByteBuf, RegistryEntry<Enchantment>> private final RegistryEntryList
<Enchantment> The field for theexclusiveSet
record component.static final int
-
Constructor Summary
ConstructorDescriptionEnchantment
(Text text, Enchantment.Definition definition, RegistryEntryList<Enchantment> registryEntryList, ComponentMap componentMap) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> void
applyEffects
(List<EnchantmentEffectEntry<T>> conditions, LootContext lootContext, Consumer<T> effectConsumer) void
applyLocationBasedEffects
(ServerWorld world, int level, EnchantmentEffectContext context, LivingEntity user) static void
applyTargetedEffect
(TargetedEnchantmentEffectType<EnchantmentEntityEffectType> effectType, ServerWorld world, int level, EnchantmentEffectContext context, Entity user, DamageSource damageSource) static Enchantment.Builder
builder
(Enchantment.Definition definition) static boolean
canBeCombined
(RegistryEntry<Enchantment> first, RegistryEntry<Enchantment> second) static Enchantment.Cost
constantCost
(int base) static LootContext
createEnchantedDamageLootContext
(ServerWorld world, int level, Entity entity, DamageSource damageSource) private static LootContext
createEnchantedEntityLootContext
(ServerWorld world, int level, Entity entity, Vec3d pos) private static LootContext
createEnchantedItemLootContext
(ServerWorld world, int level, ItemStack stack) private static LootContext
createEnchantedLocationLootContext
(ServerWorld world, int level, Entity entity, boolean enchantmentActive) Returns the value of thedefinition
record component.static Enchantment.Definition
definition
(RegistryEntryList<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) static Enchantment.Definition
definition
(RegistryEntryList<Item> supportedItems, RegistryEntryList<Item> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) Returns the value of thedescription
record component.effects()
Returns the value of theeffects
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexclusiveSet
record component.int
<T> List
<T> getEffect
(ComponentType<List<T>> type) getEquipment
(LivingEntity entity) int
int
getMaxPower
(int level) int
int
getMinPower
(int level) static Text
getName
(RegistryEntry<Enchantment> enchantment, int level) int
boolean
hasDamageImmunityTo
(ServerWorld world, int level, Entity user, DamageSource damageSource) final int
hashCode()
Returns a hash code value for this object.boolean
isAcceptableItem
(ItemStack stack) boolean
isPrimaryItem
(ItemStack stack) boolean
isSupportedItem
(ItemStack stack) static Enchantment.Cost
leveledCost
(int base, int perLevel) void
modifyAmmoUse
(ServerWorld world, int level, ItemStack projectileStack, MutableFloat ammoUse) void
modifyArmorEffectiveness
(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat armorEffectiveness) void
modifyBlockExperience
(ServerWorld world, int level, ItemStack stack, MutableFloat blockExperience) void
modifyCrossbowChargeTime
(Random random, int level, MutableFloat crossbowChargeTime) void
modifyDamage
(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat damage) void
modifyDamageProtection
(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat damageProtection) void
modifyFishingLuckBonus
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat fishingLuckBonus) void
modifyFishingTimeReduction
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat fishingTimeReduction) void
modifyItemDamage
(ServerWorld world, int level, ItemStack stack, MutableFloat itemDamage) void
modifyKnockback
(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat knockback) void
modifyMobExperience
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat mobExperience) void
modifyProjectileCount
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat projectileCount) void
modifyProjectilePiercing
(ServerWorld world, int level, ItemStack stack, MutableFloat projectilePiercing) void
modifyProjectileSpread
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat projectileSpread) void
modifyRepairWithXp
(ServerWorld world, int level, ItemStack stack, MutableFloat repairWithXp) void
modifySmashDamagePerFallenBlock
(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat smashDamagePerFallenBlock) void
modifyTridentReturnAcceleration
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat tridentReturnAcceleration) void
modifyTridentSpinAttackStrength
(Random random, int level, MutableFloat tridentSpinAttackStrength) private void
modifyValue
(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffectType>>> type, ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat value) private void
modifyValue
(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffectType>>> type, ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat value) private void
modifyValue
(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffectType>>> type, ServerWorld world, int level, ItemStack stack, MutableFloat value) void
modifyValue
(ComponentType<EnchantmentValueEffectType> type, Random random, int level, MutableFloat value) void
onHitBlock
(ServerWorld world, int level, EnchantmentEffectContext context, Entity enchantedEntity, Vec3d pos) void
onProjectileSpawned
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user) void
onTargetDamaged
(ServerWorld world, int level, EnchantmentEffectContext context, EnchantmentEffectTarget target, Entity user, DamageSource damageSource) void
onTick
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user) void
removeLocationBasedEffects
(int level, EnchantmentEffectContext context, LivingEntity user) boolean
slotMatches
(EquipmentSlot slot) toString()
Returns a string representation of this record class.
-
Field Details
-
description
The field for thedescription
record component. -
definition
The field for thedefinition
record component. -
exclusiveSet
The field for theexclusiveSet
record component. -
effects
The field for theeffects
record component. -
MAX_LEVEL
public static final int MAX_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LEVEL
Lnet/minecraft/enchantment/Enchantment;MAX_LEVEL:I
intermediary field_51949
Lnet/minecraft/class_1887;field_51949:I
official a
Lczm;a:I
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/enchantment/Enchantment;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_51643
Lnet/minecraft/class_1887;field_51643:Lcom/mojang/serialization/Codec;
official b
Lczm;b:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODEC
Lnet/minecraft/enchantment/Enchantment;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_51644
Lnet/minecraft/class_1887;field_51644:Lcom/mojang/serialization/Codec;
official c
Lczm;c:Lcom/mojang/serialization/Codec;
-
ENTRY_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_PACKET_CODEC
Lnet/minecraft/enchantment/Enchantment;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_51950
Lnet/minecraft/class_1887;field_51950:Lnet/minecraft/class_9139;
official d
Lczm;d:Lys;
-
-
Constructor Details
-
Enchantment
public Enchantment(Text text, Enchantment.Definition definition, RegistryEntryList<Enchantment> registryEntryList, ComponentMap componentMap)
-
-
Method Details
-
constantCost
- Mappings:
Namespace Name Mixin selector named constantCost
Lnet/minecraft/enchantment/Enchantment;constantCost(I)Lnet/minecraft/enchantment/Enchantment$Cost;
intermediary method_58440
Lnet/minecraft/class_1887;method_58440(I)Lnet/minecraft/class_1887$class_9426;
official a
Lczm;a(I)Lczm$b;
-
leveledCost
- Mappings:
Namespace Name Mixin selector named leveledCost
Lnet/minecraft/enchantment/Enchantment;leveledCost(II)Lnet/minecraft/enchantment/Enchantment$Cost;
intermediary method_58441
Lnet/minecraft/class_1887;method_58441(II)Lnet/minecraft/class_1887$class_9426;
official a
Lczm;a(II)Lczm$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 definition
Lnet/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_58443
Lnet/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 a
Lczm;a(Ljn;Ljn;IILczm$b;Lczm$b;I[Lbsp;)Lczm$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 definition
Lnet/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_58442
Lnet/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 a
Lczm;a(Ljn;IILczm$b;Lczm$b;I[Lbsp;)Lczm$c;
-
getEquipment
- Mappings:
Namespace Name Mixin selector named getEquipment
Lnet/minecraft/enchantment/Enchantment;getEquipment(Lnet/minecraft/entity/LivingEntity;)Ljava/util/Map;
intermediary method_8185
Lnet/minecraft/class_1887;method_8185(Lnet/minecraft/class_1309;)Ljava/util/Map;
official a
Lczm;a(Lbtc;)Ljava/util/Map;
-
getApplicableItems
- Mappings:
Namespace Name Mixin selector named getApplicableItems
Lnet/minecraft/enchantment/Enchantment;getApplicableItems()Lnet/minecraft/registry/entry/RegistryEntryList;
intermediary method_56109
Lnet/minecraft/class_1887;method_56109()Lnet/minecraft/class_6885;
official a
Lczm;a()Ljn;
-
slotMatches
- Mappings:
Namespace Name Mixin selector named slotMatches
Lnet/minecraft/enchantment/Enchantment;slotMatches(Lnet/minecraft/entity/EquipmentSlot;)Z
intermediary method_60026
Lnet/minecraft/class_1887;method_60026(Lnet/minecraft/class_1304;)Z
official a
Lczm;a(Lbso;)Z
-
isPrimaryItem
- Mappings:
Namespace Name Mixin selector named isPrimaryItem
Lnet/minecraft/enchantment/Enchantment;isPrimaryItem(Lnet/minecraft/item/ItemStack;)Z
intermediary method_58444
Lnet/minecraft/class_1887;method_58444(Lnet/minecraft/class_1799;)Z
official a
Lczm;a(Lcud;)Z
-
isSupportedItem
- Mappings:
Namespace Name Mixin selector named isSupportedItem
Lnet/minecraft/enchantment/Enchantment;isSupportedItem(Lnet/minecraft/item/ItemStack;)Z
intermediary method_60046
Lnet/minecraft/class_1887;method_60046(Lnet/minecraft/class_1799;)Z
official b
Lczm;b(Lcud;)Z
-
getWeight
public int getWeight()- Mappings:
Namespace Name Mixin selector named getWeight
Lnet/minecraft/enchantment/Enchantment;getWeight()I
intermediary method_58445
Lnet/minecraft/class_1887;method_58445()I
official b
Lczm;b()I
-
getAnvilCost
public int getAnvilCost()- Mappings:
Namespace Name Mixin selector named getAnvilCost
Lnet/minecraft/enchantment/Enchantment;getAnvilCost()I
intermediary method_58446
Lnet/minecraft/class_1887;method_58446()I
official c
Lczm;c()I
-
getMinLevel
public int getMinLevel()- Mappings:
Namespace Name Mixin selector named getMinLevel
Lnet/minecraft/enchantment/Enchantment;getMinLevel()I
intermediary method_8187
Lnet/minecraft/class_1887;method_8187()I
official d
Lczm;d()I
-
getMaxLevel
public int getMaxLevel()- Mappings:
Namespace Name Mixin selector named getMaxLevel
Lnet/minecraft/enchantment/Enchantment;getMaxLevel()I
intermediary method_8183
Lnet/minecraft/class_1887;method_8183()I
official e
Lczm;e()I
-
getMinPower
public int getMinPower(int level) - Mappings:
Namespace Name Mixin selector named getMinPower
Lnet/minecraft/enchantment/Enchantment;getMinPower(I)I
intermediary method_8182
Lnet/minecraft/class_1887;method_8182(I)I
official b
Lczm;b(I)I
-
getMaxPower
public int getMaxPower(int level) - Mappings:
Namespace Name Mixin selector named getMaxPower
Lnet/minecraft/enchantment/Enchantment;getMaxPower(I)I
intermediary method_20742
Lnet/minecraft/class_1887;method_20742(I)I
official c
Lczm;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 canBeCombined
Lnet/minecraft/enchantment/Enchantment;canBeCombined(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/entry/RegistryEntry;)Z
intermediary method_60033
Lnet/minecraft/class_1887;method_60033(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;)Z
official a
Lczm;a(Ljj;Ljj;)Z
-
getName
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/enchantment/Enchantment;getName(Lnet/minecraft/registry/entry/RegistryEntry;I)Lnet/minecraft/text/Text;
intermediary method_8179
Lnet/minecraft/class_1887;method_8179(Lnet/minecraft/class_6880;I)Lnet/minecraft/class_2561;
official a
Lczm;a(Ljj;I)Lwu;
-
isAcceptableItem
- Mappings:
Namespace Name Mixin selector named isAcceptableItem
Lnet/minecraft/enchantment/Enchantment;isAcceptableItem(Lnet/minecraft/item/ItemStack;)Z
intermediary method_8192
Lnet/minecraft/class_1887;method_8192(Lnet/minecraft/class_1799;)Z
official c
Lczm;c(Lcud;)Z
-
getEffect
- Mappings:
Namespace Name Mixin selector named getEffect
Lnet/minecraft/enchantment/Enchantment;getEffect(Lnet/minecraft/component/ComponentType;)Ljava/util/List;
intermediary method_60034
Lnet/minecraft/class_1887;method_60034(Lnet/minecraft/class_9331;)Ljava/util/List;
official a
Lczm;a(Lkm;)Ljava/util/List;
-
hasDamageImmunityTo
public boolean hasDamageImmunityTo(ServerWorld world, int level, Entity user, DamageSource damageSource) - Mappings:
Namespace Name Mixin selector named hasDamageImmunityTo
Lnet/minecraft/enchantment/Enchantment;hasDamageImmunityTo(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)Z
intermediary method_60014
Lnet/minecraft/class_1887;method_60014(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Lnet/minecraft/class_1282;)Z
official a
Lczm;a(Laqm;ILbsh;Lbra;)Z
-
modifyDamageProtection
public void modifyDamageProtection(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat damageProtection) - Mappings:
Namespace Name Mixin selector named modifyDamageProtection
Lnet/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;)V
intermediary method_60018
Lnet/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;)V
official a
Lczm;a(Laqm;ILcud;Lbsh;Lbra;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 modifyItemDamage
Lnet/minecraft/enchantment/Enchantment;modifyItemDamage(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60020
Lnet/minecraft/class_1887;method_60020(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official a
Lczm;a(Laqm;ILcud;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 modifyAmmoUse
Lnet/minecraft/enchantment/Enchantment;modifyAmmoUse(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60043
Lnet/minecraft/class_1887;method_60043(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official b
Lczm;b(Laqm;ILcud;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 modifyProjectilePiercing
Lnet/minecraft/enchantment/Enchantment;modifyProjectilePiercing(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60050
Lnet/minecraft/class_1887;method_60050(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official c
Lczm;c(Laqm;ILcud;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 modifyBlockExperience
Lnet/minecraft/enchantment/Enchantment;modifyBlockExperience(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60053
Lnet/minecraft/class_1887;method_60053(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official d
Lczm;d(Laqm;ILcud;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 modifyMobExperience
Lnet/minecraft/enchantment/Enchantment;modifyMobExperience(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60019
Lnet/minecraft/class_1887;method_60019(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official a
Lczm;a(Laqm;ILcud;Lbsh;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 modifyRepairWithXp
Lnet/minecraft/enchantment/Enchantment;modifyRepairWithXp(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60056
Lnet/minecraft/class_1887;method_60056(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official e
Lczm;e(Laqm;ILcud;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 modifyTridentReturnAcceleration
Lnet/minecraft/enchantment/Enchantment;modifyTridentReturnAcceleration(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60042
Lnet/minecraft/class_1887;method_60042(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official b
Lczm;b(Laqm;ILcud;Lbsh;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyTridentSpinAttackStrength
public void modifyTridentSpinAttackStrength(Random random, int level, MutableFloat tridentSpinAttackStrength) - Mappings:
Namespace Name Mixin selector named modifyTridentSpinAttackStrength
Lnet/minecraft/enchantment/Enchantment;modifyTridentSpinAttackStrength(Lnet/minecraft/util/math/random/Random;ILorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60049
Lnet/minecraft/class_1887;method_60049(Lnet/minecraft/class_5819;ILorg/apache/commons/lang3/mutable/MutableFloat;)V
official a
Lczm;a(Layo;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 modifyFishingTimeReduction
Lnet/minecraft/enchantment/Enchantment;modifyFishingTimeReduction(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60052
Lnet/minecraft/class_1887;method_60052(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official c
Lczm;c(Laqm;ILcud;Lbsh;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 modifyFishingLuckBonus
Lnet/minecraft/enchantment/Enchantment;modifyFishingLuckBonus(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60055
Lnet/minecraft/class_1887;method_60055(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official d
Lczm;d(Laqm;ILcud;Lbsh;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 modifyDamage
Lnet/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;)V
intermediary method_60041
Lnet/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;)V
official b
Lczm;b(Laqm;ILcud;Lbsh;Lbra;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 modifySmashDamagePerFallenBlock
Lnet/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;)V
intermediary method_60048
Lnet/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;)V
official c
Lczm;c(Laqm;ILcud;Lbsh;Lbra;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 modifyKnockback
Lnet/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;)V
intermediary method_60051
Lnet/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;)V
official d
Lczm;d(Laqm;ILcud;Lbsh;Lbra;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 modifyArmorEffectiveness
Lnet/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;)V
intermediary method_60054
Lnet/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;)V
official e
Lczm;e(Laqm;ILcud;Lbsh;Lbra;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
applyTargetedEffect
public static void applyTargetedEffect(TargetedEnchantmentEffectType<EnchantmentEntityEffectType> effectType, ServerWorld world, int level, EnchantmentEffectContext context, Entity user, DamageSource damageSource) - Mappings:
Namespace Name Mixin selector named applyTargetedEffect
Lnet/minecraft/enchantment/Enchantment;applyTargetedEffect(Lnet/minecraft/enchantment/effect/TargetedEnchantmentEffectType;Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)V
intermediary method_60031
Lnet/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;)V
official a
Lczm;a(Lczu;Laqm;ILczl;Lbsh;Lbra;)V
-
onTargetDamaged
public void onTargetDamaged(ServerWorld world, int level, EnchantmentEffectContext context, EnchantmentEffectTarget target, Entity user, DamageSource damageSource) - Mappings:
Namespace Name Mixin selector named onTargetDamaged
Lnet/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;)V
intermediary method_8189
Lnet/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;)V
official a
Lczm;a(Laqm;ILczl;Lczq;Lbsh;Lbra;)V
-
modifyProjectileCount
public void modifyProjectileCount(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat projectileCount) - Mappings:
Namespace Name Mixin selector named modifyProjectileCount
Lnet/minecraft/enchantment/Enchantment;modifyProjectileCount(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60057
Lnet/minecraft/class_1887;method_60057(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official e
Lczm;e(Laqm;ILcud;Lbsh;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 modifyProjectileSpread
Lnet/minecraft/enchantment/Enchantment;modifyProjectileSpread(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60059
Lnet/minecraft/class_1887;method_60059(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official f
Lczm;f(Laqm;ILcud;Lbsh;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyCrossbowChargeTime
- Mappings:
Namespace Name Mixin selector named modifyCrossbowChargeTime
Lnet/minecraft/enchantment/Enchantment;modifyCrossbowChargeTime(Lnet/minecraft/util/math/random/Random;ILorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60058
Lnet/minecraft/class_1887;method_60058(Lnet/minecraft/class_5819;ILorg/apache/commons/lang3/mutable/MutableFloat;)V
official b
Lczm;b(Layo;ILorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyValue
public void modifyValue(ComponentType<EnchantmentValueEffectType> type, Random random, int level, MutableFloat value) - Mappings:
Namespace Name Mixin selector named modifyValue
Lnet/minecraft/enchantment/Enchantment;modifyValue(Lnet/minecraft/component/ComponentType;Lnet/minecraft/util/math/random/Random;ILorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60506
Lnet/minecraft/class_1887;method_60506(Lnet/minecraft/class_9331;Lnet/minecraft/class_5819;ILorg/apache/commons/lang3/mutable/MutableFloat;)V
official a
Lczm;a(Lkm;Layo;ILorg/apache/commons/lang3/mutable/MutableFloat;)V
-
onTick
- Mappings:
Namespace Name Mixin selector named onTick
Lnet/minecraft/enchantment/Enchantment;onTick(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/Entity;)V
intermediary method_60021
Lnet/minecraft/class_1887;method_60021(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;)V
official a
Lczm;a(Laqm;ILczl;Lbsh;)V
-
onProjectileSpawned
public void onProjectileSpawned(ServerWorld world, int level, EnchantmentEffectContext context, Entity user) - Mappings:
Namespace Name Mixin selector named onProjectileSpawned
Lnet/minecraft/enchantment/Enchantment;onProjectileSpawned(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/Entity;)V
intermediary method_60044
Lnet/minecraft/class_1887;method_60044(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;)V
official b
Lczm;b(Laqm;ILczl;Lbsh;)V
-
onHitBlock
public void onHitBlock(ServerWorld world, int level, EnchantmentEffectContext context, Entity enchantedEntity, Vec3d pos) - Mappings:
Namespace Name Mixin selector named onHitBlock
Lnet/minecraft/enchantment/Enchantment;onHitBlock(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)V
intermediary method_60023
Lnet/minecraft/class_1887;method_60023(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;)V
official a
Lczm;a(Laqm;ILczl;Lbsh;Lewh;)V
-
modifyValue
private void modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffectType>>> type, ServerWorld world, int level, ItemStack stack, MutableFloat value) - Mappings:
Namespace Name Mixin selector named modifyValue
Lnet/minecraft/enchantment/Enchantment;modifyValue(Lnet/minecraft/component/ComponentType;Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
intermediary method_60037
Lnet/minecraft/class_1887;method_60037(Lnet/minecraft/class_9331;Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
official a
Lczm;a(Lkm;Laqm;ILcud;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyValue
private void modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffectType>>> type, ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat value) - Mappings:
Namespace Name Mixin selector named modifyValue
Lnet/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;)V
intermediary method_60036
Lnet/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;)V
official a
Lczm;a(Lkm;Laqm;ILcud;Lbsh;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
-
modifyValue
private void modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffectType>>> type, ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat value) - Mappings:
Namespace Name Mixin selector named modifyValue
Lnet/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;)V
intermediary method_60035
Lnet/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;)V
official a
Lczm;a(Lkm;Laqm;ILcud;Lbsh;Lbra;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 createEnchantedDamageLootContext
Lnet/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_60040
Lnet/minecraft/class_1887;method_60040(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Lnet/minecraft/class_1282;)Lnet/minecraft/class_47;
official b
Lczm;b(Laqm;ILbsh;Lbra;)Leqw;
-
createEnchantedItemLootContext
private static LootContext createEnchantedItemLootContext(ServerWorld world, int level, ItemStack stack) - Mappings:
Namespace Name Mixin selector named createEnchantedItemLootContext
Lnet/minecraft/enchantment/Enchantment;createEnchantedItemLootContext(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;)Lnet/minecraft/loot/context/LootContext;
intermediary method_60017
Lnet/minecraft/class_1887;method_60017(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;)Lnet/minecraft/class_47;
official a
Lczm;a(Laqm;ILcud;)Leqw;
-
createEnchantedLocationLootContext
private static LootContext createEnchantedLocationLootContext(ServerWorld world, int level, Entity entity, boolean enchantmentActive) - Mappings:
Namespace Name Mixin selector named createEnchantedLocationLootContext
Lnet/minecraft/enchantment/Enchantment;createEnchantedLocationLootContext(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/entity/Entity;Z)Lnet/minecraft/loot/context/LootContext;
intermediary method_60016
Lnet/minecraft/class_1887;method_60016(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Z)Lnet/minecraft/class_47;
official a
Lczm;a(Laqm;ILbsh;Z)Leqw;
-
createEnchantedEntityLootContext
private static LootContext createEnchantedEntityLootContext(ServerWorld world, int level, Entity entity, Vec3d pos) - Mappings:
Namespace Name Mixin selector named createEnchantedEntityLootContext
Lnet/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_60015
Lnet/minecraft/class_1887;method_60015(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Lnet/minecraft/class_243;)Lnet/minecraft/class_47;
official a
Lczm;a(Laqm;ILbsh;Lewh;)Leqw;
-
applyEffects
private static <T> void applyEffects(List<EnchantmentEffectEntry<T>> conditions, LootContext lootContext, Consumer<T> effectConsumer) - Mappings:
Namespace Name Mixin selector named applyEffects
Lnet/minecraft/enchantment/Enchantment;applyEffects(Ljava/util/List;Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)V
intermediary method_60032
Lnet/minecraft/class_1887;method_60032(Ljava/util/List;Lnet/minecraft/class_47;Ljava/util/function/Consumer;)V
official a
Lczm;a(Ljava/util/List;Leqw;Ljava/util/function/Consumer;)V
-
applyLocationBasedEffects
public void applyLocationBasedEffects(ServerWorld world, int level, EnchantmentEffectContext context, LivingEntity user) - Mappings:
Namespace Name Mixin selector named applyLocationBasedEffects
Lnet/minecraft/enchantment/Enchantment;applyLocationBasedEffects(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/LivingEntity;)V
intermediary method_60025
Lnet/minecraft/class_1887;method_60025(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1309;)V
official a
Lczm;a(Laqm;ILczl;Lbtc;)V
-
removeLocationBasedEffects
public void removeLocationBasedEffects(int level, EnchantmentEffectContext context, LivingEntity user) - Mappings:
Namespace Name Mixin selector named removeLocationBasedEffects
Lnet/minecraft/enchantment/Enchantment;removeLocationBasedEffects(ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/LivingEntity;)V
intermediary method_60013
Lnet/minecraft/class_1887;method_60013(ILnet/minecraft/class_9699;Lnet/minecraft/class_1309;)V
official a
Lczm;a(ILczl;Lbtc;)V
-
builder
- Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/enchantment/Enchantment;builder(Lnet/minecraft/enchantment/Enchantment$Definition;)Lnet/minecraft/enchantment/Enchantment$Builder;
intermediary method_60030
Lnet/minecraft/class_1887;method_60030(Lnet/minecraft/class_1887$class_9427;)Lnet/minecraft/class_1887$class_9700;
official a
Lczm;a(Lczm$c;)Lczm$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 thedescription
record component.- Returns:
- the value of the
description
record component
-
definition
Returns the value of thedefinition
record component.- Returns:
- the value of the
definition
record component
-
exclusiveSet
Returns the value of theexclusiveSet
record component.- Returns:
- the value of the
exclusiveSet
record component
-
effects
Returns the value of theeffects
record component.- Returns:
- the value of the
effects
record component
-