/* * This file is a part of the SteamWar software. * * Copyright (C) 2024 SteamWar.de-Serverteam * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ package de.steamwar.bausystem.regionnew; import com.sk89q.worldedit.EditSession; import de.steamwar.bausystem.regionnew.flags.Flag; import de.steamwar.sql.SchematicNode; import lombok.NonNull; import org.bukkit.Location; import javax.annotation.Nullable; import java.io.File; import java.util.Optional; public class FixedRegion implements Region { // TODO: Implement! @Override public RegionType getType() { return RegionType.NORMAL; } @Override public & Flag.Value> RegionFlagPolicy hasFlag(@NonNull Flag flag) { return null; } @Override public & Flag.Value> boolean setFlag(@NonNull Flag flag, Flag.Value value) { return false; } @Override public & Flag.Value> Optional> getFlag(@NonNull Flag flag) { return Optional.empty(); } @Override public Point getMinPoint() { return null; } @Override public Point getMaxPoint() { return null; } @Override public boolean inRegion(Location location) { return false; } @Override public Optional getBuildMinPoint(boolean extension) { return Optional.empty(); } @Override public Optional getBuildMaxPoint(boolean extension) { return Optional.empty(); } @Override public boolean inBuildRegion(boolean extension) { return false; } @Override public Optional getTestblockMinPoint(boolean extension) { return Optional.empty(); } @Override public Optional getTestblockMaxPoint(boolean extension) { return Optional.empty(); } @Override public boolean inTestblockRegion(boolean extension) { return false; } @Override public Optional getGameModeConfig() { return Optional.empty(); } @Override public Optional copy() { return Optional.empty(); } @Override public Optional copyBuild() { return Optional.empty(); } @Override public Optional copyTestblock() { return Optional.empty(); } @Override public void reset() { } @Override public void resetBuild(@Nullable SchematicNode schematicNode, boolean extension) { } @Override public void resetTestblock(@Nullable SchematicNode schematicNode, boolean extension) { } @Override public void remember(EditSession editSession) { } @Override public boolean undo() { return false; } @Override public boolean redo() { return false; } }