Package org.bukkit.entity

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


            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.