Package org.bukkit.event.entity

Examples of org.bukkit.event.entity.EntityTeleportEvent


        for (dEntity entity : entities) {
            // Call a Bukkit event for compatibility with "on entity teleports"
            // world event and other plugins
            if (entity.isSpawned() && entity.getEntityType() != EntityType.PLAYER)
                Bukkit.getPluginManager().callEvent(new EntityTeleportEvent(entity.getBukkitEntity(), entity.getLocation(), location));
            entity.spawnAt(location);
        }
    }
View Full Code Here

TOP

Related Classes of org.bukkit.event.entity.EntityTeleportEvent

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.