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_342783_, int p_345287_, EnchantedItemInUse p_343696_, Entity p_343545_, Vec3 p_342660_) static com.mojang.serialization.MapCodec
<? extends EnchantmentEntityEffect> bootstrap
(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentEntityEffect>> p_342629_) com.mojang.serialization.MapCodec
<? extends EnchantmentEntityEffect> codec()
default void
onChangedBlock
(ServerLevel p_344398_, int p_343126_, EnchantedItemInUse p_344258_, Entity p_344833_, Vec3 p_344089_, boolean p_343329_) 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_342629_) -
apply
void apply(ServerLevel p_342783_, int p_345287_, EnchantedItemInUse p_343696_, Entity p_343545_, Vec3 p_342660_) -
onChangedBlock
default void onChangedBlock(ServerLevel p_344398_, int p_343126_, EnchantedItemInUse p_344258_, Entity p_344833_, Vec3 p_344089_, boolean p_343329_) - Specified by:
onChangedBlock
in interfaceEnchantmentLocationBasedEffect
-
codec
com.mojang.serialization.MapCodec<? extends EnchantmentEntityEffect> codec()- Specified by:
codec
in interfaceEnchantmentLocationBasedEffect
-