Uses of Record Class
net.minecraft.enchantment.EnchantmentEffectContext
Package
Description
-
Uses of EnchantmentEffectContext in net.minecraft.enchantment
Modifier and TypeMethodDescriptionstatic Optional
<EnchantmentEffectContext> EnchantmentHelper.chooseEquipmentWith
(ComponentType<?> componentType, LivingEntity entity, Predicate<ItemStack> stackPredicate) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.Modifier and TypeMethodDescriptionvoid
EnchantmentHelper.ContextAwareConsumer.accept
(RegistryEntry<Enchantment> enchantment, int level, EnchantmentEffectContext context) void
Enchantment.applyLocationBasedEffects
(ServerWorld world, int level, EnchantmentEffectContext context, LivingEntity user) static void
Enchantment.applyTargetedEffect
(TargetedEnchantmentEffect<EnchantmentEntityEffect> effect, ServerWorld world, int level, EnchantmentEffectContext context, Entity user, DamageSource damageSource) void
Enchantment.onHitBlock
(ServerWorld world, int level, EnchantmentEffectContext context, Entity enchantedEntity, Vec3d pos, BlockState state) void
Enchantment.onProjectileSpawned
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user) void
Enchantment.onTargetDamaged
(ServerWorld world, int level, EnchantmentEffectContext context, EnchantmentEffectTarget target, Entity user, DamageSource damageSource) void
Enchantment.onTick
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user) void
Enchantment.removeLocationBasedEffects
(int level, EnchantmentEffectContext context, LivingEntity user) -
Uses of EnchantmentEffectContext in net.minecraft.enchantment.effect
Modifier and TypeMethodDescriptionvoid
AllOfEnchantmentEffects.EntityEffects.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
AllOfEnchantmentEffects.LocationBasedEffects.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
AttributeEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
EnchantmentEntityEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) default void
EnchantmentEntityEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
EnchantmentLocationBasedEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
AllOfEnchantmentEffects.LocationBasedEffects.remove
(EnchantmentEffectContext context, Entity user, Vec3d pos, int level) void
AttributeEnchantmentEffect.remove
(EnchantmentEffectContext context, Entity user, Vec3d pos, int level) default void
EnchantmentLocationBasedEffect.remove
(EnchantmentEffectContext context, Entity user, Vec3d pos, int level) -
Uses of EnchantmentEffectContext in net.minecraft.enchantment.effect.entity
Modifier and TypeMethodDescriptionvoid
ApplyMobEffectEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
DamageEntityEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
DamageItemEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ExplodeEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
IgniteEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
PlaySoundEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ReplaceBlockEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ReplaceDiskEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
RunFunctionEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SetBlockPropertiesEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SpawnParticlesEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SummonEntityEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos)