Package com.sk89q.worldedit.event.platform

Examples of com.sk89q.worldedit.event.platform.BlockInteractEvent


     * @param player the player
     * @param clicked the clicked block
     * @return false if you want the action to go through
     */
    public boolean handleBlockRightClick(Player player, WorldVector clicked) {
        BlockInteractEvent event = new BlockInteractEvent(player, clicked.toLocation(), OPEN);
        getEventBus().post(event);
        return event.isCancelled();
    }
View Full Code Here


     * @param player the player
     * @param clicked the clicked block
     * @return false if you want the action to go through
     */
    public boolean handleBlockLeftClick(Player player, WorldVector clicked) {
        BlockInteractEvent event = new BlockInteractEvent(player, clicked.toLocation(), HIT);
        getEventBus().post(event);
        return event.isCancelled();
    }
View Full Code Here

TOP

Related Classes of com.sk89q.worldedit.event.platform.BlockInteractEvent

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.