Package net.minecraft.world
Class EntityList
java.lang.Object
net.minecraft.world.EntityList
A storage of entities that supports modification during iteration.
The entities are stored by their network IDs.
- See Also:
- Mappings:
Namespace Name named net/minecraft/world/EntityListintermediary net/minecraft/class_5574official dxm
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Int2ObjectMap<Entity> private @Nullable Int2ObjectMap<Entity> private Int2ObjectMap<Entity> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
entities
- Mappings:
Namespace Name Mixin selector named entitiesLnet/minecraft/world/EntityList;entities:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_27254Lnet/minecraft/class_5574;field_27254:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;official aLdxm;a:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
temp
- Mappings:
Namespace Name Mixin selector named tempLnet/minecraft/world/EntityList;temp:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_27255Lnet/minecraft/class_5574;field_27255:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;official bLdxm;b:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
iterating
- Mappings:
Namespace Name Mixin selector named iteratingLnet/minecraft/world/EntityList;iterating:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_27256Lnet/minecraft/class_5574;field_27256:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;official cLdxm;c:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
-
Constructor Details
-
EntityList
public EntityList()
-
-
Method Details
-
ensureSafe
private void ensureSafe()Ensures that the modifiedentitiesmap is not currently iterated. Ifentitiesis iterated, this moves its value totempso modification toentitiesis safe.- Mappings:
Namespace Name Mixin selector named ensureSafeLnet/minecraft/world/EntityList;ensureSafe()Vintermediary method_31789Lnet/minecraft/class_5574;method_31789()Vofficial aLdxm;a()V
-
add
- Mappings:
Namespace Name Mixin selector named addLnet/minecraft/world/EntityList;add(Lnet/minecraft/entity/Entity;)Vintermediary method_31790Lnet/minecraft/class_5574;method_31790(Lnet/minecraft/class_1297;)Vofficial aLdxm;a(Lbsr;)V
-
remove
- Mappings:
Namespace Name Mixin selector named removeLnet/minecraft/world/EntityList;remove(Lnet/minecraft/entity/Entity;)Vintermediary method_31792Lnet/minecraft/class_5574;method_31792(Lnet/minecraft/class_1297;)Vofficial bLdxm;b(Lbsr;)V
-
has
- Mappings:
Namespace Name Mixin selector named hasLnet/minecraft/world/EntityList;has(Lnet/minecraft/entity/Entity;)Zintermediary method_31793Lnet/minecraft/class_5574;method_31793(Lnet/minecraft/class_1297;)Zofficial cLdxm;c(Lbsr;)Z
-
forEach
Runs anactionon every entity in this storage.If this storage is updated during the iteration, the iteration will not be updated to reflect updated contents. For example, if an entity is added by the
action, theactionwon't run on that entity later.- Throws:
UnsupportedOperationException- if this is called before an iteration has finished, such as within theactionor from another thread- Mappings:
Namespace Name Mixin selector named forEachLnet/minecraft/world/EntityList;forEach(Ljava/util/function/Consumer;)Vintermediary method_31791Lnet/minecraft/class_5574;method_31791(Ljava/util/function/Consumer;)Vofficial aLdxm;a(Ljava/util/function/Consumer;)V
-