Package com.sk89q.craftbook.mechanics.minecart.events

Examples of com.sk89q.craftbook.mechanics.minecart.events.CartBlockImpactEvent


                Location from = event.getFrom();
                Location to = event.getTo();
                if(LocationUtil.getDistanceSquared(from, to) > 2*2) //Further than max distance
                    return;
                boolean minor = from.getBlockX() == to.getBlockX() && from.getBlockY() == to.getBlockY() && from.getBlockZ() == to.getBlockZ();
                CartBlockImpactEvent ev = new CartBlockImpactEvent(cart, from, to, cmb, minor);
                CraftBookPlugin.inst().getServer().getPluginManager().callEvent(ev);
            } catch (InvalidMechanismException ignored) {
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.sk89q.craftbook.mechanics.minecart.events.CartBlockImpactEvent

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.