aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2021-09-10 18:43:37 +0300
committerJuuz <6596629+Juuxel@users.noreply.github.com>2021-09-10 18:43:37 +0300
commit23406db80a4672c146aa1b720f403a6a5d4e464f (patch)
treec257f140b883118b9e21e234a958147fba5d9556 /src/main/java/io
parent00a0bb5a4176c16be3fa61ad33713131a053168f (diff)
downloadLibGui-23406db80a4672c146aa1b720f403a6a5d4e464f.tar.gz
LibGui-23406db80a4672c146aa1b720f403a6a5d4e464f.tar.bz2
LibGui-23406db80a4672c146aa1b720f403a6a5d4e464f.zip
Add taglet for listing observable properties
Overkill? Yep. Still fancy? Absolutely!
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WButton.java3
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java5
2 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WButton.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WButton.java
index 533e436..b845f41 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WButton.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WButton.java
@@ -20,6 +20,9 @@ import io.github.cottonmc.cotton.gui.widget.data.InputResult;
import io.github.cottonmc.cotton.gui.widget.icon.Icon;
import org.jetbrains.annotations.Nullable;
+/**
+ * @properties
+ */
public class WButton extends WWidget {
private static final Identifier DARK_WIDGETS_LOCATION = new Identifier("libgui", "textures/widget/dark_widgets.png");
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java
index 8de8567..b300d43 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java
@@ -1,7 +1,5 @@
package io.github.cottonmc.cotton.gui.widget;
-import io.github.cottonmc.cotton.gui.widget.data.ObservableProperty;
-
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
@@ -12,11 +10,14 @@ import net.minecraft.client.util.math.MatrixStack;
import io.github.cottonmc.cotton.gui.GuiDescription;
import io.github.cottonmc.cotton.gui.impl.VisualLogger;
import io.github.cottonmc.cotton.gui.widget.data.InputResult;
+import io.github.cottonmc.cotton.gui.widget.data.ObservableProperty;
import org.jetbrains.annotations.Nullable;
import org.lwjgl.glfw.GLFW;
/**
* The base class for all widgets.
+ *
+ * @properties
*/
public class WWidget {
private static final VisualLogger LOGGER = new VisualLogger(WWidget.class);