Interface EnchantmentLocationBasedEffect
- All Known Subinterfaces:
EnchantmentEntityEffect
- All Known Implementing Classes:
AllOf.EntityEffects
,AllOf.LocationBasedEffects
,ApplyMobEffect
,DamageEntity
,DamageItem
,EnchantmentAttributeEffect
,ExplodeEffect
,Ignite
,PlaySoundEffect
,ReplaceBlock
,ReplaceDisk
,RunFunction
,SetBlockProperties
,SpawnParticlesEffect
,SummonEntityEffect
public interface EnchantmentLocationBasedEffect
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EnchantmentLocationBasedEffect> -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.MapCodec
<? extends EnchantmentLocationBasedEffect> bootstrap
(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect>> p_344274_) com.mojang.serialization.MapCodec
<? extends EnchantmentLocationBasedEffect> codec()
void
onChangedBlock
(ServerLevel p_342313_, int p_345031_, EnchantedItemInUse p_345418_, Entity p_344951_, Vec3 p_344517_, boolean p_345369_) default void
onDeactivated
(EnchantedItemInUse p_343068_, Entity p_344744_, Vec3 p_342973_, int p_342439_)
-
Field Details
-
CODEC
-
-
Method Details
-
bootstrap
static com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect> bootstrap(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect>> p_344274_) -
onChangedBlock
void onChangedBlock(ServerLevel p_342313_, int p_345031_, EnchantedItemInUse p_345418_, Entity p_344951_, Vec3 p_344517_, boolean p_345369_) -
onDeactivated
default void onDeactivated(EnchantedItemInUse p_343068_, Entity p_344744_, Vec3 p_342973_, int p_342439_) -
codec
com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect> codec()
-