- 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.
-
Method Summary
void
Called when a mob is converted to another type.
-
Method Details
-
onConversion
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