Class EntityStorage
java.lang.Object
net.minecraft.world.level.chunk.storage.EntityStorage
- All Implemented Interfaces:
AutoCloseable,EntityPersistentStorage<Entity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.longs.LongSetprivate static Stringprivate ProcessorMailbox<Runnable>protected com.mojang.datafixers.DataFixerprivate ServerLevelprivate static org.apache.logging.log4j.Loggerprivate static Stringprivate IOWorker -
Constructor Summary
ConstructorsConstructorDescriptionEntityStorage(ServerLevel p_156544_, File p_156545_, com.mojang.datafixers.DataFixer p_156546_, boolean p_156547_, Executor p_156548_) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private static ChunkEntities<Entity>emptyChunk(ChunkPos p_156569_)voidflush(boolean p_182487_)static intgetVersion(CompoundTag p_156561_)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.apache.logging.log4j.Logger LOGGER -
ENTITIES_TAG
- See Also:
- Constant Field Values
-
POSITION_TAG
- See Also:
- Constant Field Values
-
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_156544_, File p_156545_, com.mojang.datafixers.DataFixer p_156546_, boolean p_156547_, Executor p_156548_)
-
-
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
-
getVersion
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceEntityPersistentStorage<Entity>- Throws:
IOException
-