Package net.minecraft.world
Class EntityList
java.lang.Object
net.minecraft.world.EntityList
public class EntityList extends Object
-
Field Summary
Fields Modifier and Type Field Description private Int2ObjectMap<Entity>
cachedEntityList
private Int2ObjectMap<Entity>
entities
private Int2ObjectMap<Entity>
field_27255
-
Constructor Summary
Constructors Constructor Description EntityList()
-
Method Summary
Modifier and Type Method Description void
addEntity(Entity entity)
void
forEachEntity(Consumer<Entity> action)
Runs an action on every single entity.boolean
hasEntity(Entity entity)
private void
method_31789()
void
removeEntity(Entity entity)
-
Field Details
-
entities
-
field_27255
-
cachedEntityList
-
-
Constructor Details
-
EntityList
public EntityList()
-
-
Method Details
-
method_31789
private void method_31789() -
addEntity
-
removeEntity
-
hasEntity
-
forEachEntity
Runs an action on every single entity.- Throws:
UnsupportedOperationException
- if there is an attempt to have more than one concurrent iteration
-