diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-05-16 18:39:49 +0300 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-05-16 18:39:49 +0300 |
commit | ce32233ed9a442b47456dddbefc06786cee7956c (patch) | |
tree | 6ce32101295e6089b5a9ea4bfe25f271a9a2b6e5 /src/main/java | |
parent | 75df4f3494a027421fd3dbaf12c3aeebac85f3e8 (diff) | |
download | LibGui-ce32233ed9a442b47456dddbefc06786cee7956c.tar.gz LibGui-ce32233ed9a442b47456dddbefc06786cee7956c.tar.bz2 LibGui-ce32233ed9a442b47456dddbefc06786cee7956c.zip |
Remove Lists.newArrayList usages
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java | 5 | ||||
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WPanel.java | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java index 585a807..012cf16 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java @@ -1,9 +1,8 @@ package io.github.cottonmc.cotton.gui.widget; +import java.util.ArrayList; import java.util.List; -import com.google.common.collect.Lists; - import io.github.cottonmc.cotton.gui.GuiDescription; import io.github.cottonmc.cotton.gui.ValidatedSlot; import io.github.cottonmc.cotton.gui.client.BackgroundPainter; @@ -14,7 +13,7 @@ import net.minecraft.client.util.math.MatrixStack; import net.minecraft.inventory.Inventory; public class WItemSlot extends WWidget { - private final List<ValidatedSlot> peers = Lists.newArrayList(); + private final List<ValidatedSlot> peers = new ArrayList<>(); private BackgroundPainter backgroundPainter; private Inventory inventory; private int startIndex = 0; diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanel.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanel.java index fe32718..d01ec35 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanel.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanel.java @@ -1,9 +1,8 @@ package io.github.cottonmc.cotton.gui.widget; +import java.util.ArrayList; import java.util.List; -import com.google.common.collect.Lists; - import io.github.cottonmc.cotton.gui.GuiDescription; import io.github.cottonmc.cotton.gui.client.BackgroundPainter; import net.fabricmc.api.EnvType; @@ -19,7 +18,7 @@ public abstract class WPanel extends WWidget { * * <p>The list is mutable. */ - protected final List<WWidget> children = Lists.newArrayList(); + protected final List<WWidget> children = new ArrayList<>(); @Environment(EnvType.CLIENT) private BackgroundPainter backgroundPainter = null; |