-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from TheNextLvl-net/cleanup
Cleanup: removed lombok and jetbrains annotations and moved plugins module to root
- Loading branch information
Showing
85 changed files
with
743 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 8 additions & 3 deletions
11
api/src/main/java/net/thenextlvl/worlds/api/event/WorldDeleteEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
package net.thenextlvl.worlds.api.event; | ||
|
||
import lombok.Getter; | ||
import org.bukkit.World; | ||
import org.bukkit.event.HandlerList; | ||
import org.bukkit.event.world.WorldEvent; | ||
import org.jspecify.annotations.NullMarked; | ||
|
||
@NullMarked | ||
public class WorldDeleteEvent extends WorldEvent { | ||
private static final @Getter HandlerList handlerList = new HandlerList(); | ||
private static final HandlerList handlerList = new HandlerList(); | ||
|
||
public WorldDeleteEvent(World world) { | ||
super(world, false); | ||
} | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
return getHandlerList(); | ||
return handlerList; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
return handlerList; | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
api/src/main/java/net/thenextlvl/worlds/api/event/WorldRegenerateEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
api/src/main/java/net/thenextlvl/worlds/api/event/package-info.java
This file was deleted.
Oops, something went wrong.
31 changes: 28 additions & 3 deletions
31
api/src/main/java/net/thenextlvl/worlds/api/exception/GeneratorException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,45 @@ | ||
package net.thenextlvl.worlds.api.exception; | ||
|
||
import lombok.Getter; | ||
import org.jetbrains.annotations.Nullable; | ||
import org.jspecify.annotations.NullMarked; | ||
import org.jspecify.annotations.Nullable; | ||
|
||
/** | ||
* The GeneratorException class is a custom exception that is thrown when a requested plugin as a generator | ||
* cannot be found, is disabled, or doesn't provide a chunk generator or biome provider. | ||
*/ | ||
@Getter | ||
@NullMarked | ||
public class GeneratorException extends RuntimeException { | ||
private final String plugin; | ||
private final @Nullable String id; | ||
|
||
/** | ||
* Constructs a new GeneratorException with the specified plugin name, generator ID, and error message. | ||
* | ||
* @param plugin the name of the plugin associated with the generator | ||
* @param id the unique identifier for the generator | ||
* @param message the detailed error message describing the reason for the exception | ||
*/ | ||
public GeneratorException(String plugin, @Nullable String id, String message) { | ||
super(message); | ||
this.plugin = plugin; | ||
this.id = id; | ||
} | ||
|
||
/** | ||
* Retrieves the name of the plugin associated with the generator exception. | ||
* | ||
* @return a string representing the plugin name | ||
*/ | ||
public String getPlugin() { | ||
return plugin; | ||
} | ||
|
||
/** | ||
* Retrieves the unique identifier associated with the generator exception. | ||
* | ||
* @return a nullable string representing the ID of the generator, or null if no ID is provided | ||
*/ | ||
public @Nullable String getId() { | ||
return id; | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
api/src/main/java/net/thenextlvl/worlds/api/exception/package-info.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 11 additions & 6 deletions
17
api/src/main/java/net/thenextlvl/worlds/api/link/Relative.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
api/src/main/java/net/thenextlvl/worlds/api/model/LevelExtras.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
api/src/main/java/net/thenextlvl/worlds/api/model/package-info.java
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
api/src/main/java/net/thenextlvl/worlds/api/preset/Biome.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
api/src/main/java/net/thenextlvl/worlds/api/preset/Layer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.