mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
Add missing EntityLookup#getAllMapped from Moonrise
Not used but the sources should remain synced.
This commit is contained in:
@@ -3874,10 +3874,10 @@ index 0000000000000000000000000000000000000000..1c82dcd38f789707e15e8cbec72ef9cd
|
||||
+}
|
||||
diff --git a/ca/spottedleaf/moonrise/patches/chunk_system/level/entity/EntityLookup.java b/ca/spottedleaf/moonrise/patches/chunk_system/level/entity/EntityLookup.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..7554c109c35397bc1a43dd80e87764fd78645bbf
|
||||
index 0000000000000000000000000000000000000000..2d24d03bbdb5ee0d862cbfff2219f58afffafe12
|
||||
--- /dev/null
|
||||
+++ b/ca/spottedleaf/moonrise/patches/chunk_system/level/entity/EntityLookup.java
|
||||
@@ -0,0 +1,1002 @@
|
||||
@@ -0,0 +1,1006 @@
|
||||
+package ca.spottedleaf.moonrise.patches.chunk_system.level.entity;
|
||||
+
|
||||
+import ca.spottedleaf.concurrentutil.map.ConcurrentLong2ReferenceChainedHashTable;
|
||||
@@ -4059,6 +4059,10 @@ index 0000000000000000000000000000000000000000..7554c109c35397bc1a43dd80e87764fd
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ public Iterable<Entity> getAllMapped() {
|
||||
+ return this.entityByUUID.values();
|
||||
+ }
|
||||
+
|
||||
+ public int getEntityCount() {
|
||||
+ synchronized (this.accessibleEntities) {
|
||||
+ return this.accessibleEntities.size();
|
||||
|
Reference in New Issue
Block a user