From a765c6265862cd66752b82e4dc16e2e05a8a8dd2 Mon Sep 17 00:00:00 2001 From: Ben Woodworth Date: Thu, 24 Mar 2016 20:47:18 -0400 Subject: [PATCH] Moved gui package to api.gui --- src/main/java/co/kepler/fastcraftplus/FastCraft.java | 2 +- .../java/co/kepler/fastcraftplus/{ => api}/gui/GUI.java | 2 +- .../co/kepler/fastcraftplus/{ => api}/gui/GUIButton.java | 2 +- .../fastcraftplus/{ => api}/gui/GUIButtonGlowing.java | 2 +- .../kepler/fastcraftplus/{ => api}/gui/GUIItemBuilder.java | 2 +- .../java/co/kepler/fastcraftplus/{ => api}/gui/Layout.java | 2 +- .../co/kepler/fastcraftplus/{ => api}/gui/LayoutMulti.java | 2 +- .../co/kepler/fastcraftplus/{ => api}/gui/LayoutPaged.java | 2 +- .../co/kepler/fastcraftplus/craftgui/GUIButtonRecipe.java | 4 ++-- .../java/co/kepler/fastcraftplus/craftgui/GUIFastCraft.java | 2 +- .../co/kepler/fastcraftplus/craftgui/LayoutFastCraft.java | 4 ++-- .../co/kepler/fastcraftplus/craftgui/LayoutRecipes.java | 2 +- src/main/resources/lang/EN.yml | 6 ++++++ 13 files changed, 20 insertions(+), 14 deletions(-) rename src/main/java/co/kepler/fastcraftplus/{ => api}/gui/GUI.java (99%) rename src/main/java/co/kepler/fastcraftplus/{ => api}/gui/GUIButton.java (98%) rename src/main/java/co/kepler/fastcraftplus/{ => api}/gui/GUIButtonGlowing.java (97%) rename src/main/java/co/kepler/fastcraftplus/{ => api}/gui/GUIItemBuilder.java (98%) rename src/main/java/co/kepler/fastcraftplus/{ => api}/gui/Layout.java (98%) rename src/main/java/co/kepler/fastcraftplus/{ => api}/gui/LayoutMulti.java (98%) rename src/main/java/co/kepler/fastcraftplus/{ => api}/gui/LayoutPaged.java (98%) diff --git a/src/main/java/co/kepler/fastcraftplus/FastCraft.java b/src/main/java/co/kepler/fastcraftplus/FastCraft.java index 18ae4bab..3bb67b3d 100644 --- a/src/main/java/co/kepler/fastcraftplus/FastCraft.java +++ b/src/main/java/co/kepler/fastcraftplus/FastCraft.java @@ -1,8 +1,8 @@ package co.kepler.fastcraftplus; +import co.kepler.fastcraftplus.api.gui.GUI; import co.kepler.fastcraftplus.config.Language; import co.kepler.fastcraftplus.craftgui.GUIFastCraft; -import co.kepler.fastcraftplus.gui.GUI; import org.bukkit.event.Listener; import org.bukkit.plugin.java.JavaPlugin; diff --git a/src/main/java/co/kepler/fastcraftplus/gui/GUI.java b/src/main/java/co/kepler/fastcraftplus/api/gui/GUI.java similarity index 99% rename from src/main/java/co/kepler/fastcraftplus/gui/GUI.java rename to src/main/java/co/kepler/fastcraftplus/api/gui/GUI.java index 7d00dba4..3636e79b 100644 --- a/src/main/java/co/kepler/fastcraftplus/gui/GUI.java +++ b/src/main/java/co/kepler/fastcraftplus/api/gui/GUI.java @@ -1,4 +1,4 @@ -package co.kepler.fastcraftplus.gui; +package co.kepler.fastcraftplus.api.gui; import co.kepler.fastcraftplus.FastCraft; import org.bukkit.Bukkit; diff --git a/src/main/java/co/kepler/fastcraftplus/gui/GUIButton.java b/src/main/java/co/kepler/fastcraftplus/api/gui/GUIButton.java similarity index 98% rename from src/main/java/co/kepler/fastcraftplus/gui/GUIButton.java rename to src/main/java/co/kepler/fastcraftplus/api/gui/GUIButton.java index a86d2283..0079b9e7 100644 --- a/src/main/java/co/kepler/fastcraftplus/gui/GUIButton.java +++ b/src/main/java/co/kepler/fastcraftplus/api/gui/GUIButton.java @@ -1,4 +1,4 @@ -package co.kepler.fastcraftplus.gui; +package co.kepler.fastcraftplus.api.gui; import org.bukkit.Sound; import org.bukkit.event.inventory.InventoryClickEvent; diff --git a/src/main/java/co/kepler/fastcraftplus/gui/GUIButtonGlowing.java b/src/main/java/co/kepler/fastcraftplus/api/gui/GUIButtonGlowing.java similarity index 97% rename from src/main/java/co/kepler/fastcraftplus/gui/GUIButtonGlowing.java rename to src/main/java/co/kepler/fastcraftplus/api/gui/GUIButtonGlowing.java index 046088b3..07f327f1 100644 --- a/src/main/java/co/kepler/fastcraftplus/gui/GUIButtonGlowing.java +++ b/src/main/java/co/kepler/fastcraftplus/api/gui/GUIButtonGlowing.java @@ -1,4 +1,4 @@ -package co.kepler.fastcraftplus.gui; +package co.kepler.fastcraftplus.api.gui; import org.bukkit.inventory.ItemStack; diff --git a/src/main/java/co/kepler/fastcraftplus/gui/GUIItemBuilder.java b/src/main/java/co/kepler/fastcraftplus/api/gui/GUIItemBuilder.java similarity index 98% rename from src/main/java/co/kepler/fastcraftplus/gui/GUIItemBuilder.java rename to src/main/java/co/kepler/fastcraftplus/api/gui/GUIItemBuilder.java index 0473a7e6..71d53ebf 100644 --- a/src/main/java/co/kepler/fastcraftplus/gui/GUIItemBuilder.java +++ b/src/main/java/co/kepler/fastcraftplus/api/gui/GUIItemBuilder.java @@ -1,4 +1,4 @@ -package co.kepler.fastcraftplus.gui; +package co.kepler.fastcraftplus.api.gui; import org.bukkit.Material; import org.bukkit.enchantments.Enchantment; diff --git a/src/main/java/co/kepler/fastcraftplus/gui/Layout.java b/src/main/java/co/kepler/fastcraftplus/api/gui/Layout.java similarity index 98% rename from src/main/java/co/kepler/fastcraftplus/gui/Layout.java rename to src/main/java/co/kepler/fastcraftplus/api/gui/Layout.java index 70838b9f..9b7bb138 100644 --- a/src/main/java/co/kepler/fastcraftplus/gui/Layout.java +++ b/src/main/java/co/kepler/fastcraftplus/api/gui/Layout.java @@ -1,4 +1,4 @@ -package co.kepler.fastcraftplus.gui; +package co.kepler.fastcraftplus.api.gui; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/co/kepler/fastcraftplus/gui/LayoutMulti.java b/src/main/java/co/kepler/fastcraftplus/api/gui/LayoutMulti.java similarity index 98% rename from src/main/java/co/kepler/fastcraftplus/gui/LayoutMulti.java rename to src/main/java/co/kepler/fastcraftplus/api/gui/LayoutMulti.java index a0ef62c0..bb35b517 100644 --- a/src/main/java/co/kepler/fastcraftplus/gui/LayoutMulti.java +++ b/src/main/java/co/kepler/fastcraftplus/api/gui/LayoutMulti.java @@ -1,4 +1,4 @@ -package co.kepler.fastcraftplus.gui; +package co.kepler.fastcraftplus.api.gui; /** * A GUI layout that contains two other GUI layouts, one shown above the other. diff --git a/src/main/java/co/kepler/fastcraftplus/gui/LayoutPaged.java b/src/main/java/co/kepler/fastcraftplus/api/gui/LayoutPaged.java similarity index 98% rename from src/main/java/co/kepler/fastcraftplus/gui/LayoutPaged.java rename to src/main/java/co/kepler/fastcraftplus/api/gui/LayoutPaged.java index 3582c628..0c65d83f 100644 --- a/src/main/java/co/kepler/fastcraftplus/gui/LayoutPaged.java +++ b/src/main/java/co/kepler/fastcraftplus/api/gui/LayoutPaged.java @@ -1,4 +1,4 @@ -package co.kepler.fastcraftplus.gui; +package co.kepler.fastcraftplus.api.gui; /** * A GUI layout that is organized into pages. diff --git a/src/main/java/co/kepler/fastcraftplus/craftgui/GUIButtonRecipe.java b/src/main/java/co/kepler/fastcraftplus/craftgui/GUIButtonRecipe.java index 8f1eeb65..299c5c7f 100644 --- a/src/main/java/co/kepler/fastcraftplus/craftgui/GUIButtonRecipe.java +++ b/src/main/java/co/kepler/fastcraftplus/craftgui/GUIButtonRecipe.java @@ -1,10 +1,10 @@ package co.kepler.fastcraftplus.craftgui; import co.kepler.fastcraftplus.FastCraft; +import co.kepler.fastcraftplus.api.gui.GUIButton; +import co.kepler.fastcraftplus.api.gui.Layout; import co.kepler.fastcraftplus.crafting.FastRecipe; import co.kepler.fastcraftplus.crafting.Ingredient; -import co.kepler.fastcraftplus.gui.GUIButton; -import co.kepler.fastcraftplus.gui.Layout; import org.bukkit.event.inventory.ClickType; import org.bukkit.event.inventory.InventoryClickEvent; import org.bukkit.inventory.Inventory; diff --git a/src/main/java/co/kepler/fastcraftplus/craftgui/GUIFastCraft.java b/src/main/java/co/kepler/fastcraftplus/craftgui/GUIFastCraft.java index 7b0efb3d..d6b6577b 100644 --- a/src/main/java/co/kepler/fastcraftplus/craftgui/GUIFastCraft.java +++ b/src/main/java/co/kepler/fastcraftplus/craftgui/GUIFastCraft.java @@ -1,7 +1,7 @@ package co.kepler.fastcraftplus.craftgui; import co.kepler.fastcraftplus.FastCraft; -import co.kepler.fastcraftplus.gui.*; +import co.kepler.fastcraftplus.api.gui.*; import org.bukkit.*; import org.bukkit.block.Block; import org.bukkit.entity.HumanEntity; diff --git a/src/main/java/co/kepler/fastcraftplus/craftgui/LayoutFastCraft.java b/src/main/java/co/kepler/fastcraftplus/craftgui/LayoutFastCraft.java index 7be73082..7cbe710d 100644 --- a/src/main/java/co/kepler/fastcraftplus/craftgui/LayoutFastCraft.java +++ b/src/main/java/co/kepler/fastcraftplus/craftgui/LayoutFastCraft.java @@ -1,7 +1,7 @@ package co.kepler.fastcraftplus.craftgui; -import co.kepler.fastcraftplus.gui.Layout; -import co.kepler.fastcraftplus.gui.LayoutMulti; +import co.kepler.fastcraftplus.api.gui.Layout; +import co.kepler.fastcraftplus.api.gui.LayoutMulti; /** * The button layout for the FastCraft GUI. diff --git a/src/main/java/co/kepler/fastcraftplus/craftgui/LayoutRecipes.java b/src/main/java/co/kepler/fastcraftplus/craftgui/LayoutRecipes.java index 051cfee6..af2a40e1 100644 --- a/src/main/java/co/kepler/fastcraftplus/craftgui/LayoutRecipes.java +++ b/src/main/java/co/kepler/fastcraftplus/craftgui/LayoutRecipes.java @@ -1,7 +1,7 @@ package co.kepler.fastcraftplus.craftgui; +import co.kepler.fastcraftplus.api.gui.LayoutPaged; import co.kepler.fastcraftplus.crafting.FastRecipe; -import co.kepler.fastcraftplus.gui.LayoutPaged; import java.util.HashSet; import java.util.List; diff --git a/src/main/resources/lang/EN.yml b/src/main/resources/lang/EN.yml index 9b5e72a8..c519dd6e 100644 --- a/src/main/resources/lang/EN.yml +++ b/src/main/resources/lang/EN.yml @@ -1,3 +1,9 @@ +# If you translate this file, feel free to PM it to Kepler_ on spigotmc.org +# if you would like it to be officially added to FastCraft+ officially. +# +# Use ampersands (&) for formatting/color codes. Info about formatting codes: +# http://minecraft.gamepedia.com/Formatting_codes + gui: title: 'FastCraft+'