diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/data/ObservableView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/data/ObservableView.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/data/ObservableView.java index 8bad55c..5f6a33c 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/data/ObservableView.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/data/ObservableView.java @@ -67,8 +67,8 @@ public interface ObservableView<T> extends Supplier<T> { * Handles a change in an observable property. * * @param property the changed property or view - * @param from the previous value - * @param to the new value + * @param from the previous value, or null if not set before + * @param to the new value, or null if cleared */ void onPropertyChange(ObservableView<? extends T> property, @Nullable T from, @Nullable T to); } |