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 Details

    • onConversion

      void onConversion(MobEntity previous, MobEntity converted, EntityConversionContext 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