aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2021-05-27 21:43:57 +0300
committerJuuz <6596629+Juuxel@users.noreply.github.com>2021-05-27 21:43:57 +0300
commitbce5799d0db55260ab3f1c872e6f2ba64c6c6c67 (patch)
tree4806a336ddd534b246e593831e38875bed1611ba /src/main/java
parent18f316904031f95d75e3216662969d885e45ff40 (diff)
downloadLibGui-bce5799d0db55260ab3f1c872e6f2ba64c6c6c67.tar.gz
LibGui-bce5799d0db55260ab3f1c872e6f2ba64c6c6c67.tar.bz2
LibGui-bce5799d0db55260ab3f1c872e6f2ba64c6c6c67.zip
Move Vec2i into widget.data
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/GuiDescription.java2
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java2
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/LightweightGuiDescription.java2
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/math/package-info.java6
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/data/Vec2i.java (renamed from src/main/java/io/github/cottonmc/cotton/gui/math/Vec2i.java)2
5 files changed, 4 insertions, 10 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/GuiDescription.java b/src/main/java/io/github/cottonmc/cotton/gui/GuiDescription.java
index 05770ae..5962e69 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/GuiDescription.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/GuiDescription.java
@@ -5,10 +5,10 @@ import net.fabricmc.api.Environment;
import net.minecraft.screen.PropertyDelegate;
import io.github.cottonmc.cotton.gui.impl.FocusHandler;
-import io.github.cottonmc.cotton.gui.math.Vec2i;
import io.github.cottonmc.cotton.gui.widget.WPanel;
import io.github.cottonmc.cotton.gui.widget.WWidget;
import io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment;
+import io.github.cottonmc.cotton.gui.widget.data.Vec2i;
import org.jetbrains.annotations.Nullable;
/**
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java b/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java
index 10adbce..3526cb1 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java
@@ -27,7 +27,6 @@ import net.minecraft.world.World;
import io.github.cottonmc.cotton.gui.client.BackgroundPainter;
import io.github.cottonmc.cotton.gui.client.LibGui;
-import io.github.cottonmc.cotton.gui.math.Vec2i;
import io.github.cottonmc.cotton.gui.networking.NetworkSide;
import io.github.cottonmc.cotton.gui.widget.WGridPanel;
import io.github.cottonmc.cotton.gui.widget.WLabel;
@@ -36,6 +35,7 @@ import io.github.cottonmc.cotton.gui.widget.WPlayerInvPanel;
import io.github.cottonmc.cotton.gui.widget.WWidget;
import io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment;
import io.github.cottonmc.cotton.gui.widget.data.Insets;
+import io.github.cottonmc.cotton.gui.widget.data.Vec2i;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList;
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/LightweightGuiDescription.java b/src/main/java/io/github/cottonmc/cotton/gui/client/LightweightGuiDescription.java
index fd0d8dd..1c23da8 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/LightweightGuiDescription.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/LightweightGuiDescription.java
@@ -4,13 +4,13 @@ import net.minecraft.screen.PropertyDelegate;
import io.github.cottonmc.cotton.gui.GuiDescription;
import io.github.cottonmc.cotton.gui.ValidatedSlot;
-import io.github.cottonmc.cotton.gui.math.Vec2i;
import io.github.cottonmc.cotton.gui.widget.WGridPanel;
import io.github.cottonmc.cotton.gui.widget.WLabel;
import io.github.cottonmc.cotton.gui.widget.WPanel;
import io.github.cottonmc.cotton.gui.widget.WWidget;
import io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment;
import io.github.cottonmc.cotton.gui.widget.data.Insets;
+import io.github.cottonmc.cotton.gui.widget.data.Vec2i;
import org.jetbrains.annotations.Nullable;
/**
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/math/package-info.java b/src/main/java/io/github/cottonmc/cotton/gui/math/package-info.java
deleted file mode 100644
index 2ab2ffb..0000000
--- a/src/main/java/io/github/cottonmc/cotton/gui/math/package-info.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * LibGui-specific math data types.
- *
- * @since 4.0.0
- */
-package io.github.cottonmc.cotton.gui.math;
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/math/Vec2i.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/data/Vec2i.java
index 7ee8f0d..98238bc 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/math/Vec2i.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/data/Vec2i.java
@@ -1,4 +1,4 @@
-package io.github.cottonmc.cotton.gui.math;
+package io.github.cottonmc.cotton.gui.widget.data;
/**
* An immutable, two-dimensional int vector.