public final class WildToolsAPI
extends java.lang.Object
Constructor and Description |
---|
WildToolsAPI() |
Modifier and Type | Method and Description |
---|---|
static CannonTool |
getCannonTool(org.bukkit.inventory.ItemStack itemStack)
Get a cannon-tool object by an item-stack
|
static Selection |
getCannonWandSelection(org.bukkit.entity.Player player)
Get a players cannon-wand selection
|
static CraftingTool |
getCraftingTool(org.bukkit.inventory.ItemStack itemStack)
Get a crafting-tool object by an item-stack
|
static CuboidTool |
getCuboidTool(org.bukkit.inventory.ItemStack itemStack)
Get a cuboid-tool object by an item-stack
|
static HarvesterTool |
getHarvesterTool(org.bukkit.inventory.ItemStack itemStack)
Get a harvester-tool object by an item-stack
|
static LightningTool |
getLightningTool(org.bukkit.inventory.ItemStack itemStack)
Get a lightning-tool object by an item-stack
|
static PillarTool |
getPillarTool(org.bukkit.inventory.ItemStack itemStack)
Get a pillar-tool object by an item-stack
|
static double |
getPrice(org.bukkit.entity.Player player,
org.bukkit.inventory.ItemStack itemStack)
Get a price for an item-stack
|
static SellTool |
getSellTool(org.bukkit.inventory.ItemStack itemStack)
Get a sell-tool object by an item-stack
|
static Tool |
getTool(org.bukkit.inventory.ItemStack itemStack)
Get a tool object by an item-stack
|
static Tool |
getTool(java.lang.String name)
Get a tool object by a name
|
static WildTools |
getWildTools()
Get the wildtools object
|
static boolean |
isOwningTool(org.bukkit.inventory.ItemStack itemStack,
org.bukkit.entity.Player player)
Checks if a player is owning the private tool.
|
public static Tool getTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- an item-stack to checkpublic static Tool getTool(java.lang.String name)
name
- an name to checkpublic static CannonTool getCannonTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- an item-stack to checkpublic static CraftingTool getCraftingTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- an item-stack to checkpublic static CuboidTool getCuboidTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- an item-stack to checkpublic static HarvesterTool getHarvesterTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- an item-stack to checkpublic static LightningTool getLightningTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- an item-stack to checkpublic static PillarTool getPillarTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- an item-stack to checkpublic static SellTool getSellTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- an item-stack to checkpublic static Selection getCannonWandSelection(org.bukkit.entity.Player player)
player
- a player to checkpublic static boolean isOwningTool(org.bukkit.inventory.ItemStack itemStack, org.bukkit.entity.Player player)
itemStack
- The item to checkplayer
- The player to checkpublic static WildTools getWildTools()
public static double getPrice(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack itemStack)
player
- a player to checkitemStack
- an item-stack to check