MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / getEntities

Method getEntities

src/main/java/com/volmit/adapt/util/Cuboid.java:129–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 }
128
129 public List<Entity> getEntities() {
130 List<Entity> en = new ArrayList<>();
131
132 for (Chunk i : getChunks()) {
133 for (Entity j : i.getEntities()) {
134 if (contains(j.getLocation())) {
135 en.add(j);
136 }
137 }
138 }
139
140 return en;
141 }
142
143 /**
144 * Set the locations

Callers 1

getNearbyEntitiesMethod · 0.80

Calls 4

getChunksMethod · 0.95
containsMethod · 0.95
addMethod · 0.65
getLocationMethod · 0.45

Tested by

no test coverage detected