mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-27 11:37:36 +01:00
Added nullability annotations to both PlaceholderReplacers' #onReplace(...) method
This commit is contained in:
parent
b40f07f763
commit
e8ec7b24b4
@ -1,5 +1,7 @@
|
|||||||
package world.bentobox.bentobox.api.placeholders;
|
package world.bentobox.bentobox.api.placeholders;
|
||||||
|
|
||||||
|
import org.eclipse.jdt.annotation.NonNull;
|
||||||
|
import org.eclipse.jdt.annotation.Nullable;
|
||||||
import world.bentobox.bentobox.api.addons.GameModeAddon;
|
import world.bentobox.bentobox.api.addons.GameModeAddon;
|
||||||
import world.bentobox.bentobox.api.user.User;
|
import world.bentobox.bentobox.api.user.User;
|
||||||
import world.bentobox.bentobox.database.objects.Island;
|
import world.bentobox.bentobox.database.objects.Island;
|
||||||
@ -12,5 +14,6 @@ import world.bentobox.bentobox.database.objects.Island;
|
|||||||
@FunctionalInterface
|
@FunctionalInterface
|
||||||
public interface GameModePlaceholderReplacer {
|
public interface GameModePlaceholderReplacer {
|
||||||
|
|
||||||
String onReplace(GameModeAddon addon, User user, Island island);
|
@NonNull
|
||||||
|
String onReplace(@NonNull GameModeAddon addon, @Nullable User user, @Nullable Island island);
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
package world.bentobox.bentobox.api.placeholders;
|
package world.bentobox.bentobox.api.placeholders;
|
||||||
|
|
||||||
|
import org.eclipse.jdt.annotation.NonNull;
|
||||||
|
import org.eclipse.jdt.annotation.Nullable;
|
||||||
import world.bentobox.bentobox.api.user.User;
|
import world.bentobox.bentobox.api.user.User;
|
||||||
|
|
||||||
@FunctionalInterface
|
@FunctionalInterface
|
||||||
public interface PlaceholderReplacer {
|
public interface PlaceholderReplacer {
|
||||||
|
|
||||||
String onReplace(User user);
|
@NonNull
|
||||||
|
String onReplace(@Nullable User user);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user