3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-20 01:40:06 +01:00
Dieser Commit ist enthalten in:
Jesse Boyd 2020-01-07 00:41:41 +00:00
Ursprung d35812f098
Commit 900268633d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F
5 geänderte Dateien mit 27 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -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();

Datei anzeigen

@ -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;

Datei anzeigen

@ -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);

Datei anzeigen

@ -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 {

Datei anzeigen

@ -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)