Interface ServerLivingEntityEvents.MobConversion

Enclosing class:
ServerLivingEntityEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ServerLivingEntityEvents.MobConversion
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onConversion(net.minecraft.world.entity.Mob previous, net.minecraft.world.entity.Mob converted, net.minecraft.world.entity.ConversionParams conversionContext)
    Called when a mob is converted to another type.
  • Method Details

    • onConversion

      void onConversion(net.minecraft.world.entity.Mob previous, net.minecraft.world.entity.Mob converted, net.minecraft.world.entity.ConversionParams conversionContext)
      Called when a mob is converted to another type.
      Parameters:
      previous - the previous entity instance
      converted - the new instance for the converted entity
      conversionContext - the context used for the conversion