--- a/net/minecraft/world/entity/ai/navigation/GroundPathNavigation.java
+++ b/net/minecraft/world/entity/ai/navigation/GroundPathNavigation.java
@@ -42,7 +_,7 @@
     }
 
     @Override
-    public Path createPath(BlockPos pos, int accuracy) {
+    public Path createPath(BlockPos pos, @javax.annotation.Nullable Entity entity, int accuracy) { // Paper - EntityPathfindEvent
         LevelChunk chunkNow = this.level.getChunkSource().getChunkNow(SectionPos.blockToSectionCoord(pos.getX()), SectionPos.blockToSectionCoord(pos.getZ()));
         if (chunkNow == null) {
             return null;
@@ -51,7 +_,7 @@
                 pos = this.findSurfacePosition(chunkNow, pos, accuracy);
             }
 
-            return super.createPath(pos, accuracy);
+            return super.createPath(pos, entity, accuracy); // Paper - EntityPathfindEvent
         }
     }
 
@@ -91,7 +_,7 @@
 
     @Override
     public Path createPath(Entity entity, int accuracy) {
-        return this.createPath(entity.blockPosition(), accuracy);
+        return this.createPath(entity.blockPosition(), entity, accuracy); // Paper - EntityPathfindEvent
     }
 
     private int getSurfaceY() {
