Java Code Examples for org.bukkit.Material#STAINED_GLASS
The following examples show how to use
org.bukkit.Material#STAINED_GLASS .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NMSHandler.java From SkyWarsReloaded with GNU General Public License v3.0 | 5 votes |
@Override public ItemStack getColorItem(String mat, byte color) { if (mat.equalsIgnoreCase("wool")) { return new ItemStack(Material.WOOL, 1, (short) color); } else if (mat.equalsIgnoreCase("glass")) { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } else if (mat.equalsIgnoreCase("banner")) { return new ItemStack(Material.BANNER, 1, (short) color); } else { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } }
Example 2
Source File: NMSHandler.java From SkyWarsReloaded with GNU General Public License v3.0 | 5 votes |
@Override public ItemStack getColorItem(String mat, byte color) { if (mat.equalsIgnoreCase("wool")) { return new ItemStack(Material.WOOL, 1, (short) color); } else if (mat.equalsIgnoreCase("glass")) { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } else if (mat.equalsIgnoreCase("banner")) { return new ItemStack(Material.BANNER, 1, (short) color); } else { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } }
Example 3
Source File: NMSHandler.java From SkyWarsReloaded with GNU General Public License v3.0 | 5 votes |
@Override public ItemStack getColorItem(String mat, byte color) { if (mat.equalsIgnoreCase("wool")) { return new ItemStack(Material.WOOL, 1, (short) color); } else if (mat.equalsIgnoreCase("glass")) { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } else if (mat.equalsIgnoreCase("banner")) { return new ItemStack(Material.BANNER, 1, (short) color); } else { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } }
Example 4
Source File: NMSHandler.java From SkyWarsReloaded with GNU General Public License v3.0 | 5 votes |
@Override public ItemStack getColorItem(String mat, byte color) { if (mat.equalsIgnoreCase("wool")) { return new ItemStack(Material.WOOL, 1, (short) color); } else if (mat.equalsIgnoreCase("glass")) { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } else if (mat.equalsIgnoreCase("banner")) { return new ItemStack(Material.BANNER, 1, (short) color); } else { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } }
Example 5
Source File: NMSHandler.java From SkyWarsReloaded with GNU General Public License v3.0 | 5 votes |
@Override public ItemStack getColorItem(String mat, byte color) { if (mat.equalsIgnoreCase("wool")) { return new ItemStack(Material.WOOL, 1, (short) color); } else if (mat.equalsIgnoreCase("glass")) { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } else if (mat.equalsIgnoreCase("banner")) { return new ItemStack(Material.BANNER, 1, (short) color); } else { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } }
Example 6
Source File: NMSHandler.java From SkyWarsReloaded with GNU General Public License v3.0 | 5 votes |
@Override public ItemStack getColorItem(String mat, byte color) { if (mat.equalsIgnoreCase("wool")) { return new ItemStack(Material.WOOL, 1, (short) color); } else if (mat.equalsIgnoreCase("glass")) { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } else if (mat.equalsIgnoreCase("banner")) { return new ItemStack(Material.BANNER, 1, (short) color); } else { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } }
Example 7
Source File: NMSHandler.java From SkyWarsReloaded with GNU General Public License v3.0 | 5 votes |
@Override public ItemStack getColorItem(String mat, byte color) { if (mat.equalsIgnoreCase("wool")) { return new ItemStack(Material.WOOL, 1, (short) color); } else if (mat.equalsIgnoreCase("glass")) { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } else if (mat.equalsIgnoreCase("banner")) { return new ItemStack(Material.BANNER, 1, (short) color); } else { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } }
Example 8
Source File: NMSHandler.java From SkyWarsReloaded with GNU General Public License v3.0 | 5 votes |
@Override public ItemStack getColorItem(String mat, byte color) { if (mat.equalsIgnoreCase("wool")) { return new ItemStack(Material.WOOL, 1, (short) color); } else if (mat.equalsIgnoreCase("glass")) { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } else if (mat.equalsIgnoreCase("banner")) { return new ItemStack(Material.BANNER, 1, (short) color); } else { return new ItemStack(Material.STAINED_GLASS, 1, (short) color); } }