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_344955_) com.mojang.serialization.MapCodec
<? extends EnchantmentLocationBasedEffect> codec()
void
onChangedBlock
(ServerLevel p_345577_, int p_345675_, EnchantedItemInUse p_345807_, Entity p_345378_, Vec3 p_344844_, boolean p_345637_) default void
onDeactivated
(EnchantedItemInUse p_346131_, Entity p_345920_, Vec3 p_345758_, int p_344750_)
-
Field Details
-
CODEC
-
-
Method Details
-
bootstrap
static com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect> bootstrap(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect>> p_344955_) -
onChangedBlock
void onChangedBlock(ServerLevel p_345577_, int p_345675_, EnchantedItemInUse p_345807_, Entity p_345378_, Vec3 p_344844_, boolean p_345637_) -
onDeactivated
default void onDeactivated(EnchantedItemInUse p_346131_, Entity p_345920_, Vec3 p_345758_, int p_344750_) -
codec
com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect> codec()
-