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(MobEntity previous, MobEntity converted, boolean keepEquipment)
    Called when a mob is converted to another type.
  • Method Details

    • onConversion

      void onConversion(MobEntity previous, MobEntity converted, boolean keepEquipment)
      Called when a mob is converted to another type.
      Parameters:
      previous - the previous entity instance
      converted - the new instance for the converted entity
      keepEquipment - whether the converted entity should keep the previous one's equipment, like armor