SteamWar/BauSystem2.0
Archiviert
12
0

Update FlatteningWrapper
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-08-03 19:10:26 +02:00
Ursprung 056015395a
Commit 88aa07ccb2
3 geänderte Dateien mit 17 neuen und 21 gelöschten Zeilen

Datei anzeigen

@ -63,7 +63,7 @@ import java.io.IOException;
import java.util.*; import java.util.*;
import java.util.logging.Level; import java.util.logging.Level;
public class FlatteningWrapper15 implements FlatteningWrapper.IFlatteningWrapper { public class FlatteningWrapper15 implements FlatteningWrapper {
@Override @Override
public boolean isNoBook(ItemStack item) { public boolean isNoBook(ItemStack item) {

Datei anzeigen

@ -45,7 +45,7 @@ public class LinkageUtils {
{ {
objectMap.put(Config.class, Config.getInstance()); objectMap.put(Config.class, Config.getInstance());
objectMap.put(BauSystem.class, BauSystem.getInstance()); objectMap.put(BauSystem.class, BauSystem.getInstance());
objectMap.put(FlatteningWrapper.IFlatteningWrapper.class, FlatteningWrapper.impl); objectMap.put(FlatteningWrapper.class, FlatteningWrapper.impl);
objectMap.put(NMSWrapper.INMSWrapper.class, NMSWrapper.impl); objectMap.put(NMSWrapper.INMSWrapper.class, NMSWrapper.impl);
} }

Datei anzeigen

@ -35,29 +35,25 @@ import org.bukkit.util.Vector;
import java.io.File; import java.io.File;
public class FlatteningWrapper { public interface FlatteningWrapper {
private FlatteningWrapper() {} FlatteningWrapper impl = VersionDependent.getVersionImpl(BauSystem.getInstance());
public static final IFlatteningWrapper impl = VersionDependent.getVersionImpl(BauSystem.getInstance()); boolean isNoBook(ItemStack item);
public interface IFlatteningWrapper { boolean isUnpusheable(Material material);
boolean isNoBook(ItemStack item); boolean isBreakingOnPush(Material material);
boolean isUnpusheable(Material material); boolean isWorldEditCommand(String command);
boolean isBreakingOnPush(Material material); void setSelection(Player p, Point minPoint, Point maxPoint);
boolean isWorldEditCommand(String command); EditSession paste(File file, Point pastePoint, PasteOptions pasteOptions);
void setSelection(Player p, Point minPoint, Point maxPoint); EditSession paste(Clipboard clipboard, Point pastePoint, PasteOptions pasteOptions);
void changeColor(Clipboard clipboard, Color color) throws WorldEditException;
boolean backup(Point minPoint, Point maxPoint, File file);
EditSession paste(File file, Point pastePoint, PasteOptions pasteOptions); boolean inWater(World world, Vector tntPosition);
EditSession paste(Clipboard clipboard, Point pastePoint, PasteOptions pasteOptions);
void changeColor(Clipboard clipboard, Color color) throws WorldEditException;
boolean backup(Point minPoint, Point maxPoint, File file);
boolean inWater(World world, Vector tntPosition); Material getTraceShowMaterial();
Material getTraceHideMaterial();
Material getTraceShowMaterial(); Material getTraceXZMaterial();
Material getTraceHideMaterial();
Material getTraceXZMaterial();
}
} }