Java Code Examples for org.bukkit.Material#VINE

The following examples show how to use org.bukkit.Material#VINE . 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: ShearDurability.java    From AdditionsAPI with MIT License 6 votes vote down vote up
public ShearDurability() {
	super.setInstantBlockBreak(1);
	super.addSpecialBlock(Material.COBWEB, 1);
	super.addSpecialBlock(Material.ACACIA_LEAVES, 1);
	super.addSpecialBlock(Material.BIRCH_LEAVES, 1);
	super.addSpecialBlock(Material.JUNGLE_LEAVES, 1);
	super.addSpecialBlock(Material.OAK_LEAVES, 1);
	super.addSpecialBlock(Material.SPRUCE_LEAVES, 1);
	super.addSpecialBlock(Material.BLACK_WOOL, 1);
	super.addSpecialBlock(Material.BLUE_WOOL, 1);
	super.addSpecialBlock(Material.BROWN_WOOL, 1);
	super.addSpecialBlock(Material.CYAN_WOOL, 1);
	super.addSpecialBlock(Material.GRAY_WOOL, 1);
	super.addSpecialBlock(Material.GREEN_WOOL, 1);
	super.addSpecialBlock(Material.LIME_WOOL, 1);
	super.addSpecialBlock(Material.MAGENTA_WOOL, 1);
	super.addSpecialBlock(Material.ORANGE_WOOL, 1);
	super.addSpecialBlock(Material.PINK_WOOL, 1);
	super.addSpecialBlock(Material.PURPLE_WOOL, 1);
	super.addSpecialBlock(Material.RED_WOOL, 1);
	super.addSpecialBlock(Material.WHITE_WOOL, 1);
	super.addSpecialBlock(Material.YELLOW_WOOL, 1);
	super.addSpecialBlock(Material.LIGHT_BLUE_WOOL, 1);
	super.addSpecialBlock(Material.LIGHT_GRAY_WOOL, 1);
	super.addSpecialBlock(Material.VINE, 1);
}
 
Example 2
Source File: Materials.java    From PGM with GNU Affero General Public License v3.0 4 votes vote down vote up
static boolean isClimbable(Material material) {
  return material == Material.LADDER || material == Material.VINE;
}
 
Example 3
Source File: Vine.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
public Vine() {
    super(Material.VINE);
}
 
Example 4
Source File: Vine.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
/**
 * @param data the raw data value
 * @deprecated Magic value
 */
@Deprecated
public Vine(byte data) {
    super(Material.VINE, data);
}
 
Example 5
Source File: FlyOld.java    From Hawk with GNU General Public License v3.0 4 votes vote down vote up
private boolean isInClimbable(Location loc) {
    Block b = ServerUtils.getBlockAsync(loc);
    return b != null && (b.getType() == Material.VINE || b.getType() == Material.LADDER);
}
 
Example 6
Source File: Fly.java    From Hawk with GNU General Public License v3.0 4 votes vote down vote up
private boolean isInClimbable(Location loc) {
    Block b = ServerUtils.getBlockAsync(loc);
    return b != null && (b.getType() == Material.VINE || b.getType() == Material.LADDER);
}
 
Example 7
Source File: Materials.java    From ProjectAres with GNU Affero General Public License v3.0 4 votes vote down vote up
public static boolean isClimbable(Material material) {
    return material == Material.LADDER || material == Material.VINE;
}