Interface EnchantmentEntityEffect
- All Superinterfaces:
EnchantmentLocationBasedEffect
- All Known Implementing Classes:
AllOf.EntityEffects
,ApplyMobEffect
,DamageEntity
,DamageItem
,ExplodeEffect
,Ignite
,PlaySoundEffect
,ReplaceBlock
,ReplaceDisk
,RunFunction
,SetBlockProperties
,SpawnParticlesEffect
,SummonEntityEffect
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EnchantmentEntityEffect> -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ServerLevel p_345106_, int p_346004_, EnchantedItemInUse p_344966_, Entity p_346140_, Vec3 p_345890_) static com.mojang.serialization.MapCodec
<? extends EnchantmentEntityEffect> bootstrap
(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentEntityEffect>> p_345205_) com.mojang.serialization.MapCodec
<? extends EnchantmentEntityEffect> codec()
default void
onChangedBlock
(ServerLevel p_345419_, int p_345173_, EnchantedItemInUse p_344724_, Entity p_346126_, Vec3 p_345614_, boolean p_346410_) Methods inherited from interface net.minecraft.world.item.enchantment.effects.EnchantmentLocationBasedEffect
onDeactivated
-
Field Details
-
CODEC
-
-
Method Details
-
bootstrap
static com.mojang.serialization.MapCodec<? extends EnchantmentEntityEffect> bootstrap(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentEntityEffect>> p_345205_) -
apply
void apply(ServerLevel p_345106_, int p_346004_, EnchantedItemInUse p_344966_, Entity p_346140_, Vec3 p_345890_) -
onChangedBlock
default void onChangedBlock(ServerLevel p_345419_, int p_345173_, EnchantedItemInUse p_344724_, Entity p_346126_, Vec3 p_345614_, boolean p_346410_) - Specified by:
onChangedBlock
in interfaceEnchantmentLocationBasedEffect
-
codec
com.mojang.serialization.MapCodec<? extends EnchantmentEntityEffect> codec()- Specified by:
codec
in interfaceEnchantmentLocationBasedEffect
-