net.minecraft.world.level.entity

public class PersistentEntitySectionManager<T extends EntityAccess>

implements AutoCloseable

ebm
net.minecraft.world.level.entity.PersistentEntitySectionManager
net.minecraft.class_5579
net.minecraft.server.world.ServerEntityManager
net.minecraft.world.level.entity.PersistentEntitySectionManager

Field summary

Modifier and TypeField
static final org.slf4j.Logger
a
LOGGER
field_27260
LOGGER
final Set<UUID>
b
knownUuids
field_27261
entityUuids
final LevelCallback<T>
c
callbacks
field_27262
handler
private final EntityPersistentStorage<T>
d
permanentStorage
field_27263
dataAccess
private final EntityLookup<T>
e
visibleEntityStorage
field_27264
index
final EntitySectionStorage<T>
f
sectionStorage
field_27265
cache
private final LevelEntityGetter<T>
g
entityGetter
field_27266
lookup
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<Visibility>
h
chunkVisibility
field_27267
trackingStatuses
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<PersistentEntitySectionManager$ChunkLoadStatus>
i
chunkLoadStatuses
field_27268
managedStatuses
private final it.unimi.dsi.fastutil.longs.LongSet
j
chunksToUnload
field_27269
pendingUnloads
private final Queue<ChunkEntities<T>>
k
loadingInbox
field_27270
loadingQueue

Constructor summary

ModifierConstructor
public (Class<T> entityClass, LevelCallback<T> handler, EntityPersistentStorage<T> dataAccess)

Method summary

Modifier and TypeMethod
void
a(long arg0, ebf<T> arg1)
removeSectionIfEmpty(long arg0, EntitySection<T> arg1)
method_31811(long arg0, class_5572<T> arg1)
entityLeftSection(long sectionPos, EntityTrackingSection<T> section)
private boolean
b(T arg0)
addEntityUuid(T arg0)
method_31831(T arg0)
addEntityUuid(T entity)
public boolean
a(T arg0)
addNewEntity(T arg0)
method_31818(T arg0)
addEntity(T entity)
private boolean
a(T arg0, boolean arg1)
addEntity(T arg0, boolean arg1)
method_31820(T arg0, boolean arg1)
addEntity(T entity, boolean existing)
static <T extends EntityAccess> Visibility
a(T arg0, ebo arg1)
getEffectiveStatus(T arg0, Visibility arg1)
method_31832(T arg0, class_5584 arg1)
getNeededLoadStatus(T entity, EntityTrackingStatus current)
public void
a(Stream<T> arg0)
addLegacyChunkEntities(Stream<T> arg0)
method_31828(Stream<T> arg0)
loadEntities(Stream<T> entities)
public void
b(Stream<T> arg0)
addWorldGenChunkEntities(Stream<T> arg0)
method_31835(Stream<T> arg0)
addEntities(Stream<T> entities)
void
c(T arg0)
startTicking(T arg0)
method_31838(T arg0)
startTicking(T entity)
void
d(T arg0)
stopTicking(T arg0)
method_31843(T arg0)
stopTicking(T entity)
void
e(T arg0)
startTracking(T arg0)
method_31847(T arg0)
startTracking(T entity)
void
f(T arg0)
stopTracking(T arg0)
method_31850(T arg0)
stopTracking(T entity)
public void
a(dfp arg0, aqs arg1)
updateChunkStatus(ChunkPos arg0, FullChunkStatus arg1)
method_31815(class_1923 arg0, class_3194 arg1)
updateTrackingStatus(ChunkPos chunkPos, ChunkLevelType levelType)
public void
a(dfp arg0, ebo arg1)
updateChunkStatus(ChunkPos arg0, Visibility arg1)
method_31816(class_1923 arg0, class_5584 arg1)
updateTrackingStatus(ChunkPos chunkPos, EntityTrackingStatus trackingStatus)
private void
b(long arg0)
ensureChunkQueuedForLoad(long arg0)
method_31810(long arg0)
readIfFresh(long chunkPos)
private boolean
a(long arg0, Consumer<T> arg1)
storeChunkSections(long arg0, Consumer<T> arg1)
method_31812(long arg0, Consumer<T> arg1)
trySave(long chunkPos, Consumer<T> action)
private void
c(long arg0)
requestChunkLoad(long arg0)
method_31830(long arg0)
scheduleRead(long chunkPos)
private boolean
d(long arg0)
processChunkUnload(long arg0)
method_31837(long arg0)
unload(long chunkPos)
private void
g(ebb arg0)
unloadEntity(EntityAccess arg0)
method_31852(class_5568 arg0)
unload(EntityLike entity)
private void
g()
processUnloads()
method_31851()
unloadChunks()
private void
h()
processPendingLoads()
method_31853()
loadChunks()
public void
a()
tick()
method_31809()
tick()
private it.unimi.dsi.fastutil.longs.LongSet
i()
getAllChunksToSave()
method_31855()
getLoadedChunks()
public void
b()
autoSave()
method_31829()
save()
public void
c()
saveAll()
method_31836()
flush()
public void
close()
close()
public boolean
a(UUID arg0)
isLoaded(UUID arg0)
method_31827(UUID arg0)
has(UUID uuid)
public LevelEntityGetter<T>
d()
getEntityGetter()
method_31841()
getLookup()
public boolean
a(ji arg0)
canPositionTick(BlockPos arg0)
method_40022(class_2338 arg0)
shouldTick(BlockPos pos)
public boolean
a(dfp arg0)
canPositionTick(ChunkPos arg0)
method_40021(class_1923 arg0)
shouldTick(ChunkPos pos)
public boolean
a(long arg0)
areEntitiesLoaded(long arg0)
method_37252(long arg0)
isLoaded(long chunkPos)
public void
a(Writer arg0)
dumpSections(Writer arg0)
method_31826(Writer arg0)
dump(Writer writer)
public String
e()
gatherStats()
method_31845()
getDebugString()
public int
f()
count()
method_54490()
getIndexSize()