Skip to content

Latest commit

 

History

History
357 lines (357 loc) · 17.9 KB

cn.nukkit.level.format.leveldb.LevelDB.md

File metadata and controls

357 lines (357 loc) · 17.9 KB
  • 成员变量一览

    成员变量 
    修饰符和类 成员变量描述
    protected Map<Long,Chunk> chunks 
    protected org.iq80.leveldb.DB db 
    protected Level level 
    protected CompoundTag levelData 
    protected String path 
    • 继承自接口 cn.nukkit.level.format.LevelProvider

      ORDER_YZX, ORDER_ZXY
  • 构造函数一览

    构造函数 
    构造函数描述
    LevelDB(Level level, String path) 
  • 成员函数一览

    All Methods Static Methods Instance Methods Concrete Methods 
    修饰符和类 成员函数描述
    void close() 
    static ChunkSection createChunkSection(int y) 
    void doGarbageCollection() 
    static void generate(String path, String name, long seed, Class<? extends Generator> generator) 
    static void generate(String path, String name, long seed, Class<? extends Generator> generator, Map<String,String> options) 
    Chunk getChunk(int x, int z) 
    Chunk getChunk(int x, int z, boolean create) 
    long getCurrentTick() 
    org.iq80.leveldb.DB getDatabase() 
    Chunk getEmptyChunk(int chunkX, int chunkZ) 
    GameRules getGamerules() 
    String getGenerator() 
    Map<String,Object> getGeneratorOptions() 
    Level getLevel() 
    CompoundTag getLevelData() 
    BaseFullChunk getLoadedChunk(int X, int Z) 
    BaseFullChunk getLoadedChunk(long hash) 
    Map<Long,Chunk> getLoadedChunks() 
    String getName() 
    String getPath() 
    static String getProviderName() 
    static byte getProviderOrder() 
    int getRainTime() 
    long getSeed() 
    Server getServer() 
    Vector3 getSpawn() 
    byte[][] getTerrainKeys() 
    int getThunderTime() 
    long getTime() 
    boolean isChunkGenerated(int x, int z) 
    boolean isChunkLoaded(int x, int z) 
    boolean isChunkLoaded(long hash) 
    boolean isChunkPopulated(int x, int z) 
    boolean isRaining() 
    boolean isThundering() 
    static boolean isValid(String path) 
    boolean loadChunk(int x, int z) 
    boolean loadChunk(int x, int z, boolean create) 
    Chunk readChunk(int chunkX, int chunkZ) 
    AsyncTask requestChunkTask(int x, int z) 
    void saveChunk(int x, int z) 
    void saveChunk(int x, int z, FullChunk chunk) 
    void saveChunks() 
    void saveLevelData() 
    void setChunk(int chunkX, int chunkZ, FullChunk chunk) 
    void setCurrentTick(long currentTick) 
    void setGameRules(GameRules rules) 
    void setRaining(boolean raining) 
    void setRainTime(int rainTime) 
    void setSeed(long value) 
    void setSpawn(Vector3 pos) 
    void setThundering(boolean thundering) 
    void setThunderTime(int thunderTime) 
    void setTime(long value) 
    boolean unloadChunk(int x, int z) 
    boolean unloadChunk(int x, int z, boolean safe) 
    void unloadChunks() 
    void updateLevelName(String name) 
    static boolean usesChunkSection() 
    • 继承自类 java.lang.Object

      clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 继承自接口 cn.nukkit.level.format.LevelProvider

      doGarbageCollection