Class EntityStorage
java.lang.Object
net.minecraft.world.level.chunk.storage.EntityStorage
- All Implemented Interfaces:
 AutoCloseable,EntityPersistentStorage<Entity>
- 
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionEntityStorage(ServerLevel p_196924_, Path p_196925_, com.mojang.datafixers.DataFixer p_196926_, boolean p_196927_, Executor p_196928_)  - 
Method Summary
Modifier 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
- 
LOGGER
private static final org.slf4j.Logger LOGGER - 
ENTITIES_TAG
- See Also:
 
 - 
POSITION_TAG
- See Also:
 
 - 
level
 - 
worker
 - 
emptyChunks
private final it.unimi.dsi.fastutil.longs.LongSet emptyChunks - 
entityDeserializerQueue
 - 
fixerUpper
protected final com.mojang.datafixers.DataFixer fixerUpper 
 - 
 - 
Constructor Details
- 
EntityStorage
public 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 interfaceEntityPersistentStorage<Entity>
 - 
readChunkPos
 - 
writeChunkPos
 - 
emptyChunk
 - 
storeEntities
- Specified by:
 storeEntitiesin interfaceEntityPersistentStorage<Entity>
 - 
flush
public void flush(boolean p_182487_) - Specified by:
 flushin interfaceEntityPersistentStorage<Entity>
 - 
upgradeChunkTag
 - 
close
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceEntityPersistentStorage<Entity>- Throws:
 IOException
 
 -