Examples of launchProjectile()


Examples of org.bukkit.entity.Player.launchProjectile()

            aliases = {"throwEgg", "egg"},
            schedulable = false)
    public boolean throwEgg(final String playerName) {
        final Player player = Bukkit.getPlayer(playerName);
        if (player != null) {
            player.launchProjectile(Egg.class);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of org.bukkit.entity.Player.launchProjectile()

            aliases = {"throwSnowball", "snowball"},
            schedulable = false)
    public boolean snowball(final String playerName) {
        final Player player = Bukkit.getPlayer(playerName);
        if (player != null) {
            player.launchProjectile(Snowball.class);
            return true;
        }
        return false;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.