Mineuniverse
Plugins
Animal Selector

Animal Selector

PLUGIN
A simple animal selector API for developers.
by _ForgeUser7181231
Download Claim this project
2,965 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Developer Tools
Advertisement Remove ads with Premium →

Animal Selector

Animal Selector is an API for plugin developers to hook into and use in their entity related plugins. Animal Selector is perfect for plugins who require the user to select an animal for plugins to later manipulate.

Server Owners

You're probably here because a plugin you use has required you to download this plugin. You can get the latest version to the right of this page or on the files page.

Plugin Developers

Making a Bukkit plugin that requires players to select a animal? To prevent conflicts with other plugins when selecting entities, use Animal Selector! When a player wants to select an entity, all they need to do is sneak then right click the entity! We provide a super simple api that all plugins can hook into to get the entity information.

  1. First make sure you add
    depend: [AnimalSelector]
    
    to your plugin.yml
  2. Next download AnimalSelector and add it to your build path.
  3. After that, add the following code to call the plugin:
public static AnimalSelector getAnimalSelector() {
	//Get AnimalSelector plugin for later on use.
	AnimalSelector plugin = (AnimalSelector) Bukkit.getServer().getPluginManager().getPlugin("AnimalSelector");
	
	if (plugin == null || !(plugin instanceof AnimalSelector)) {
        Bukkit.getLogger().info("[WARNING] AnimalSelector isn't loaded yet.");
        return null;
    }
    return (AnimalSelector) plugin;
}
  1. Finally, you can get the selected entities by using
getAnimalSelector().getPlayerSelectedEntity(playerstring);

A more detailed documentation and a JavaDoc is in the process of getting written/created.

Plugins using Animal Selector

Animal Lock - nxtguy



HostHorde


Animal Selector v0.2
MC CB 1.6.2-R0.1, CB 1.5.2-R1.0
Beta 2013-08-31 Get
Animal Selector v0.1
MC CB 1.5.2-R1.0
Beta 2013-07-07 Get

More from _ForgeUser7181231

Advertisement Remove ads with Premium →

You Might Also Like