Class EntityStorage
java.lang.Object
net.minecraft.world.level.chunk.storage.EntityStorage
- All Implemented Interfaces:
- AutoCloseable,- EntityPersistentStorage<Entity>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.LongSetprivate static final Stringprivate final ProcessorMailbox<Runnable>protected final com.mojang.datafixers.DataFixerprivate final ServerLevelprivate static final org.slf4j.Loggerprivate static final Stringprivate final IOWorker
- 
Constructor SummaryConstructorsConstructorDescriptionEntityStorage(ServerLevel p_196924_, Path p_196925_, com.mojang.datafixers.DataFixer p_196926_, boolean p_196927_, Executor p_196928_) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()private static ChunkEntities<Entity>emptyChunk(ChunkPos p_156569_) voidflush(boolean p_182487_) loadEntities(ChunkPos p_156551_) private static ChunkPosreadChunkPos(CompoundTag p_156571_) voidstoreEntities(ChunkEntities<Entity> p_156559_) private CompoundTagupgradeChunkTag(CompoundTag p_156573_) private static voidwriteChunkPos(CompoundTag p_156563_, ChunkPos p_156564_) 
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
ENTITIES_TAG- See Also:
 
- 
POSITION_TAG- See Also:
 
- 
level
- 
worker
- 
emptyChunksprivate final it.unimi.dsi.fastutil.longs.LongSet emptyChunks
- 
entityDeserializerQueue
- 
fixerUpperprotected final com.mojang.datafixers.DataFixer fixerUpper
 
- 
- 
Constructor Details- 
EntityStoragepublic EntityStorage(ServerLevel p_196924_, Path p_196925_, com.mojang.datafixers.DataFixer p_196926_, boolean p_196927_, Executor p_196928_) 
 
- 
- 
Method Details- 
loadEntities- Specified by:
- loadEntitiesin interface- EntityPersistentStorage<Entity>
 
- 
readChunkPos
- 
writeChunkPos
- 
emptyChunk
- 
storeEntities- Specified by:
- storeEntitiesin interface- EntityPersistentStorage<Entity>
 
- 
flushpublic void flush(boolean p_182487_) - Specified by:
- flushin interface- EntityPersistentStorage<Entity>
 
- 
upgradeChunkTag
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- EntityPersistentStorage<Entity>
- Throws:
- IOException
 
 
-