This commit is contained in:
dfsek
2021-02-17 22:14:03 -07:00
parent 7f8749239f
commit c8c9247dfe
18 changed files with 158 additions and 132 deletions

View File

@@ -25,6 +25,7 @@ import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
@SuppressWarnings("deprecation")
public class BiomeLocateCommand extends WorldCommand {
public BiomeLocateCommand(com.dfsek.terra.bukkit.command.Command parent) {
super(parent);

View File

@@ -11,7 +11,7 @@ import java.io.ObjectStreamClass;
import java.io.Serializable;
import java.lang.reflect.Field;
public class SerializationUtil {
public final class SerializationUtil {
public static Object fromFile(File f) throws IOException, ClassNotFoundException {
ObjectInputStream ois = new MovedObjectInputStream(new FileInputStream(f), "com.dfsek.terra.api.world.generation.population", "com.dfsek.terra.bukkit.population"); // Backwards compat with old Gaea location
Object o = ois.readObject();

View File

@@ -1,6 +1,8 @@
package com.dfsek.terra.bukkit.structure;
public class WorldEditNotFoundException extends RuntimeException {
private static final long serialVersionUID = 3678822468346338227L;
public WorldEditNotFoundException() {
}

View File

@@ -5,6 +5,7 @@ import com.dfsek.terra.api.platform.world.BiomeGrid;
import org.bukkit.generator.ChunkGenerator;
import org.jetbrains.annotations.NotNull;
@SuppressWarnings("deprecation")
public class BukkitBiomeGrid implements BiomeGrid {
private final ChunkGenerator.BiomeGrid delegate;