Java Code Examples for org.bukkit.Material#ENDER_PEARL

The following examples show how to use org.bukkit.Material#ENDER_PEARL . 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: AntiMatterBomb.java    From NBTEditor with GNU General Public License v3.0 5 votes vote down vote up
public AntiMatterBomb() {
	super("anti-matter-bomb", ChatColor.GREEN + "Anti-Matter Bomb", Material.ENDER_PEARL);
	setLore("§c§k-----§r §c§lCaution! §r§c§k-----");
	setDefaultConfig("enabled", false);
	setDefaultConfig("fuse", 60);
	setDefaultConfig("cleanup", true);
}
 
Example 2
Source File: VisibilityTool.java    From PGM with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public Material getMaterial(MatchPlayer player) {
  return isVisible(player) ? Material.EYE_OF_ENDER : Material.ENDER_PEARL;
}
 
Example 3
Source File: SentinelItemHelper.java    From Sentinel with MIT License 4 votes vote down vote up
/**
 * Returns whether the NPC is using a pearl item.
 */
public boolean usesPearl(ItemStack it) {
    return it != null && it.getType() == Material.ENDER_PEARL;
}