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>cachedEntityListprivate Int2ObjectMap<Entity>entitiesprivate Int2ObjectMap<Entity>field_27255 -
Constructor Summary
Constructors Constructor Description EntityList() -
Method Summary
Modifier and Type Method Description voidaddEntity(Entity entity)voidforEachEntity(Consumer<Entity> action)Runs an action on every single entity.booleanhasEntity(Entity entity)private voidmethod_31789()voidremoveEntity(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
-