Class TransientEntitySectionManager<T extends EntityAccess>
java.lang.Object
net.minecraft.world.level.entity.TransientEntitySectionManager<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LevelCallback<T> private final LevelEntityGetter<T> private final EntityLookup<T> private static final org.slf4j.Loggerprivate final EntitySectionStorage<T> private final it.unimi.dsi.fastutil.longs.LongSet -
Constructor Summary
ConstructorsConstructorDescriptionTransientEntitySectionManager(Class<T> entityClass, LevelCallback<T> callbacks) -
Method Summary
Modifier and TypeMethodDescriptionvoidintcount()private voidremoveSectionIfEmpty(long sectionPos, EntitySection<T> section) voidstartTicking(ChunkPos pos) voidstopTicking(ChunkPos pos)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
callbacks
-
entityStorage
-
sectionStorage
-
tickingChunks
private final it.unimi.dsi.fastutil.longs.LongSet tickingChunks -
entityGetter
-
-
Constructor Details
-
TransientEntitySectionManager
-
-
Method Details
-
startTicking
-
stopTicking
-
getEntityGetter
-
addEntity
-
count
public int count() -
removeSectionIfEmpty
-
gatherStats
-