Package net.minecraft.world.level.entity
Class EntitySectionStorage<T extends EntityAccess>
java.lang.Object
net.minecraft.world.level.entity.EntitySectionStorage<T>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.Long2ObjectFunction<Visibility>private final it.unimi.dsi.fastutil.longs.LongSortedSetprivate final it.unimi.dsi.fastutil.longs.Long2ObjectMap<EntitySection<T>>
- 
Constructor SummaryConstructorsConstructorDescriptionEntitySectionStorage(Class<T> p_156855_, it.unimi.dsi.fastutil.longs.Long2ObjectFunction<Visibility> p_156856_) 
- 
Method SummaryModifier and TypeMethodDescriptionintcount()private EntitySection<T>createSection(long p_156902_) voidforEachAccessibleNonEmptySection(AABB p_188363_, AbortableIterationConsumer<EntitySection<T>> p_261588_) it.unimi.dsi.fastutil.longs.LongSetprivate static longgetChunkKeyFromSectionKey(long p_156900_) private it.unimi.dsi.fastutil.longs.LongSortedSetgetChunkSections(int p_156859_, int p_156860_) <U extends T>
 voidgetEntities(EntityTypeTest<T, U> p_261630_, AABB p_261843_, AbortableIterationConsumer<U> p_261742_) voidgetEntities(AABB p_261820_, AbortableIterationConsumer<T> p_261992_) getExistingSectionPositionsInChunk(long p_156862_) getExistingSectionsInChunk(long p_156889_) getOrCreateSection(long p_156894_) getSection(long p_156896_) voidremove(long p_156898_) 
- 
Field Details- 
entityClass
- 
intialSectionVisibility
- 
sectionsprivate final it.unimi.dsi.fastutil.longs.Long2ObjectMap<EntitySection<T extends EntityAccess>> sections
- 
sectionIdsprivate final it.unimi.dsi.fastutil.longs.LongSortedSet sectionIds
 
- 
- 
Constructor Details- 
EntitySectionStoragepublic EntitySectionStorage(Class<T> p_156855_, it.unimi.dsi.fastutil.longs.Long2ObjectFunction<Visibility> p_156856_) 
 
- 
- 
Method Details- 
forEachAccessibleNonEmptySectionpublic void forEachAccessibleNonEmptySection(AABB p_188363_, AbortableIterationConsumer<EntitySection<T>> p_261588_) 
- 
getExistingSectionPositionsInChunk
- 
getChunkSectionsprivate it.unimi.dsi.fastutil.longs.LongSortedSet getChunkSections(int p_156859_, int p_156860_) 
- 
getExistingSectionsInChunk
- 
getChunkKeyFromSectionKeyprivate static long getChunkKeyFromSectionKey(long p_156900_) 
- 
getOrCreateSection
- 
getSection
- 
createSection
- 
getAllChunksWithExistingSectionspublic it.unimi.dsi.fastutil.longs.LongSet getAllChunksWithExistingSections()
- 
getEntities
- 
getEntitiespublic <U extends T> void getEntities(EntityTypeTest<T, U> p_261630_, AABB p_261843_, AbortableIterationConsumer<U> p_261742_) 
- 
removepublic void remove(long p_156898_) 
- 
countpublic int count()
 
-