Class EntityStorage
java.lang.Object
net.minecraft.world.level.chunk.storage.EntityStorage
- All Implemented Interfaces:
AutoCloseable
,EntityPersistentStorage<Entity>
-
Field Summary
Modifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.longs.LongSet
private static String
private ProcessorMailbox<Runnable>
protected com.mojang.datafixers.DataFixer
private ServerLevel
private static org.apache.logging.log4j.Logger
private static String
private IOWorker
-
Constructor Summary
ConstructorDescriptionEntityStorage(ServerLevel p_156544_, File p_156545_, com.mojang.datafixers.DataFixer p_156546_, boolean p_156547_, Executor p_156548_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private static ChunkEntities<Entity>
emptyChunk(ChunkPos p_156569_)
void
flush(boolean p_182487_)
static int
getVersion(CompoundTag p_156561_)
loadEntities(ChunkPos p_156551_)
private static ChunkPos
readChunkPos(CompoundTag p_156571_)
void
storeEntities(ChunkEntities<Entity> p_156559_)
private CompoundTag
upgradeChunkTag(CompoundTag p_156573_)
private static void
writeChunkPos(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:
loadEntities
in interfaceEntityPersistentStorage<Entity>
-
readChunkPos
-
writeChunkPos
-
emptyChunk
-
storeEntities
- Specified by:
storeEntities
in interfaceEntityPersistentStorage<Entity>
-
flush
public void flush(boolean p_182487_)- Specified by:
flush
in interfaceEntityPersistentStorage<Entity>
-
upgradeChunkTag
-
getVersion
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceEntityPersistentStorage<Entity>
- Throws:
IOException
-