--- a/net/minecraft/world/entity/ConversionParams.java +++ b/net/minecraft/world/entity/ConversionParams.java @@ -12,4 +12,11 @@ public interface AfterConversion { void finalizeConversion(T convertedEntity); } + + // Paper start - entity zap event - allow conversion to be cancelled during finalization + @FunctionalInterface + public interface CancellingAfterConversion { + boolean finalizeConversionOrCancel(final T convertedEntity); + } + // Paper start - entity zap event - allow conversion to be cancelled during finalization }