STEMMechanics / Osm2Map

Spigot plugin using OpenStreetMap to generate Minecraft map with more features !
0 stars 1 forks source link

Compile-Time Errors Mega-Thread #1

Open ProjectHSI opened 5 months ago

ProjectHSI commented 5 months ago

This issue is for the discussion of all current compile-time errors as a result of updating from outdated versions of existing plugins & from an outdated version of Minecraft.

ProjectHSI commented 5 months ago

The current compiler warnings & errors as of https://github.com/STEMMechanics/Osm2Map/commit/370bdff54eb019b53f1ddc128b00a90f7617a931

/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/terrainGeneration/SchemList.java:3: error: package com.boydti.fawe does not exist
import com.boydti.fawe.FaweAPI;
                      ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/terrainGeneration/SuperSchematic.java:3: error: package com.boydti.fawe.object.schematic does not exist
import com.boydti.fawe.object.schematic.Schematic;
                                       ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/terrainGeneration/SuperSchematic.java:15: error: cannot find symbol
    Schematic schem;
    ^
  symbol:   class Schematic
  location: class SuperSchematic
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/terrainGeneration/SuperSchematic.java:17: error: cannot find symbol
    public SuperSchematic(Schematic schem) {
                          ^
  symbol:   class Schematic
  location: class SuperSchematic
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:3: error: package com.boydti.fawe does not exist
import com.boydti.fawe.FaweAPI;
                      ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:4: error: package com.boydti.fawe.object does not exist
import com.boydti.fawe.object.FawePlayer;
                             ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:5: error: package com.boydti.fawe.regions does not exist
import com.boydti.fawe.regions.FaweMask;
                              ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:6: error: package com.boydti.fawe.regions does not exist
import com.boydti.fawe.regions.FaweMaskManager;
                              ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:7: error: package com.boydti.fawe.regions does not exist
import com.boydti.fawe.regions.SimpleRegion;
                              ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:15: error: cannot find symbol
public class ZoneMaskManager extends FaweMaskManager {
                                     ^
  symbol: class FaweMaskManager
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:25: error: cannot find symbol
    public FaweMask getMask(FawePlayer fp, MaskType type) {
                            ^
  symbol:   class FawePlayer
  location: class ZoneMaskManager
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:25: error: cannot find symbol
    public FaweMask getMask(FawePlayer fp, MaskType type) {
                                           ^
  symbol:   class MaskType
  location: class ZoneMaskManager
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:25: error: cannot find symbol
    public FaweMask getMask(FawePlayer fp, MaskType type) {
           ^
  symbol:   class FaweMask
  location: class ZoneMaskManager
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/map/entity/JtsWay.java:57: warning: [deprecation] CAP_SQUARE in BufferOp has been deprecated
        return geometry.buffer(thickness / 2f + 1, 1, BufferOp.CAP_SQUARE);
                                                              ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/Util.java:121: warning: [deprecation] CuboidClipboard in com.sk89q.worldedit has been deprecated
    public static CuboidClipboard cloneCuboidClipboard(CuboidClipboard clip) {
                  ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/Util.java:121: warning: [deprecation] CuboidClipboard in com.sk89q.worldedit has been deprecated
    public static CuboidClipboard cloneCuboidClipboard(CuboidClipboard clip) {
                                                       ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/Util.java:122: warning: [deprecation] CuboidClipboard in com.sk89q.worldedit has been deprecated
        CuboidClipboard result = new CuboidClipboard(clip.getSize(), clip.getOrigin(), clip.getOffset());
        ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/Util.java:122: warning: [deprecation] CuboidClipboard in com.sk89q.worldedit has been deprecated
        CuboidClipboard result = new CuboidClipboard(clip.getSize(), clip.getOrigin(), clip.getOffset());
                                     ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/Util.java:907: warning: [deprecation] CuboidClipboard in com.sk89q.worldedit has been deprecated
    public static void copyCuboidClipboard(CuboidClipboard schem, CuboidClipboard schemResized) {
                                           ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/Util.java:907: warning: [deprecation] CuboidClipboard in com.sk89q.worldedit has been deprecated
    public static void copyCuboidClipboard(CuboidClipboard schem, CuboidClipboard schemResized) {
                                                                  ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/Util.java:920: warning: [deprecation] CuboidClipboard in com.sk89q.worldedit has been deprecated
    public static CuboidClipboard copyCuboidClipboard(CuboidClipboard schem) {
                  ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/Util.java:920: warning: [deprecation] CuboidClipboard in com.sk89q.worldedit has been deprecated
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/terrainGeneration/SuperSchematic.java:61: error: incompatible types: Vector cannot be converted to BlockVector3
            Clipboard rotatedClip = new BlockArrayClipboard(new CuboidRegion(new Vector(), new Vector(Math.abs(sizeRotated.getBlockX()),
                                                                             ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/terrainGeneration/SuperSchematic.java:87: error: no suitable method found for setBlock(Vector,BaseBlock)
                        rotatedClip.setBlock(new Vector(newX, y, newZ), block);
                                   ^
    method OutputExtent.<T>setBlock(BlockVector3,T) is not applicable
      (cannot infer type-variable(s) T
        (argument mismatch; Vector cannot be converted to BlockVector3))
    method OutputExtent.<B>setBlock(int,int,int,B) is not applicable
      (cannot infer type-variable(s) B
        (actual and formal argument lists differ in length))
  where T,B are type-variables:
    T extends BlockStateHolder<T> declared in method <T>setBlock(BlockVector3,T)
    B extends BlockStateHolder<B> declared in method <B>setBlock(int,int,int,B)
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/terrainGeneration/SuperSchematic.java:92: error: cannot find symbol
            return new SuperSchematic(new Schematic(rotatedClip));
                                          ^
  symbol:   class Schematic
  location: class SuperSchematic
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:24: error: method does not override or implement a method from a supertype
    @Override
    ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:36: error: cannot find symbol
            Region maskedRegion = new SimpleRegion(FaweAPI.getWorld(worldName), new Vector(tl.x, 0, tl.y), new Vector(br.x, 256, br.y)) {
                                      ^
  symbol:   class SimpleRegion
  location: class ZoneMaskManager
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:37: error: method does not override or implement a method from a supertype
                @Override
                ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:48: error: method does not override or implement a method from a supertype
                @Override
                ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:36: error: cannot find symbol
            Region maskedRegion = new SimpleRegion(FaweAPI.getWorld(worldName), new Vector(tl.x, 0, tl.y), new Vector(br.x, 256, br.y)) {
                                                   ^
  symbol:   variable FaweAPI
  location: class ZoneMaskManager
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:54: error: cannot find symbol
            return new FaweMask(maskedRegion, "Osm2Map") {
                       ^
  symbol:   class FaweMask
  location: class ZoneMaskManager
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:56: error: cannot find symbol
                public boolean isValid(FawePlayer player, MaskType type) {
                                       ^
  symbol: class FawePlayer
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:56: error: cannot find symbol
                public boolean isValid(FawePlayer player, MaskType type) {
                                                          ^
  symbol: class MaskType
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/ZoneMaskManager.java:55: error: method does not override or implement a method from a supertype
                @Override
                ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/command/ZoneCommands.java:54: error: cannot find symbol
            Region region = worldEdit.getSessionManager().findByName(src.getName()).getSelection(worldEdit.getServer().getWorlds().get(0));
                                                                                                          ^
  symbol:   method getServer()
  location: variable worldEdit of type WorldEdit
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/command/ZoneCommands.java:59: error: incompatible types: BlockVector3 cannot be converted to Vector
                Vector min = r.getMinimumPoint();
                                              ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/command/ZoneCommands.java:60: error: incompatible types: BlockVector3 cannot be converted to Vector
                Vector max = r.getMaximumPoint();
                                              ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/command/ZoneCommands.java:68: error: incompatible types: BlockVector2 cannot be converted to BlockVector2D
                for (BlockVector2D p : r.getPoints()) {
                                                  ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/pluginInterface/BukkitInterface.java:14: warning: [deprecation] MaterialData(Material,byte) in MaterialData has been deprecated
        return new MaterialData(Material.getMaterial(id), (byte) data);
               ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/pluginInterface/BukkitInterface.java:14: warning: [deprecation] getMaterial(int) in Material has been deprecated
        return new MaterialData(Material.getMaterial(id), (byte) data);
                                        ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/pluginInterface/BukkitInterface.java:47: warning: [deprecation] getId() in Material has been deprecated

        return block.getId();
                    ^

/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/request/ZoneCreateRequest.java:66: warning: [deprecation] CuboidClipboard in com.sk89q.worldedit has been deprecated
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
            CuboidClipboard clip = new CuboidClipboard(new Vector(width, 256, height), origin);

            ^
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/request/ZoneCreateRequest.java:66: warning: [deprecation] CuboidClipboard in com.sk89q.worldedit has been deprecated

            CuboidClipboard clip = new CuboidClipboard(new Vector(width, 256, height), origin);
                                       ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/request/ZoneCreateRequest.java:95: warning: [deprecation] getData() in MaterialData has been deprecated
        b.setData(block.getData());
                       ^
/home/runner/work/Osm2Map/Osm2Map/src/main/java/com/wardenfar/osm2map/request/ZoneCreateRequest.java:95: warning: [deprecation] setData(byte) in Block has been deprecated
        b.setData(block.getData());
         ^