net.minecraft.world.level.entity

public class PersistentEntitySectionManager<T extends EntityAccess>

implements AutoCloseable

dcu
net.minecraft.world.level.entity.PersistentEntitySectionManager
net.minecraft.class_5579
net.minecraft.server.world.ServerEntityManager
net.minecraft.src.C_141295_
net.minecraft.world.level.entity.PersistentEntitySectionManager

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
void
a(long arg0, dcn<T> arg1)
removeSectionIfEmpty(long arg0, EntitySection<T> arg1)
method_31811(long arg0, class_5572<T> arg1)
entityLeftSection(long sectionPos, EntityTrackingSection<T> section)
m_157509_(long p_157511_, C_141284_<T> arg1)
private boolean
b(T arg0)
addEntityUuid(T arg0)
method_31831(T arg0)
addEntityUuid(T entity)
m_157557_(T arg0)
public boolean
a(T arg0)
addNewEntity(T arg0)
method_31818(T arg0)
addEntity(T entity)
m_157533_(T arg0)
private boolean
a(T arg0, boolean arg1)
addEntity(T arg0, boolean arg1)
method_31820(T arg0, boolean arg1)
addEntity(T entity, boolean existing)
m_157538_(T p_157540_, boolean arg1)
static <T extends EntityAccess> Visibility
a(T arg0, dcw arg1)
getEffectiveStatus(T arg0, Visibility arg1)
method_31832(T arg0, class_5584 arg1)
getNeededLoadStatus(T entity, EntityTrackingStatus current)
m_157535_(T p_157536_, C_141300_ p_157537_)
public void
a(Stream<T> arg0)
addLegacyChunkEntities(Stream<T> arg0)
method_31828(Stream<T> arg0)
loadEntities(Stream<T> entities)
m_157552_(Stream<T> arg0)
public void
b(Stream<T> arg0)
addWorldGenChunkEntities(Stream<T> arg0)
method_31835(Stream<T> arg0)
addEntities(Stream<T> entities)
m_157559_(Stream<T> arg0)
void
c(T arg0)
startTicking(T arg0)
method_31838(T arg0)
startTicking(T entity)
m_157564_(T arg0)
void
d(T arg0)
stopTicking(T arg0)
method_31843(T arg0)
stopTicking(T entity)
m_157570_(T arg0)
void
e(T arg0)
startTracking(T arg0)
method_31847(T arg0)
startTracking(T entity)
m_157575_(T arg0)
void
f(T arg0)
stopTracking(T arg0)
method_31850(T arg0)
stopTracking(T entity)
m_157580_(T arg0)
public void
a(cjd arg0, agy$c arg1)
updateChunkStatus(ChunkPos arg0, ChunkHolder$FullChunkStatus arg1)
method_31815(class_1923 arg0, class_3193$class_3194 arg1)
updateTrackingStatus(ChunkPos chunkPos, ChunkHolder$LevelType levelType)
m_157524_(C_1560_ p_157526_, C_5422_$C_5426_ arg1)
public void
a(cjd arg0, dcw arg1)
updateChunkStatus(ChunkPos arg0, Visibility arg1)
method_31816(class_1923 arg0, class_5584 arg1)
updateTrackingStatus(ChunkPos chunkPos, EntityTrackingStatus trackingStatus)
m_157527_(C_1560_ p_157529_, C_141300_ arg1)
private void
b(long arg0)
ensureChunkQueuedForLoad(long arg0)
method_31810(long arg0)
readIfFresh(long chunkPos)
m_157555_(long arg0)
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)
m_157512_(long p_157514_, Consumer<T> arg1)
private void
c(long arg0)
requestChunkLoad(long arg0)
method_31830(long arg0)
scheduleRead(long chunkPos)
m_157562_(long arg0)
private boolean
d(long arg0)
processChunkUnload(long arg0)
method_31837(long arg0)
unload(long chunkPos)
m_157568_(long arg0)
private void
g(dcj arg0)
unloadEntity(EntityAccess arg0)
method_31852(class_5568 arg0)
unload(EntityLike entity)
m_157585_(C_141279_ arg0)
private void
f()
processUnloads()
method_31851()
unloadChunks()
m_157577_()
private void
g()
processPendingLoads()
method_31853()
loadChunks()
m_157582_()
public void
a()
tick()
method_31809()
tick()
m_157506_()
private it.unimi.dsi.fastutil.longs.LongSet
h()
getAllChunksToSave()
method_31855()
getLoadedChunks()
m_157587_()
public void
b()
autoSave()
method_31829()
save()
m_157554_()
public void
c()
saveAll()
method_31836()
flush()
m_157561_()
public void
close()
close()
close()
public boolean
a(UUID arg0)
isLoaded(UUID arg0)
method_31827(UUID arg0)
has(UUID uuid)
m_157550_(UUID arg0)
public LevelEntityGetter<T>
d()
getEntityGetter()
method_31841()
getLookup()
m_157567_()
public boolean
a(gp arg0)
canPositionTick(BlockPos arg0)
method_40022(class_2338 arg0)
shouldTick(BlockPos pos)
m_202167_(C_4675_ arg0)
public boolean
a(cjd arg0)
canPositionTick(ChunkPos arg0)
method_40021(class_1923 arg0)
shouldTick(ChunkPos pos)
m_202165_(C_1560_ arg0)
public boolean
a(long arg0)
areEntitiesLoaded(long arg0)
method_37252(long arg0)
isLoaded(long chunkPos)
m_157507_(long arg0)
public void
a(Writer arg0)
dumpSections(Writer arg0)
method_31826(Writer arg0)
dump(Writer writer)
m_157548_(Writer arg0)
public String
e()
gatherStats()
method_31845()
getDebugString()
m_157572_()