private Table<Integer, Material, Integer> loadChunkMaterial() throws SQLException {
Table<Integer, Material, Integer> target = HashBasedTable.create();
ResultSet resultSet = selectChunkMaterial.executeQuery();
while (resultSet.next()) {
int id = resultSet.getInt("id");
int chunkId = resultSet.getInt("chunk_id");
int materialId = resultSet.getInt("material_id");
int count = resultSet.getInt("count");
identityCache.setChunkMaterialId(chunkId, materialId, id);
identityCache.getMaterial(materialId).ifPresent(material ->
target.put(chunkId, material, count));
}
resultSet.close();
return target;
}
ChunkLoader.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:factions-top
作者:
评论列表
文章目录