mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 16:57:42 +01:00
15 lines
605 B
Diff
15 lines
605 B
Diff
|
--- a/net/minecraft/world/entity/ConversionParams.java
|
||
|
+++ b/net/minecraft/world/entity/ConversionParams.java
|
||
|
@@ -12,4 +12,11 @@
|
||
|
public interface AfterConversion<T extends Mob> {
|
||
|
void finalizeConversion(T convertedEntity);
|
||
|
}
|
||
|
+
|
||
|
+ // 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
|
||
|
}
|