Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 18:40:05 +01:00
Removed some unnecessary code.
Dieser Commit ist enthalten in:
Ursprung
aab10adb79
Commit
2517aca66f
@ -78,32 +78,6 @@ public class FaweAPI {
|
|||||||
return TaskManager.IMP;
|
return TaskManager.IMP;
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
|
||||||
// * Add a custom mask for use in e.g {@literal //mask #id:<input>}
|
|
||||||
// *
|
|
||||||
// * @param methods The class with a bunch of mask methods
|
|
||||||
// * @return true if the mask was registered
|
|
||||||
// * @see com.sk89q.worldedit.command.MaskCommands
|
|
||||||
// */
|
|
||||||
// public static boolean registerMasks(Object methods) {
|
|
||||||
// DefaultMaskParser parser = getParser(DefaultMaskParser.class);
|
|
||||||
// if (parser != null) parser.register(methods);
|
|
||||||
// return parser != null;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// /**
|
|
||||||
// * Add a custom material for use in e.g {@literal //material #id:<input>}
|
|
||||||
// *
|
|
||||||
// * @param methods The class with a bunch of pattern methods
|
|
||||||
// * @return true if the mask was registered
|
|
||||||
// * @see com.sk89q.worldedit.command.PatternCommands
|
|
||||||
// */
|
|
||||||
// public static boolean registerPatterns(Object methods) {
|
|
||||||
// DefaultPatternParser parser = getParser(DefaultPatternParser.class);
|
|
||||||
// if (parser != null) parser.register(methods);
|
|
||||||
// return parser != null;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// /**
|
// /**
|
||||||
// * Add a custom transform for use in
|
// * Add a custom transform for use in
|
||||||
// *
|
// *
|
||||||
|
@ -30,7 +30,7 @@ public class HistoryExtent extends AbstractDelegateExtent {
|
|||||||
/**
|
/**
|
||||||
* Create a new instance.
|
* Create a new instance.
|
||||||
*
|
*
|
||||||
* @param extent the extent
|
* @param extent the extent
|
||||||
* @param changeSet the change set
|
* @param changeSet the change set
|
||||||
*/
|
*/
|
||||||
public HistoryExtent(Extent extent, AbstractChangeSet changeSet) {
|
public HistoryExtent(Extent extent, AbstractChangeSet changeSet) {
|
||||||
|
@ -46,6 +46,7 @@ public abstract class AbstractChangeSet implements ChangeSet, IBatchProcessor {
|
|||||||
private final World world;
|
private final World world;
|
||||||
protected AtomicInteger waitingCombined = new AtomicInteger(0);
|
protected AtomicInteger waitingCombined = new AtomicInteger(0);
|
||||||
protected AtomicInteger waitingAsync = new AtomicInteger(0);
|
protected AtomicInteger waitingAsync = new AtomicInteger(0);
|
||||||
|
|
||||||
protected boolean closed;
|
protected boolean closed;
|
||||||
|
|
||||||
public AbstractChangeSet(World world) {
|
public AbstractChangeSet(World world) {
|
||||||
|
@ -2,11 +2,7 @@ package com.boydti.fawe.object.regions;
|
|||||||
|
|
||||||
import com.boydti.fawe.object.collection.BlockVectorSet;
|
import com.boydti.fawe.object.collection.BlockVectorSet;
|
||||||
import com.sk89q.worldedit.EditSession;
|
import com.sk89q.worldedit.EditSession;
|
||||||
import com.sk89q.worldedit.WorldEditException;
|
|
||||||
import com.sk89q.worldedit.extent.Extent;
|
import com.sk89q.worldedit.extent.Extent;
|
||||||
import com.sk89q.worldedit.function.RegionFunction;
|
|
||||||
import com.sk89q.worldedit.function.mask.AbstractExtentMask;
|
|
||||||
import com.sk89q.worldedit.function.mask.DelegateExtentMask;
|
|
||||||
import com.sk89q.worldedit.function.mask.Mask;
|
import com.sk89q.worldedit.function.mask.Mask;
|
||||||
import com.sk89q.worldedit.function.operation.Operations;
|
import com.sk89q.worldedit.function.operation.Operations;
|
||||||
import com.sk89q.worldedit.function.visitor.RecursiveVisitor;
|
import com.sk89q.worldedit.function.visitor.RecursiveVisitor;
|
||||||
@ -45,12 +41,9 @@ public class FuzzyRegion extends AbstractRegion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void select(int x, int y, int z) {
|
public void select(int x, int y, int z) {
|
||||||
RecursiveVisitor search = new RecursiveVisitor(mask.withExtent(extent), new RegionFunction() {
|
RecursiveVisitor search = new RecursiveVisitor(mask.withExtent(extent), p -> {
|
||||||
@Override
|
setMinMax(p.getBlockX(), p.getBlockY(), p.getBlockZ());
|
||||||
public boolean apply(BlockVector3 p) throws WorldEditException {
|
return true;
|
||||||
setMinMax(p.getBlockX(), p.getBlockY(), p.getBlockZ());
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}, 256);
|
}, 256);
|
||||||
search.setVisited(set);
|
search.setVisited(set);
|
||||||
search.visit(BlockVector3.at(x, y, z));
|
search.visit(BlockVector3.at(x, y, z));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren