Last active
February 26, 2016 08:15
-
-
Save cFerg/c78dbc4d29cd80a983a3 to your computer and use it in GitHub Desktop.
Minis
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
package elite.mini; | |
import com.mojang.authlib.GameProfile; | |
import com.mojang.authlib.properties.Property; | |
import java.lang.reflect.Field; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.UUID; | |
import org.apache.commons.codec.binary.Base64; | |
import org.bukkit.Bukkit; | |
import org.bukkit.ChatColor; | |
import org.bukkit.Material; | |
import org.bukkit.SkullType; | |
import org.bukkit.entity.Player; | |
import org.bukkit.inventory.Inventory; | |
import org.bukkit.inventory.ItemStack; | |
import org.bukkit.inventory.meta.ItemMeta; | |
import org.bukkit.inventory.meta.SkullMeta; | |
public class gui { | |
//SLOT NUMBERS START AT 0-8 not 1-9 (but Inventory size is in 9s) | |
private final HashMap<String, ItemStack> Gadgets = new HashMap<>(); | |
private final HashMap<String, ItemStack> Hotbar = new HashMap<>(); | |
private final Inventory Inv_Gadgets1 = Bukkit.createInventory(null, 45, (ChatColor.DARK_GREEN + "Mini " + ChatColor.DARK_AQUA + "Gadgets " + ChatColor.WHITE + "- " + ChatColor.BLACK + "Page 1")); | |
private final Inventory Inv_Gadgets2 = Bukkit.createInventory(null, 45, (ChatColor.DARK_GREEN + "Mini " + ChatColor.DARK_AQUA + "Gadgets " + ChatColor.WHITE + "- " + ChatColor.BLACK + "Page 2")); | |
public ItemStack getHotbar(String string){ | |
ItemStack item = Hotbar.get(string); | |
return item; | |
} | |
public ItemStack getItem(String string){ | |
ItemStack item = Gadgets.get(string); | |
return item; | |
} | |
public Boolean compareItems(ItemStack item){ | |
return Gadgets.containsValue(item); | |
} | |
public ItemStack setCustomOwner(ItemStack head, String url) { | |
if(url.isEmpty()) return head; | |
SkullMeta headMeta = (SkullMeta) head.getItemMeta(); | |
GameProfile profile = new GameProfile(UUID.randomUUID(), null); | |
byte[] encodedData = Base64.encodeBase64(String.format("{textures:{SKIN:{url:\"%s\"}}}", url).getBytes()); | |
profile.getProperties().put("textures", new Property("textures", new String(encodedData))); | |
try { | |
Field profileField = headMeta.getClass().getDeclaredField("profile"); | |
profileField.setAccessible(true); | |
profileField.set(headMeta, profile); | |
} catch (NoSuchFieldException | IllegalArgumentException | IllegalAccessException e1) { | |
} | |
head.setItemMeta(headMeta); | |
return head; | |
} | |
public void initialize_GadgetsMain(){ | |
//======================================================= | |
//Remove Gadget | |
//======================================================= | |
ItemStack itemRemove = new ItemStack(Material.STAINED_GLASS, 1, (byte) 14); | |
ItemMeta metaRemove = itemRemove.getItemMeta(); | |
metaRemove.setDisplayName(ChatColor.RED + "Reset Gadget"); | |
itemRemove.setItemMeta(metaRemove); | |
Gadgets.putIfAbsent("Remove", itemRemove); | |
//======================================================= | |
//Previous Page | |
//======================================================= | |
ItemStack itemPrevious = new ItemStack(Material.ARROW); | |
ItemMeta metaPrevious = itemPrevious.getItemMeta(); | |
metaPrevious.setDisplayName(ChatColor.GREEN + "Go Back"); | |
itemPrevious.setItemMeta(metaPrevious); | |
Gadgets.putIfAbsent("Previous", itemPrevious); | |
//======================================================= | |
//Next Page | |
//======================================================= | |
ItemStack itemNext = new ItemStack(Material.ARROW); | |
ItemMeta metaNext = itemNext.getItemMeta(); | |
metaNext.setDisplayName(ChatColor.GREEN + "Next Page"); | |
itemNext.setItemMeta(metaNext); | |
Gadgets.putIfAbsent("Next", itemNext); | |
//======================================================= | |
//Collectibles (Just for cosmetic purposes) | |
//======================================================= | |
ItemStack itemCollectibles = new ItemStack(Material.CHEST); | |
ItemMeta metaCollectibles = itemCollectibles.getItemMeta(); | |
metaCollectibles.setDisplayName(ChatColor.GREEN + "Collectibles"); | |
itemCollectibles.setItemMeta(metaCollectibles); | |
Gadgets.putIfAbsent("Collectibles", itemCollectibles); | |
} | |
//Initialize First page of gadgets | |
public void initialize_Gadgets1(){ | |
//======================================================= | |
//Airplane | |
//======================================================= | |
ItemStack itemAirplane = new ItemStack(Material.IRON_BARDING); | |
ItemMeta metaAirplane = itemAirplane.getItemMeta(); | |
ArrayList<String> loreAirplane = new ArrayList<>(); | |
metaAirplane.setLore(loreAirplane); | |
itemAirplane.setItemMeta(metaAirplane); | |
Gadgets.putIfAbsent("Airplane", itemAirplane); | |
//======================================================= | |
//AC-130 | |
//======================================================= | |
ItemStack itemAC130 = new ItemStack(Material.RABBIT_HIDE); | |
ItemMeta metaAC130 = itemAC130.getItemMeta(); | |
ArrayList<String> loreAC130 = new ArrayList<>(); | |
Gadgets.putIfAbsent("AC130", itemAC130); | |
//======================================================= | |
//Anti-Air Missile (Military Zombie Head) | |
//======================================================= | |
ItemStack itemAntiAir = new ItemStack(Material.SKULL_ITEM, 1, (byte) SkullType.PLAYER.ordinal()); | |
setCustomOwner(itemAntiAir, "http://textures.minecraft.net/texture/f0fbdae2d79eb9b5294b2665fa5a7bc1f0b4212389965fb2b6271188341cf93"); | |
SkullMeta metaAntiAir = (SkullMeta) itemAntiAir.getItemMeta(); | |
ArrayList<String> loreAntiAir = new ArrayList<>(); | |
itemAntiAir.setItemMeta(metaAntiAir); | |
Gadgets.putIfAbsent("AntiAir", itemAntiAir); | |
//======================================================= | |
//Hot Air Balloon (Red Easter Egg Head) | |
//======================================================= | |
ItemStack itemBalloonRide = new ItemStack(Material.SKULL_ITEM, 1, (byte) SkullType.PLAYER.ordinal()); | |
setCustomOwner(itemBalloonRide, "http://textures.minecraft.net/texture/b3d69b23ae592c647eb8dceb9daace44139f748e734dc84962613c366a08b"); | |
SkullMeta metaBalloonRide = (SkullMeta) itemBalloonRide.getItemMeta(); | |
ArrayList<String> loreBalloonRide = new ArrayList<>(); | |
itemBalloonRide.setItemMeta(metaBalloonRide); | |
Gadgets.putIfAbsent("BalloonRide", itemBalloonRide); | |
//======================================================= | |
//Bar | |
//======================================================= | |
ItemStack itemBar = new ItemStack(Material.BREWING_STAND_ITEM); | |
ArrayList<String> loreBar = new ArrayList<>(); | |
Gadgets.putIfAbsent("Bar", itemBar); | |
//======================================================= | |
//Blood | |
//======================================================= | |
ItemStack itemBlood = new ItemStack(Material.NETHER_STALK); | |
ArrayList<String> loreBlood = new ArrayList<>(); | |
Gadgets.putIfAbsent("Blood", itemBlood); | |
//======================================================= | |
//Bubble Blower | |
//======================================================= | |
ItemStack itemBubbleBlow = new ItemStack(Material.GHAST_TEAR); | |
ArrayList<String> loreBubbleBlow = new ArrayList<>(); | |
Gadgets.putIfAbsent("BubbleBlow", itemBubbleBlow); | |
//======================================================= | |
//Cake Party | |
//======================================================= | |
ItemStack itemCakeParty = new ItemStack(Material.CAKE); | |
ArrayList<String> loreCakeParty = new ArrayList<>(); | |
Gadgets.putIfAbsent("CakeParty", itemCakeParty); | |
//======================================================= | |
//Catapult | |
//======================================================= | |
ItemStack itemCatapult = new ItemStack(Material.ARMOR_STAND); | |
ArrayList<String> loreCatapult = new ArrayList<>(); | |
Gadgets.putIfAbsent("Catapult", itemCatapult); | |
//======================================================= | |
//Codename Banana | |
//======================================================= | |
ItemStack itemCodeB = new ItemStack(Material.INK_SACK, 1, (byte) 11); | |
ArrayList<String> loreCodeB = new ArrayList<>(); | |
Gadgets.putIfAbsent("CodeB", itemCodeB); | |
//======================================================= | |
//Grappling Hook | |
//======================================================= | |
ItemStack itemGrapple = new ItemStack(Material.TRIPWIRE_HOOK); | |
ArrayList<String> loreGrapple = new ArrayList<>(); | |
Gadgets.putIfAbsent("Grapple", itemGrapple); | |
//======================================================= | |
//Gravestone | |
//======================================================= | |
ItemStack itemGrave = new ItemStack(Material.SIGN); | |
ArrayList<String> loreGrave = new ArrayList<>(); | |
Gadgets.putIfAbsent("Grave", itemGrave); | |
//======================================================= | |
//Hologram | |
//======================================================= | |
ItemStack itemHologram = new ItemStack(Material.ITEM_FRAME); | |
ArrayList<String> loreHologram = new ArrayList<>(); | |
Gadgets.putIfAbsent("Hologram", itemHologram); | |
//======================================================= | |
//Hoola-Hoop | |
//======================================================= | |
ItemStack itemHoola = new ItemStack(Material.BOWL); | |
ArrayList<String> loreHoola = new ArrayList<>(); | |
Gadgets.putIfAbsent("Hoola", itemHoola); | |
//======================================================= | |
//Horn | |
//======================================================= | |
ItemStack itemHorn = new ItemStack(Material.LEASH); | |
ArrayList<String> loreHorn = new ArrayList<>(); | |
Gadgets.putIfAbsent("Horn", itemHorn); | |
//======================================================= | |
//Jail | |
//======================================================= | |
ItemStack itemJail = new ItemStack(Material.IRON_FENCE); | |
ArrayList<String> loreJail = new ArrayList<>(); | |
Gadgets.putIfAbsent("Jail", itemJail); | |
//======================================================= | |
//Laser | |
//======================================================= | |
ItemStack itemLaser = new ItemStack(Material.BLAZE_ROD); | |
ArrayList<String> loreLaser = new ArrayList<>(); | |
Gadgets.putIfAbsent("Laser", itemLaser); | |
//======================================================= | |
//Matador | |
//======================================================= | |
ItemStack itemMatador = new ItemStack(Material.BANNER, 1 , (byte) 1); | |
ArrayList<String> loreMatador = new ArrayList<>(); | |
Gadgets.putIfAbsent("Matador", itemMatador); | |
//======================================================= | |
//Moon Boots | |
//======================================================= | |
ItemStack itemMoonBoots = new ItemStack(Material.IRON_BOOTS); | |
ArrayList<String> loreMoonBoots = new ArrayList<>(); | |
Gadgets.putIfAbsent("MoonBoots", itemMoonBoots); | |
//======================================================= | |
//Pegasus | |
//======================================================= | |
ItemStack itemPegasus = new ItemStack(Material.DIAMOND_BARDING); | |
ArrayList<String> lorePegasus = new ArrayList<>(); | |
Gadgets.putIfAbsent("Pegasus", itemPegasus); | |
//======================================================= | |
//Piñata | |
//======================================================= | |
ItemStack itemPinata = new ItemStack(Material.STICK); | |
ArrayList<String> lorePinata = new ArrayList<>(); | |
Gadgets.putIfAbsent("Pinata", itemPinata); | |
//======================================================= | |
//Pole Dancing Zombie | |
//======================================================= | |
ItemStack itemPDZ = new ItemStack(Material.FENCE); | |
ArrayList<String> lorePDZ = new ArrayList<>(); | |
Gadgets.putIfAbsent("PDZ", itemPDZ); | |
//======================================================= | |
//PokeBall (Pokeball Head) | |
//======================================================= | |
ItemStack itemPokeBall = new ItemStack(Material.SKULL_ITEM, 1, (byte) SkullType.PLAYER.ordinal()); | |
setCustomOwner(itemPokeBall, "http://textures.minecraft.net/texture/d43d4b7ac24a1d650ddf73bd140f49fc12d2736fc14a8dc25c0f3f29d85f8f"); | |
SkullMeta metaPokeBall = (SkullMeta) itemPokeBall.getItemMeta(); | |
ArrayList<String> lorePokeBall = new ArrayList<>(); | |
itemPokeBall.setItemMeta(metaPokeBall); | |
Gadgets.putIfAbsent("PokeBall", itemPokeBall); | |
//======================================================= | |
//Pool Party (Beach Ball Head) | |
//======================================================= | |
ItemStack itemPoolParty = new ItemStack(Material.SKULL_ITEM, 1, (byte) SkullType.PLAYER.ordinal()); | |
setCustomOwner(itemPoolParty, "http://textures.minecraft.net/texture/5a5ab05ea254c32e3c48f3fdcf9fd9d77d3cba04e6b5ec2e68b3cbdcfac3fd"); | |
SkullMeta metaPoolParty = (SkullMeta) itemPoolParty.getItemMeta(); | |
ArrayList<String> lorePoolParty = new ArrayList<>(); | |
itemPoolParty.setItemMeta(metaPoolParty); | |
Gadgets.putIfAbsent("PoolParty", itemPoolParty); | |
//======================================================= | |
//Pooper | |
//======================================================= | |
ItemStack itemPooper = new ItemStack(Material.INK_SACK, 1, (byte) 3); | |
ArrayList<String> lorePooper = new ArrayList<>(); | |
Gadgets.putIfAbsent("Pooper", itemPooper); | |
//======================================================= | |
//FireCrackers | |
//======================================================= | |
ItemStack itemPoppers = new ItemStack(Material.PUMPKIN_SEEDS); | |
ArrayList<String> lorePoppers = new ArrayList<>(); | |
Gadgets.putIfAbsent("Poppers", itemPoppers); | |
//======================================================= | |
//Portal Gun | |
//======================================================= | |
ItemStack itemPortalGun = new ItemStack(Material.DIODE); | |
ArrayList<String> lorePortalGun = new ArrayList<>(); | |
Gadgets.putIfAbsent("PortalGun", itemPortalGun); | |
} | |
//Initialize Second Page of Gadgets | |
public void initialize_Gadgets2(){ | |
//======================================================= | |
//Red Carpet | |
//======================================================= | |
ItemStack itemRedCarpet = new ItemStack(Material.CARPET, 1, (byte) 14); | |
ArrayList<String> loreRedCarpet = new ArrayList<>(); | |
Gadgets.putIfAbsent("RedCarpet", itemRedCarpet); | |
//======================================================= | |
//Rifle | |
//======================================================= | |
ItemStack itemRifle = new ItemStack(Material.FISHING_ROD); | |
ArrayList<String> loreRifle = new ArrayList<>(); | |
Gadgets.putIfAbsent("Rifle", itemRifle); | |
//======================================================= | |
//Silly String | |
//======================================================= | |
ItemStack itemSilly = new ItemStack(Material.STRING); | |
ArrayList<String> loreSilly = new ArrayList<>(); | |
Gadgets.putIfAbsent("Silly", itemSilly); | |
//======================================================= | |
//Sled | |
//======================================================= | |
ItemStack itemSled = new ItemStack(Material.POWERED_RAIL); | |
ArrayList<String> loreSled = new ArrayList<>(); | |
Gadgets.putIfAbsent("Sled", itemSled); | |
//======================================================= | |
//Slide | |
//======================================================= | |
ItemStack itemSlide = new ItemStack(Material.QUARTZ_STAIRS); | |
ArrayList<String> loreSlide = new ArrayList<>(); | |
Gadgets.putIfAbsent("Slide", itemSlide); | |
//======================================================= | |
//Sloth (Sloth Head) | |
//======================================================= | |
ItemStack itemSloth = new ItemStack(Material.SKULL_ITEM, 1, (byte) SkullType.PLAYER.ordinal()); | |
setCustomOwner(itemSloth, "http://textures.minecraft.net/texture/1b2fbdc2aed275c84f30d2e5d08fdfd8b4de38908a12e067f2165d23c6112c91"); | |
SkullMeta metaSloth = (SkullMeta) itemSloth.getItemMeta(); | |
ArrayList<String> loreSloth = new ArrayList<>(); | |
itemSloth.setItemMeta(metaSloth); | |
Gadgets.putIfAbsent("Sloth", itemSloth); | |
//======================================================= | |
//Soccer Ball (Soccer Ball Head) | |
//======================================================= | |
ItemStack itemSoccer = new ItemStack(Material.SKULL_ITEM, 1, (byte) SkullType.PLAYER.ordinal()); | |
setCustomOwner(itemSoccer, "http://textures.minecraft.net/texture/8e4a70b7bbcd7a8c322d522520491a27ea6b83d60ecf961d2b4efbbf9f605d"); | |
SkullMeta metaSoccer = (SkullMeta) itemSoccer.getItemMeta(); | |
ArrayList<String> loreSoccer = new ArrayList<>(); | |
itemSoccer.setItemMeta(metaSoccer); | |
Gadgets.putIfAbsent("Soccer", itemSoccer); | |
//======================================================= | |
//Shooting Stars | |
//======================================================= | |
ItemStack itemStargaze = new ItemStack(Material.NETHER_STAR); | |
ArrayList<String> loreStargaze = new ArrayList<>(); | |
Gadgets.putIfAbsent("Stargaze", itemStargaze); | |
//======================================================= | |
//Tesla Coil | |
//======================================================= | |
ItemStack itemTesla = new ItemStack(Material.PRISMARINE_CRYSTALS); | |
ArrayList<String> loreTesla = new ArrayList<>(); | |
Gadgets.putIfAbsent("Tesla", itemTesla); | |
//======================================================= | |
//Tornado | |
//======================================================= | |
ItemStack itemTornado = new ItemStack(Material.HOPPER); | |
ArrayList<String> loreTornado = new ArrayList<>(); | |
Gadgets.putIfAbsent("Tornado", itemTornado); | |
//======================================================= | |
//Tsunami | |
//======================================================= | |
ItemStack itemTsunami = new ItemStack(Material.WATER_BUCKET); | |
ArrayList<String> loreTsunami = new ArrayList<>(); | |
Gadgets.putIfAbsent("Tsunami", itemTsunami); | |
//======================================================= | |
//Unicorn | |
//======================================================= | |
ItemStack itemUnicorn = new ItemStack(Material.GOLD_BARDING); | |
ArrayList<String> loreUnicorn = new ArrayList<>(); | |
Gadgets.putIfAbsent("Unicorn", itemUnicorn); | |
//======================================================= | |
//Car | |
//======================================================= | |
ItemStack itemVehicle = new ItemStack(Material.MINECART); | |
ArrayList<String> loreVehicle = new ArrayList<>(); | |
Gadgets.putIfAbsent("Vehicle", itemVehicle); | |
//======================================================= | |
//Video Player (Player Addelburgh head) | |
//======================================================= | |
ItemStack itemVideo = new ItemStack(Material.SKULL_ITEM, 1, (byte) SkullType.PLAYER.ordinal()); | |
setCustomOwner(itemVideo, "http://textures.minecraft.net/texture/8ae52ae8c98ac19fd07637a469ffa256ab0b3b10ece6243186188ba38df154"); | |
SkullMeta metaVideo = (SkullMeta) itemVideo.getItemMeta(); | |
ArrayList<String> loreVideo = new ArrayList<>(); | |
itemVideo.setItemMeta(metaVideo); | |
Gadgets.putIfAbsent("Video", itemVideo); | |
//======================================================= | |
//Water Slide | |
//======================================================= | |
ItemStack itemWaterSlide = new ItemStack(Material.STATIONARY_WATER); | |
ArrayList<String> loreWaterSlide = new ArrayList<>(); | |
Gadgets.putIfAbsent("WaterSlide", itemWaterSlide); | |
//======================================================= | |
//Wither Blaster (Wither Boss Head) | |
//======================================================= | |
ItemStack itemWitherShot = new ItemStack(Material.SKULL_ITEM, 1, (byte) SkullType.PLAYER.ordinal()); | |
setCustomOwner(itemWitherShot, "http://textures.minecraft.net/texture/cdf74e323ed41436965f5c57ddf2815d5332fe999e68fbb9d6cf5c8bd4139f"); | |
SkullMeta metaWitherShot = (SkullMeta) itemWitherShot.getItemMeta(); | |
ArrayList<String> loreWitherShot = new ArrayList<>(); | |
itemWitherShot.setItemMeta(metaWitherShot); | |
Gadgets.putIfAbsent("WitherShot", itemWitherShot); | |
//======================================================= | |
//Worship (Pancakes with Syrup Head) | |
//======================================================= | |
ItemStack itemWorship = new ItemStack(Material.SKULL_ITEM, 1, (byte) SkullType.PLAYER.ordinal()); | |
setCustomOwner(itemWorship, "http://textures.minecraft.net/texture/bbaa7f8e437112b3b6569471596d5b61daa7a3b408391d1ed432f5317796a2"); | |
SkullMeta metaWorship = (SkullMeta) itemWorship.getItemMeta(); | |
ArrayList<String> loreWorship = new ArrayList<>(); | |
itemWorship.setItemMeta(metaWorship); | |
Gadgets.putIfAbsent("Worship", itemWorship); | |
//======================================================= | |
//Zoombie (Sonic head) | |
//======================================================= | |
ItemStack itemZoombie = new ItemStack(Material.SKULL_ITEM, 1, (byte) SkullType.PLAYER.ordinal()); | |
setCustomOwner(itemZoombie, "http://textures.minecraft.net/texture/c5f5c9ff94c0dd5cbb1e271a817e6e9c552e3928b159519dd226efabdd"); | |
SkullMeta metaZoombie = (SkullMeta) itemZoombie.getItemMeta(); | |
ArrayList<String> loreZoombie = new ArrayList<>(); | |
itemZoombie.setItemMeta(metaZoombie); | |
Gadgets.putIfAbsent("Zoombie", itemZoombie); | |
} | |
public void initialize_Hotbar(){ | |
ItemStack itemGadgets = new ItemStack(Material.PISTON_BASE); | |
ItemMeta metaGadgets = itemGadgets.getItemMeta(); | |
ArrayList<String> loreGadgets = new ArrayList<>(); | |
loreGadgets.clear(); | |
loreGadgets.add(null); | |
loreGadgets.add(ChatColor.GRAY + "Right-Click to Display List of Gadgets."); | |
metaGadgets.setLore(loreGadgets); | |
metaGadgets.setDisplayName(ChatColor.GREEN + "Gadgets List" + ChatColor.WHITE + " - (" + ChatColor.GOLD + "Right Click" + ChatColor.WHITE + ")"); | |
itemGadgets.setItemMeta(metaGadgets); | |
Hotbar.put("Gadgets", itemGadgets); | |
} | |
public void openGUI_Page1(Player p){ | |
Inv_Gadgets1.setItem(0, Gadgets.get("Airplane")); | |
Inv_Gadgets1.setItem(1, Gadgets.get("AC130")); | |
Inv_Gadgets1.setItem(2, Gadgets.get("AntiAir")); | |
Inv_Gadgets1.setItem(3, Gadgets.get("BalloonRide")); | |
Inv_Gadgets1.setItem(4, Gadgets.get("Bar")); | |
Inv_Gadgets1.setItem(5, Gadgets.get("Blood")); | |
Inv_Gadgets1.setItem(6, Gadgets.get("BubbleBlow")); | |
Inv_Gadgets1.setItem(7, Gadgets.get("CakeParty")); | |
Inv_Gadgets1.setItem(8, Gadgets.get("Catapult")); | |
Inv_Gadgets1.setItem(9, Gadgets.get("CodeB")); | |
Inv_Gadgets1.setItem(10, Gadgets.get("Grapple")); | |
Inv_Gadgets1.setItem(11, Gadgets.get("Grave")); | |
Inv_Gadgets1.setItem(12, Gadgets.get("Hologram")); | |
Inv_Gadgets1.setItem(13, Gadgets.get("Hoola")); | |
Inv_Gadgets1.setItem(14, Gadgets.get("Horn")); | |
Inv_Gadgets1.setItem(15, Gadgets.get("Jail")); | |
Inv_Gadgets1.setItem(16, Gadgets.get("Laser")); | |
Inv_Gadgets1.setItem(17, Gadgets.get("Matador")); | |
Inv_Gadgets1.setItem(18, Gadgets.get("MoonBoots")); | |
Inv_Gadgets1.setItem(19, Gadgets.get("Pegasus")); | |
Inv_Gadgets1.setItem(20, Gadgets.get("Pinata")); | |
Inv_Gadgets1.setItem(21, Gadgets.get("PDZ")); | |
Inv_Gadgets1.setItem(22, Gadgets.get("PokeBall")); | |
Inv_Gadgets1.setItem(23, Gadgets.get("PoolParty")); | |
Inv_Gadgets1.setItem(24, Gadgets.get("Pooper")); | |
Inv_Gadgets1.setItem(25, Gadgets.get("Poppers")); | |
Inv_Gadgets1.setItem(26, Gadgets.get("PortalGun")); | |
Inv_Gadgets1.setItem(31, Gadgets.get("Remove")); | |
Inv_Gadgets1.setItem(40, Gadgets.get("Collectibles")); | |
Inv_Gadgets1.setItem(41, Gadgets.get("Next")); | |
p.openInventory(Inv_Gadgets1); | |
} | |
public void openGUI_Page2(Player p){ | |
Inv_Gadgets2.setItem(0, Gadgets.get("RedCarpet")); | |
Inv_Gadgets2.setItem(1, Gadgets.get("Rifle")); | |
Inv_Gadgets2.setItem(2, Gadgets.get("Silly")); | |
Inv_Gadgets2.setItem(3, Gadgets.get("Sled")); | |
Inv_Gadgets2.setItem(4, Gadgets.get("Slide")); | |
Inv_Gadgets2.setItem(5, Gadgets.get("Sloth")); | |
Inv_Gadgets2.setItem(6, Gadgets.get("Soccer")); | |
Inv_Gadgets2.setItem(7, Gadgets.get("Stargaze")); | |
Inv_Gadgets2.setItem(8, Gadgets.get("Tesla")); | |
Inv_Gadgets2.setItem(9, Gadgets.get("Tornado")); | |
Inv_Gadgets2.setItem(10, Gadgets.get("Tsunami")); | |
Inv_Gadgets2.setItem(11, Gadgets.get("Unicorn")); | |
Inv_Gadgets2.setItem(12, Gadgets.get("Vehicle")); | |
Inv_Gadgets2.setItem(13, Gadgets.get("Video")); | |
Inv_Gadgets2.setItem(14, Gadgets.get("WaterSlide")); | |
Inv_Gadgets2.setItem(15, Gadgets.get("WitherShot")); | |
Inv_Gadgets2.setItem(16, Gadgets.get("Worship")); | |
Inv_Gadgets2.setItem(17, Gadgets.get("Zoombie")); | |
Inv_Gadgets2.setItem(31, Gadgets.get("Remove")); | |
Inv_Gadgets2.setItem(40, Gadgets.get("Collectibles")); | |
Inv_Gadgets2.setItem(39, Gadgets.get("Previous")); | |
p.openInventory(Inv_Gadgets2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment