Interface EnchantmentEntityEffect

All Superinterfaces:
EnchantmentLocationBasedEffect
All Known Implementing Classes:
AllOfEnchantmentEffects.EntityEffects, ApplyMobEffectEnchantmentEffect, DamageEntityEnchantmentEffect, DamageItemEnchantmentEffect, ExplodeEnchantmentEffect, IgniteEnchantmentEffect, PlaySoundEnchantmentEffect, ReplaceBlockEnchantmentEffect, ReplaceDiskEnchantmentEffect, RunFunctionEnchantmentEffect, SetBlockPropertiesEnchantmentEffect, SpawnParticlesEnchantmentEffect, SummonEntityEnchantmentEffect

public interface EnchantmentEntityEffect extends EnchantmentLocationBasedEffect
Mappings:
Namespace Name
named net/minecraft/enchantment/effect/EnchantmentEntityEffect
intermediary net/minecraft/class_9721
official das
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<EnchantmentEntityEffect> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/enchantment/effect/EnchantmentEntityEffect;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_51707 Lnet/minecraft/class_9721;field_51707:Lcom/mojang/serialization/Codec;
      official b Ldas;b:Lcom/mojang/serialization/Codec;
  • Method Details

    • registerAndGetDefault

      static com.mojang.serialization.MapCodec<? extends EnchantmentEntityEffect> registerAndGetDefault(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentEntityEffect>> registry)
      Mappings:
      Namespace Name Mixin selector
      named registerAndGetDefault Lnet/minecraft/enchantment/effect/EnchantmentEntityEffect;registerAndGetDefault(Lnet/minecraft/registry/Registry;)Lcom/mojang/serialization/MapCodec;
      intermediary method_60231 Lnet/minecraft/class_9721;method_60231(Lnet/minecraft/class_2378;)Lcom/mojang/serialization/MapCodec;
      official a Ldas;a(Ljz;)Lcom/mojang/serialization/MapCodec;
    • apply

      void apply(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/enchantment/effect/EnchantmentEntityEffect;apply(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_60220 Lnet/minecraft/class_9721;method_60220(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;)V
      official a Ldas;a(Laqu;ILdab;Lbsr;Lexc;)V
    • apply

      default void apply(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied)
      Specified by:
      apply in interface EnchantmentLocationBasedEffect
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/enchantment/effect/EnchantmentLocationBasedEffect;apply(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/enchantment/EnchantmentEffectContext;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;Z)V
      intermediary method_60221 Lnet/minecraft/class_9722;method_60221(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;Z)V
      official a Ldat;a(Laqu;ILdab;Lbsr;Lexc;Z)V
    • getCodec

      com.mojang.serialization.MapCodec<? extends EnchantmentEntityEffect> getCodec()
      Specified by:
      getCodec in interface EnchantmentLocationBasedEffect
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/enchantment/effect/EnchantmentLocationBasedEffect;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_60219 Lnet/minecraft/class_9722;method_60219()Lcom/mojang/serialization/MapCodec;
      official a Ldat;a()Lcom/mojang/serialization/MapCodec;