Skip to content

Commit 8bbd534

Browse files
sovdeethModerocky
andauthored
Mark ChangeInPlace as internal to prevent outside use for now. (#7294)
unsafe Co-authored-by: Moderocky <admin@moderocky.com>
1 parent 66bb52e commit 8bbd534

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/ch/njol/skript/lang/Expression.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import ch.njol.util.Checker;
3232
import org.bukkit.event.Event;
3333
import org.bukkit.inventory.ItemStack;
34+
import org.jetbrains.annotations.ApiStatus;
3435
import org.jetbrains.annotations.NotNull;
3536
import org.jetbrains.annotations.Nullable;
3637
import org.skriptlang.skript.lang.converter.Converter;
@@ -341,6 +342,7 @@ default Map<ChangeMode, Class<?>[]> getAcceptedChangeModes() {
341342
* @param <R> The output type of the change function. Must be a type returned
342343
* by {{@link #acceptChange(ChangeMode)}} for {@link ChangeMode#SET}.
343344
*/
345+
@ApiStatus.Internal
344346
default <R> void changeInPlace(Event event, Function<T, R> changeFunction) {
345347
changeInPlace(event, changeFunction, false);
346348
}
@@ -362,6 +364,7 @@ default <R> void changeInPlace(Event event, Function<T, R> changeFunction) {
362364
* @param <R> The output type of the change function. Must be a type returned
363365
* by {{@link #acceptChange(ChangeMode)}} for {@link ChangeMode#SET}.
364366
*/
367+
@ApiStatus.Internal
365368
default <R> void changeInPlace(Event event, Function<T, R> changeFunction, boolean getAll) {
366369
T[] values = getAll ? getAll(event) : getArray(event);
367370
if (values.length == 0)

0 commit comments

Comments
 (0)