Package net.minecraft.world.entity
Class SectionedEntityCache<T extends EntityLike>
java.lang.Object
net.minecraft.world.entity.SectionedEntityCache<T>
Stores entities with the chunk sections they are in.
- See Also:
- Mappings:
- Namespace - Name - named - net/minecraft/world/entity/SectionedEntityCache- intermediary - net/minecraft/class_5573- official - ebg
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intprivate final Long2ObjectFunction<EntityTrackingStatus> private final LongSortedSetprivate final Long2ObjectMap<EntityTrackingSection<T>> 
- 
Constructor SummaryConstructorsConstructorDescriptionSectionedEntityCache(Class<T> entityClass, Long2ObjectFunction<EntityTrackingStatus> chunkStatusDiscriminator) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate EntityTrackingSection<T> addSection(long sectionPos) private static longchunkPosFromSectionPos(long sectionPos) findTrackingSection(long sectionPos) voidforEachInBox(Box box, LazyIterationConsumer<EntityTrackingSection<T>> consumer) Runs the given action on each collection of entities in the chunk sections within the given box.voidforEachIntersects(Box box, LazyIterationConsumer<T> consumer) <U extends T>
 voidforEachIntersects(TypeFilter<T, U> filter, Box box, LazyIterationConsumer<U> consumer) private LongSortedSetgetSections(int chunkX, int chunkZ) getSections(long chunkPos) getTrackingSection(long sectionPos) getTrackingSections(long chunkPos) voidremoveSection(long sectionPos) int
- 
Field Details- 
field_52653public static final int field_52653- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_52653- Lnet/minecraft/world/entity/SectionedEntityCache;field_52653:I- intermediary - field_52653- Lnet/minecraft/class_5573;field_52653:I- official - a- Lebg;a:I
 
- 
field_52654public static final int field_52654- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_52654- Lnet/minecraft/world/entity/SectionedEntityCache;field_52654:I- intermediary - field_52654- Lnet/minecraft/class_5573;field_52654:I- official - b- Lebg;b:I
 
- 
entityClass- Mappings:
- Namespace - Name - Mixin selector - named - entityClass- Lnet/minecraft/world/entity/SectionedEntityCache;entityClass:Ljava/lang/Class;- intermediary - field_27250- Lnet/minecraft/class_5573;field_27250:Ljava/lang/Class;- official - c- Lebg;c:Ljava/lang/Class;
 
- 
posToStatus- Mappings:
- Namespace - Name - Mixin selector - named - posToStatus- Lnet/minecraft/world/entity/SectionedEntityCache;posToStatus:Lit/unimi/dsi/fastutil/longs/Long2ObjectFunction;- intermediary - field_27251- Lnet/minecraft/class_5573;field_27251:Lit/unimi/dsi/fastutil/longs/Long2ObjectFunction;- official - d- Lebg;d:Lit/unimi/dsi/fastutil/longs/Long2ObjectFunction;
 
- 
trackingSections- Mappings:
- Namespace - Name - Mixin selector - named - trackingSections- Lnet/minecraft/world/entity/SectionedEntityCache;trackingSections:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;- intermediary - field_27252- Lnet/minecraft/class_5573;field_27252:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;- official - e- Lebg;e:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
 
- 
trackedPositions- Mappings:
- Namespace - Name - Mixin selector - named - trackedPositions- Lnet/minecraft/world/entity/SectionedEntityCache;trackedPositions:Lit/unimi/dsi/fastutil/longs/LongSortedSet;- intermediary - field_27253- Lnet/minecraft/class_5573;field_27253:Lit/unimi/dsi/fastutil/longs/LongSortedSet;- official - f- Lebg;f:Lit/unimi/dsi/fastutil/longs/LongSortedSet;
 
 
- 
- 
Constructor Details- 
SectionedEntityCachepublic SectionedEntityCache(Class<T> entityClass, Long2ObjectFunction<EntityTrackingStatus> chunkStatusDiscriminator) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/world/entity/SectionedEntityCache;<init>(Ljava/lang/Class;Lit/unimi/dsi/fastutil/longs/Long2ObjectFunction;)V- intermediary - <init>- Lnet/minecraft/class_5573;<init>(Ljava/lang/Class;Lit/unimi/dsi/fastutil/longs/Long2ObjectFunction;)V- official - <init>- Lebg;<init>(Ljava/lang/Class;Lit/unimi/dsi/fastutil/longs/Long2ObjectFunction;)V
 
 
- 
- 
Method Details- 
forEachInBoxRuns the given action on each collection of entities in the chunk sections within the given box.- Mappings:
- Namespace - Name - Mixin selector - named - forEachInBox- Lnet/minecraft/world/entity/SectionedEntityCache;forEachInBox(Lnet/minecraft/util/math/Box;Lnet/minecraft/util/function/LazyIterationConsumer;)V- intermediary - method_31777- Lnet/minecraft/class_5573;method_31777(Lnet/minecraft/class_238;Lnet/minecraft/class_7927;)V- official - a- Lebg;a(Lfaw;Laxl;)V
 
- 
getSections- Mappings:
- Namespace - Name - Mixin selector - named - getSections- Lnet/minecraft/world/entity/SectionedEntityCache;getSections(J)Ljava/util/stream/LongStream;- intermediary - method_31772- Lnet/minecraft/class_5573;method_31772(J)Ljava/util/stream/LongStream;- official - a- Lebg;a(J)Ljava/util/stream/LongStream;
 
- 
getSections- Mappings:
- Namespace - Name - Mixin selector - named - getSections- Lnet/minecraft/world/entity/SectionedEntityCache;getSections(II)Lit/unimi/dsi/fastutil/longs/LongSortedSet;- intermediary - method_31771- Lnet/minecraft/class_5573;method_31771(II)Lit/unimi/dsi/fastutil/longs/LongSortedSet;- official - a- Lebg;a(II)Lit/unimi/dsi/fastutil/longs/LongSortedSet;
 
- 
getTrackingSections- Mappings:
- Namespace - Name - Mixin selector - named - getTrackingSections- Lnet/minecraft/world/entity/SectionedEntityCache;getTrackingSections(J)Ljava/util/stream/Stream;- intermediary - method_31782- Lnet/minecraft/class_5573;method_31782(J)Ljava/util/stream/Stream;- official - b- Lebg;b(J)Ljava/util/stream/Stream;
 
- 
chunkPosFromSectionPosprivate static long chunkPosFromSectionPos(long sectionPos) - Mappings:
- Namespace - Name - Mixin selector - named - chunkPosFromSectionPos- Lnet/minecraft/world/entity/SectionedEntityCache;chunkPosFromSectionPos(J)J- intermediary - method_31787- Lnet/minecraft/class_5573;method_31787(J)J- official - f- Lebg;f(J)J
 
- 
getTrackingSection- Mappings:
- Namespace - Name - Mixin selector - named - getTrackingSection- Lnet/minecraft/world/entity/SectionedEntityCache;getTrackingSection(J)Lnet/minecraft/world/entity/EntityTrackingSection;- intermediary - method_31784- Lnet/minecraft/class_5573;method_31784(J)Lnet/minecraft/class_5572;- official - c- Lebg;c(J)Lebf;
 
- 
findTrackingSection- Mappings:
- Namespace - Name - Mixin selector - named - findTrackingSection- Lnet/minecraft/world/entity/SectionedEntityCache;findTrackingSection(J)Lnet/minecraft/world/entity/EntityTrackingSection;- intermediary - method_31785- Lnet/minecraft/class_5573;method_31785(J)Lnet/minecraft/class_5572;- official - d- Lebg;d(J)Lebf;
 
- 
addSection- Mappings:
- Namespace - Name - Mixin selector - named - addSection- Lnet/minecraft/world/entity/SectionedEntityCache;addSection(J)Lnet/minecraft/world/entity/EntityTrackingSection;- intermediary - method_31788- Lnet/minecraft/class_5573;method_31788(J)Lnet/minecraft/class_5572;- official - g- Lebg;g(J)Lebf;
 
- 
getChunkPositions- Mappings:
- Namespace - Name - Mixin selector - named - getChunkPositions- Lnet/minecraft/world/entity/SectionedEntityCache;getChunkPositions()Lit/unimi/dsi/fastutil/longs/LongSet;- intermediary - method_31770- Lnet/minecraft/class_5573;method_31770()Lit/unimi/dsi/fastutil/longs/LongSet;- official - a- Lebg;a()Lit/unimi/dsi/fastutil/longs/LongSet;
 
- 
forEachIntersects- Mappings:
- Namespace - Name - Mixin selector - named - forEachIntersects- Lnet/minecraft/world/entity/SectionedEntityCache;forEachIntersects(Lnet/minecraft/util/math/Box;Lnet/minecraft/util/function/LazyIterationConsumer;)V- intermediary - method_31783- Lnet/minecraft/class_5573;method_31783(Lnet/minecraft/class_238;Lnet/minecraft/class_7927;)V- official - b- Lebg;b(Lfaw;Laxl;)V
 
- 
forEachIntersectspublic <U extends T> void forEachIntersects(TypeFilter<T, U> filter, Box box, LazyIterationConsumer<U> consumer) - Mappings:
- Namespace - Name - Mixin selector - named - forEachIntersects- Lnet/minecraft/world/entity/SectionedEntityCache;forEachIntersects(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Lnet/minecraft/util/function/LazyIterationConsumer;)V- intermediary - method_31773- Lnet/minecraft/class_5573;method_31773(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Lnet/minecraft/class_7927;)V- official - a- Lebg;a(Lebi;Lfaw;Laxl;)V
 
- 
removeSectionpublic void removeSection(long sectionPos) - Mappings:
- Namespace - Name - Mixin selector - named - removeSection- Lnet/minecraft/world/entity/SectionedEntityCache;removeSection(J)V- intermediary - method_31786- Lnet/minecraft/class_5573;method_31786(J)V- official - e- Lebg;e(J)V
 
- 
sectionCountpublic int sectionCount()- Mappings:
- Namespace - Name - Mixin selector - named - sectionCount- Lnet/minecraft/world/entity/SectionedEntityCache;sectionCount()I- intermediary - method_31781- Lnet/minecraft/class_5573;method_31781()I- official - b- Lebg;b()I
 
 
-