-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
49 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 27 additions & 21 deletions
48
...ru00/nethercube/elytra/gui/HotbarGUI.java → ...thercube/elytra/gui/HotbarGUIManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,53 @@ | ||
package com.gmail.justbru00.nethercube.elytra.gui; | ||
|
||
import org.bukkit.Material; | ||
import org.bukkit.enchantments.Enchantment; | ||
import org.bukkit.entity.Player; | ||
import org.bukkit.inventory.ItemStack; | ||
|
||
import com.gmail.justbru00.nethercube.elytra.utils.ItemBuilder; | ||
|
||
public class HotbarGUI { | ||
public class HotbarGUIManager { | ||
// Chapter back inactive | ||
// /give @p skull 1 3 {display:{Name:"Chapter Back"},SkullOwner:{Id:"9d008ae1-9bfa-4d9c-a05d-46d4d9c9db4e",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGZlNjY4ZTBkMzE0MTk3OGI4YWUyN2JmMjExYjAxYjQ0ZjEwNmI5ZDY0NzQxN2I4NTIwYTBhZGJjZjJlZjM1ZiJ9fX0="}]}}} | ||
|
||
|
||
// Chapter back active | ||
// /give @p skull 1 3 {display:{Name:"Chapter Back (active)"},SkullOwner:{Id:"1835860f-4273-4093-8444-fd1549e02b34",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGE1M2QwNDc5N2I0N2E2ODQ4NGQxMTEwMjVkOTQwYTM0ODg2YTBmYThkYzgwNmU3NDU3MDI0YTg3ZjFhYmQ1NiJ9fX0="}]}}} | ||
private static ItemStack elytra; | ||
private static ItemStack restartCurrentMapItem; | ||
private static ItemStack restartCurrentMapClickedItem; | ||
private static ItemStack exitToElytraLobbyItem; | ||
private static ItemStack hidePlayersItem; | ||
private static ItemStack showPlayersItem; | ||
|
||
|
||
private static ItemStack gamemodeSelectorHotbarItem; | ||
private static ItemStack cosmeticsSelectorHotbarItem; | ||
private static ItemStack optionsSelectorHotbarItem; | ||
private static ItemStack fourmsSelectorHotbarItem; | ||
private static ItemStack discordSelectorHotbarItem; | ||
private static ItemStack donorRanksStoreSelectorItem; | ||
|
||
|
||
/** | ||
* Get the items ready. | ||
*/ | ||
public static void init() { | ||
|
||
ItemStack toBeElytra = new ItemBuilder(Material.ELYTRA).setName("&bElytra").setUnbreakable(true).build(); | ||
toBeElytra.addEnchantment(Enchantment.BINDING_CURSE, 1); | ||
|
||
elytra = toBeElytra; | ||
|
||
exitToElytraLobbyItem = new ItemBuilder(Material.NETHER_STAR).setName("&cExit to lobby &7[Right Click]").build(); | ||
hidePlayersItem = new ItemBuilder(Material.EYE_OF_ENDER).setName("&cHide Players &7[Right Click]").build(); | ||
showPlayersItem = new ItemBuilder(Material.ENDER_PEARL).setName("&aShow Players &7[Right Click]").build(); | ||
gamemodeSelectorHotbarItem = new ItemBuilder(Material.END_CRYSTAL).setName("&bGamemode Selector &7[Right Click]").build(); | ||
cosmeticsSelectorHotbarItem = new ItemBuilder(Material.CHORUS_FRUIT_POPPED).setName("&fCosmetics &7[Right Click]").build(); | ||
optionsSelectorHotbarItem = new ItemBuilder(Material.REDSTONE_COMPARATOR).setName("&fOptions &7[Right Click]").build(); | ||
|
||
|
||
|
||
} | ||
|
||
/** | ||
* Sets the correct items in the players inventory. | ||
* @param p | ||
*/ | ||
public static void setInventory(Player p) { | ||
public static void setLobbyItems(Player p) { | ||
} | ||
|
||
public static void setElytraCourseItems(Player p) { | ||
|
||
} | ||
|
||
public static void setParkourCourseItems(Player p) { | ||
// TODO HOOK INTO PARKOUR | ||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters