Class Check
java.lang.Object
net.minestom.server.utils.validate.Check
Convenient class to check for common exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
argCondition
(boolean condition, @NotNull String reason) static void
argCondition
(boolean condition, @NotNull String reason, Object... arguments) static void
static void
static void
static void
stateCondition
(boolean condition, @NotNull String reason) static void
stateCondition
(boolean condition, @NotNull String reason, Object... arguments)
-
Method Details
-
notNull
-
notNull
-
argCondition
@Contract("true, _ -> fail") public static void argCondition(boolean condition, @NotNull @NotNull String reason) -
argCondition
-
fail
-
stateCondition
@Contract("true, _ -> fail") public static void stateCondition(boolean condition, @NotNull @NotNull String reason) -
stateCondition
-