--- a/net/minecraft/world/level/entity/EntitySection.java
+++ b/net/minecraft/world/level/entity/EntitySection.java
@@ -19,6 +_,12 @@
         this.storage = new ClassInstanceMultiMap<>(entityClazz);
     }
 
+    // Paper start - support retrieving all entities, regardless of whether they are accessible
+    public void getEntities(java.util.List<T> into) {
+        into.addAll(this.storage);
+    }
+    // Paper end - support retrieving all entities, regardless of whether they are accessible
+
     public void add(T entity) {
         this.storage.add(entity);
     }
