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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onConversion
(MobEntity previous, MobEntity converted, EntityConversionContext conversionContext) Called when a mob is converted to another type.
-
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 instanceconverted
- the new instance for the converted entityconversionContext
- the context used for the conversion
-