Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
Fix compile
Dieser Commit ist enthalten in:
Ursprung
d35812f098
Commit
900268633d
@ -75,8 +75,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
* @see #wrap(World)
|
||||
* @see #create(WorldCreator)
|
||||
*/
|
||||
public class AsyncWorld
|
||||
extends PassthroughExtent implements World {
|
||||
public class AsyncWorld extends PassthroughExtent implements World {
|
||||
|
||||
private World parent;
|
||||
private BukkitImplAdapter adapter;
|
||||
@ -927,6 +926,16 @@ public class AsyncWorld
|
||||
return parent.canGenerateStructures();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setHardcore(boolean hardcore) {
|
||||
parent.setHardcore(hardcore);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isHardcore() {
|
||||
return parent.isHardcore();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getTicksPerAnimalSpawns() {
|
||||
return parent.getTicksPerAnimalSpawns();
|
||||
|
@ -4,6 +4,7 @@ import com.boydti.fawe.beta.IQueueExtent;
|
||||
import com.boydti.fawe.config.Settings;
|
||||
import com.boydti.fawe.object.RegionWrapper;
|
||||
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.extent.LightingExtent;
|
||||
import com.boydti.fawe.regions.FaweMaskManager;
|
||||
|
@ -8,6 +8,7 @@ import com.sk89q.worldedit.history.change.BlockChange;
|
||||
import com.sk89q.worldedit.history.change.Change;
|
||||
import com.sk89q.worldedit.history.change.EntityCreate;
|
||||
import com.sk89q.worldedit.history.change.EntityRemove;
|
||||
import com.sk89q.worldedit.history.changeset.ChangeSetSummary;
|
||||
import com.sk89q.worldedit.math.BlockVector3;
|
||||
import com.sk89q.worldedit.regions.Region;
|
||||
import com.sk89q.worldedit.world.World;
|
||||
@ -117,6 +118,11 @@ public class AbstractDelegateChangeSet extends AbstractChangeSet {
|
||||
parent.delete();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChangeSetSummary summarize(Region region, boolean shallow) {
|
||||
return parent.summarize(region, shallow);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EditSession toEditSession(Player player) {
|
||||
return parent.toEditSession(player);
|
||||
|
@ -7,11 +7,16 @@ import com.boydti.fawe.object.change.CFIChange;
|
||||
import com.boydti.fawe.util.MainUtil;
|
||||
import com.sk89q.jnbt.CompoundTag;
|
||||
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.block.BlockState;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
public class CFIChangeSet extends AbstractChangeSet {
|
||||
|
@ -98,12 +98,14 @@ public interface ChangeSet extends Closeable {
|
||||
default void delete() {}
|
||||
|
||||
/**
|
||||
* Get a summary of this changeset
|
||||
* Get a summary of this changeset (or null)
|
||||
* @param region
|
||||
* @param shallow
|
||||
* @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)
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren