Package org.bukkit.event.block

Examples of org.bukkit.event.block.BlockCanBuildEvent


            }
        }

        // call canBuild event
        boolean canBuild = canPlaceAt(target, face);
        BlockCanBuildEvent canBuildEvent = new BlockCanBuildEvent(target, getId(), canBuild);
        if (!EventFactory.callEvent(canBuildEvent).isBuildable()) {
            //revert(player, target);
            return;
        }
View Full Code Here


   * @param isBuildable - Initial allow state
   * @return True if permitted, False if not
   */
  @SuppressWarnings("deprecation")
  public static boolean canBuildBlock(org.bukkit.block.Block block, Material type, boolean isBuildable) {
    return CommonUtil.callEvent(new BlockCanBuildEvent(block, type.getId(), true)).isBuildable();
  }
View Full Code Here

TOP

Related Classes of org.bukkit.event.block.BlockCanBuildEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.