本文整理汇总了Java中org.bukkit.Material.QUARTZ属性的典型用法代码示例。如果您正苦于以下问题:Java Material.QUARTZ属性的具体用法?Java Material.QUARTZ怎么用?Java Material.QUARTZ使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.bukkit.Material
的用法示例。
在下文中一共展示了Material.QUARTZ属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
@Override
public void initialize() {
shard = new ItemStack(Material.QUARTZ);
ItemMeta im = shard.getItemMeta();
im.setDisplayName(ChatColor.YELLOW + "Shard");
ArrayList<String> lore = new ArrayList<String>();
lore.add(ChatColor.GRAY + "The official currency of Zentrela!");
lore.add("");
lore.add(ChatColor.GRAY + "Use " + ChatColor.YELLOW + "/shard " + ChatColor.GRAY + "to manage your Shards.");
im.setLore(lore);
shard.setItemMeta(im);
cube = new ItemStack(Material.QUARTZ_BLOCK);
im = cube.getItemMeta();
im.setDisplayName(ChatColor.YELLOW + "Shard Cube");
lore = new ArrayList<String>();
lore.add(ChatColor.GRAY + "A cube constructed from 64 Shards.");
lore.add("");
lore.add(ChatColor.GRAY + "Use " + ChatColor.YELLOW + "/shard " + ChatColor.GRAY + "to manage your Shards.");
im.setLore(lore);
cube.setItemMeta(im);
purified = new ItemStack(Material.SEA_LANTERN);
im = purified.getItemMeta();
im.setDisplayName(ChatColor.YELLOW + "Purified Shard Cube");
lore = new ArrayList<String>();
lore.add(ChatColor.GRAY + "A Purified Cube made from 64 Shard Cubes.");
lore.add("");
lore.add(ChatColor.GRAY + "Use " + ChatColor.YELLOW + "/shard " + ChatColor.GRAY + "to manage your Shards.");
im.setLore(lore);
purified.setItemMeta(im);
}
示例2: getMedicine01
/**
* l.add("��2���������Լ��õ����в���ҩ");
l.add("��eҲ������Ҫע�ⰴʱ��ҩ.");
* @return ҩ
*/
public static ItemStack getMedicine01(){
ItemStack sw=new ItemStack(Material.QUARTZ);
ItemMeta im = sw.getItemMeta();
im.setDisplayName("��a��lҩ");
List<String> l=new LinkedList<String>();
l.add("��2���������Լ��õ����в���ҩ");
l.add("��2�������������...");
l.add("��eҲ������Ҫע�ⰴʱ��ҩ.");
im.setLore(l);
sw.setItemMeta(im);
return sw;
}
示例3: addMetaIfNeeded
private ItemStack addMetaIfNeeded(ItemStack stack)
{
Material material = stack.getType();
if (material == Material.COAL || material == Material.IRON_INGOT || material == Material.GOLD_INGOT || material == Material.DIAMOND || material == Material.EMERALD || material == Material.QUARTZ)
return Meta.addMeta(stack);
else
return stack;
}