forked from Slimefun/Slimefun4
-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
173 changed files
with
12,289 additions
and
1,220 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
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 |
---|---|---|
|
@@ -9,3 +9,5 @@ updates: | |
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "🔧" |
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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
before_install: | ||
- sdk install java 17.0.1-open | ||
- sdk use java 17.0.1-open | ||
|
||
jdk: | ||
- openjdk17 |
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
47 changes: 47 additions & 0 deletions
47
src/main/java/io/github/thebusybiscuit/slimefun4/api/exceptions/BiomeMapException.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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package io.github.thebusybiscuit.slimefun4.api.exceptions; | ||
|
||
import javax.annotation.ParametersAreNonnullByDefault; | ||
|
||
import org.bukkit.NamespacedKey; | ||
|
||
import io.github.thebusybiscuit.slimefun4.utils.biomes.BiomeMap; | ||
|
||
/** | ||
* A {@link BiomeMapException} is thrown whenever a {@link BiomeMap} | ||
* contains illegal, invalid or unknown values. | ||
* | ||
* @author TheBusyBiscuit | ||
* | ||
*/ | ||
public class BiomeMapException extends Exception { | ||
|
||
private static final long serialVersionUID = -1894334121194788527L; | ||
|
||
/** | ||
* This constructs a new {@link BiomeMapException} for the given | ||
* {@link BiomeMap}'s {@link NamespacedKey} with the provided context. | ||
* | ||
* @param key | ||
* The {@link NamespacedKey} of our {@link BiomeMap} | ||
* @param message | ||
* The message to display | ||
*/ | ||
@ParametersAreNonnullByDefault | ||
public BiomeMapException(NamespacedKey key, String message) { | ||
super("Biome Map '" + key + "' has been misconfigured: " + message); | ||
} | ||
|
||
/** | ||
* This constructs a new {@link BiomeMapException} for the given | ||
* {@link BiomeMap}'s {@link NamespacedKey} with the provided context. | ||
* | ||
* @param key | ||
* The {@link NamespacedKey} of our {@link BiomeMap} | ||
* @param cause | ||
* The {@link Throwable} which has caused this to happen | ||
*/ | ||
@ParametersAreNonnullByDefault | ||
public BiomeMapException(NamespacedKey key, Throwable cause) { | ||
super("Biome Map '" + key + "' has been misconfigured (" + cause.getMessage() + ')', cause); | ||
} | ||
} |
Oops, something went wrong.