Fix compile

This commit is contained in:
Jesse Boyd 2020-01-07 00:41:41 +00:00
parent d35812f098
commit 900268633d
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
5 changed files with 27 additions and 4 deletions

View File

@ -75,8 +75,7 @@ import org.jetbrains.annotations.Nullable;
* @see #wrap(World) * @see #wrap(World)
* @see #create(WorldCreator) * @see #create(WorldCreator)
*/ */
public class AsyncWorld public class AsyncWorld extends PassthroughExtent implements World {
extends PassthroughExtent implements World {
private World parent; private World parent;
private BukkitImplAdapter adapter; private BukkitImplAdapter adapter;
@ -927,6 +926,16 @@ public class AsyncWorld
return parent.canGenerateStructures(); return parent.canGenerateStructures();
} }
@Override
public void setHardcore(boolean hardcore) {
parent.setHardcore(hardcore);
}
@Override
public boolean isHardcore() {
return parent.isHardcore();
}
@Override @Override
public long getTicksPerAnimalSpawns() { public long getTicksPerAnimalSpawns() {
return parent.getTicksPerAnimalSpawns(); return parent.getTicksPerAnimalSpawns();

View File

@ -4,6 +4,7 @@ import com.boydti.fawe.beta.IQueueExtent;
import com.boydti.fawe.config.Settings; import com.boydti.fawe.config.Settings;
import com.boydti.fawe.object.RegionWrapper; import com.boydti.fawe.object.RegionWrapper;
import com.boydti.fawe.object.changeset.DiskStorageHistory; import com.boydti.fawe.object.changeset.DiskStorageHistory;
import com.boydti.fawe.object.changeset.SimpleChangeSetSummary;
import com.boydti.fawe.object.exception.FaweException; import com.boydti.fawe.object.exception.FaweException;
import com.boydti.fawe.object.extent.LightingExtent; import com.boydti.fawe.object.extent.LightingExtent;
import com.boydti.fawe.regions.FaweMaskManager; import com.boydti.fawe.regions.FaweMaskManager;

View File

@ -8,6 +8,7 @@ import com.sk89q.worldedit.history.change.BlockChange;
import com.sk89q.worldedit.history.change.Change; import com.sk89q.worldedit.history.change.Change;
import com.sk89q.worldedit.history.change.EntityCreate; import com.sk89q.worldedit.history.change.EntityCreate;
import com.sk89q.worldedit.history.change.EntityRemove; import com.sk89q.worldedit.history.change.EntityRemove;
import com.sk89q.worldedit.history.changeset.ChangeSetSummary;
import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.math.BlockVector3;
import com.sk89q.worldedit.regions.Region; import com.sk89q.worldedit.regions.Region;
import com.sk89q.worldedit.world.World; import com.sk89q.worldedit.world.World;
@ -117,6 +118,11 @@ public class AbstractDelegateChangeSet extends AbstractChangeSet {
parent.delete(); parent.delete();
} }
@Override
public ChangeSetSummary summarize(Region region, boolean shallow) {
return parent.summarize(region, shallow);
}
@Override @Override
public EditSession toEditSession(Player player) { public EditSession toEditSession(Player player) {
return parent.toEditSession(player); return parent.toEditSession(player);

View File

@ -7,11 +7,16 @@ import com.boydti.fawe.object.change.CFIChange;
import com.boydti.fawe.util.MainUtil; import com.boydti.fawe.util.MainUtil;
import com.sk89q.jnbt.CompoundTag; import com.sk89q.jnbt.CompoundTag;
import com.sk89q.worldedit.history.change.Change; import com.sk89q.worldedit.history.change.Change;
import com.sk89q.worldedit.history.changeset.ChangeSetSummary;
import com.sk89q.worldedit.regions.Region;
import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.biome.BiomeType;
import com.sk89q.worldedit.world.block.BlockState;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.Collections; import java.util.Collections;
import java.util.Iterator; import java.util.Iterator;
import java.util.Map;
import java.util.UUID; import java.util.UUID;
public class CFIChangeSet extends AbstractChangeSet { public class CFIChangeSet extends AbstractChangeSet {

View File

@ -98,12 +98,14 @@ public interface ChangeSet extends Closeable {
default void delete() {} default void delete() {}
/** /**
* Get a summary of this changeset * Get a summary of this changeset (or null)
* @param region * @param region
* @param shallow * @param shallow
* @return * @return
*/ */
ChangeSetSummary summarize(Region region, boolean shallow); default ChangeSetSummary summarize(Region region, boolean shallow) {
return null;
}
/** /**
* Get if the changeset is empty (i.e. size == 0) * Get if the changeset is empty (i.e. size == 0)