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
(TargetedEnchantmentEffectType<EnchantmentEntityEffectType> effectType, ServerWorld world, int level, EnchantmentEffectContext context, Entity user, DamageSource damageSource) void
Enchantment.onHitBlock
(ServerWorld world, int level, EnchantmentEffectContext context, Entity enchantedEntity, Vec3d pos) 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
AllOfEnchantmentEffectTypes.EntityEffects.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
AllOfEnchantmentEffectTypes.LocationBasedEffects.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
AttributeEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
EnchantmentEntityEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) default void
EnchantmentEntityEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
EnchantmentLocationBasedEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
AllOfEnchantmentEffectTypes.LocationBasedEffects.remove
(EnchantmentEffectContext context, Entity user, Vec3d pos, int level) void
AttributeEnchantmentEffectType.remove
(EnchantmentEffectContext context, Entity user, Vec3d pos, int level) default void
EnchantmentLocationBasedEffectType.remove
(EnchantmentEffectContext context, Entity user, Vec3d pos, int level) -
Uses of EnchantmentEffectContext in net.minecraft.enchantment.effect.entity
Modifier and TypeMethodDescriptionvoid
ApplyMobEffectEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
DamageEntityEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
DamageItemEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ExplodeEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
IgniteEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
PlaySoundEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ReplaceBlockEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ReplaceDiscEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
RunFunctionEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SetBlockPropertiesEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SpawnParticlesEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SummonEntityEnchantmentEffectType.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos)