PaperMC/paper-server/patches/sources/net/minecraft/world/entity/ConversionParams.java.patch

15 lines
592 B
Diff
Raw Normal View History

2016-10-17 08:19:30 +02:00
--- a/net/minecraft/world/entity/ConversionParams.java
+++ b/net/minecraft/world/entity/ConversionParams.java
2024-12-14 13:05:27 +01:00
@@ -12,4 +_,11 @@
2016-10-17 08:19:30 +02:00
public interface AfterConversion<T extends Mob> {
2024-12-14 13:05:27 +01:00
void finalizeConversion(T mob);
2016-10-17 08:19:30 +02:00
}
+
+ // Paper start - entity zap event - allow conversion to be cancelled during finalization
+ @FunctionalInterface
+ public interface CancellingAfterConversion<T extends Mob> {
+ boolean finalizeConversionOrCancel(final T convertedEntity);
+ }
+ // Paper start - entity zap event - allow conversion to be cancelled during finalization
}