forked from SteamWar/SteamWar
Add PlotRegionBackups
Update DisplayRegionData constructor
This commit is contained in:
+3
-3
@@ -20,8 +20,8 @@
|
||||
package de.steamwar.bausystem.region.dynamic.modes;
|
||||
|
||||
import de.steamwar.bausystem.region.RegionData;
|
||||
import de.steamwar.bausystem.region.RegionDataStore;
|
||||
import de.steamwar.bausystem.region.RegionFlagPolicy;
|
||||
import de.steamwar.bausystem.region.dynamic.DynamicRegion;
|
||||
import de.steamwar.bausystem.region.flags.Flag;
|
||||
import de.steamwar.bausystem.region.flags.TNTMode;
|
||||
import de.steamwar.core.Core;
|
||||
@@ -29,8 +29,8 @@ import lombok.NonNull;
|
||||
|
||||
public class DisplayRegionData extends RegionData {
|
||||
|
||||
public DisplayRegionData(RegionDataStore store) {
|
||||
super(store);
|
||||
public DisplayRegionData(DynamicRegion region) {
|
||||
super(region);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* This file is a part of the SteamWar software.
|
||||
*
|
||||
* Copyright (C) 2026 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package de.steamwar.bausystem.region.dynamic.modes;
|
||||
|
||||
import de.steamwar.bausystem.region.RegionBackups;
|
||||
import de.steamwar.bausystem.region.RegionDataStore;
|
||||
import de.steamwar.bausystem.region.dynamic.DynamicRegion;
|
||||
import lombok.NonNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public class PlotRegionBackups implements RegionBackups {
|
||||
|
||||
public PlotRegionBackups(DynamicRegion region, Consumer<RegionDataStore> regionDataConstructor) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Optional<Backup> create(BackupType backupType) {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NonNull List<Backup> list() {
|
||||
return List.of();
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable Backup get(String name) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user