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.logging.Level;
public class FlatteningWrapper15 implements FlatteningWrapper.IFlatteningWrapper {
public class FlatteningWrapper15 implements FlatteningWrapper {
@Override
public boolean isNoBook(ItemStack item) {

Datei anzeigen

@ -45,7 +45,7 @@ public class LinkageUtils {
{
objectMap.put(Config.class, Config.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);
}

Datei anzeigen

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