Class FlagState
java.lang.Object
io.github.lijinhong11.protector.api.flag.FlagState
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IFlagState<Boolean> static final IFlagState<Boolean> static final IFlagState<Boolean> static final IFlagState<Object> Will use this flag state when the flag is not supported by the protection module.static final IFlagState<Object> Will use this flag state when the world is not found. -
Method Summary
Modifier and TypeMethodDescriptionstatic IFlagState<Boolean> fromBoolean(boolean value) static IFlagState<Boolean> fromNullableBoolean(@Nullable Boolean value) static <T> IFlagState<T> of(T value)
-
Field Details
-
ALLOW
-
DENY
-
NOT_SET
-
UNSUPPORTED
Will use this flag state when the flag is not supported by the protection module. -
WORLD_NOT_FOUND
Will use this flag state when the world is not found.
-
-
Method Details
-
fromBoolean
-
fromNullableBoolean
-
of
-