public interface ToolsManager
Modifier and Type | Method and Description |
---|---|
BuilderTool |
getBuilderTool(org.bukkit.inventory.ItemStack itemStack)
Get a builder tool from an item.
|
CannonTool |
getCannonTool(org.bukkit.inventory.ItemStack itemStack)
Get a cannon tool from an item.
|
CraftingTool |
getCraftingTool(org.bukkit.inventory.ItemStack itemStack)
Get a crafting tool from an item.
|
CuboidTool |
getCuboidTool(org.bukkit.inventory.ItemStack itemStack)
Get a cuboid tool from an item.
|
DrainTool |
getDrainTool(org.bukkit.inventory.ItemStack itemStack)
Get a drain tool from an item.
|
HarvesterTool |
getHarvesterTool(org.bukkit.inventory.ItemStack itemStack)
Get a harvester tool from an item.
|
IceTool |
getIceTool(org.bukkit.inventory.ItemStack itemStack)
Get an ice tool from an item.
|
LightningTool |
getLightningTool(org.bukkit.inventory.ItemStack itemStack)
Get a lightning tool from an item.
|
PillarTool |
getPillarTool(org.bukkit.inventory.ItemStack itemStack)
Get a pillar tool from an item.
|
double |
getPrice(org.bukkit.entity.Player player,
org.bukkit.inventory.ItemStack itemStack)
Get a price of an item for a player.
|
Selection |
getSelection(org.bukkit.entity.Player player)
Get a selection of a player for the cannon wand.
|
SellTool |
getSellTool(org.bukkit.inventory.ItemStack itemStack)
Get a sell tool from an item.
|
SortTool |
getSortTool(org.bukkit.inventory.ItemStack itemStack)
Get a sort tool from an item.
|
Tool |
getTool(org.bukkit.inventory.ItemStack itemStack)
Get a tool from an item.
|
Tool |
getTool(java.lang.String name)
Get a tool by its name.
|
java.util.List<Tool> |
getTools()
Get all the tools available.
|
boolean |
isOwningTool(org.bukkit.inventory.ItemStack itemStack,
org.bukkit.entity.Player player)
Check whether or not a player is owning an item or not.
|
<T extends Tool> |
registerTool(org.bukkit.Material type,
java.lang.String name,
java.lang.Class<T> toolClass,
java.lang.Object arg)
Register a new tool.
|
BuilderTool getBuilderTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get a builder tool from.CannonTool getCannonTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get a cannon tool from.CraftingTool getCraftingTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get a crafting tool from.CuboidTool getCuboidTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get a cuboid tool from.DrainTool getDrainTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get a drain tool from.HarvesterTool getHarvesterTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get a harvester tool from.IceTool getIceTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get an ice tool from.LightningTool getLightningTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get a lightning tool from.PillarTool getPillarTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get a pillar tool from.SellTool getSellTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get a sell tool from.SortTool getSortTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get a sort tool from.Tool getTool(java.lang.String name)
name
- The name to check.Tool getTool(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to get a tool from.java.util.List<Tool> getTools()
Selection getSelection(org.bukkit.entity.Player player)
player
- The player to check.double getPrice(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack itemStack)
player
- The player to check.itemStack
- The item to check.<T extends Tool> T registerTool(org.bukkit.Material type, java.lang.String name, java.lang.Class<T> toolClass, java.lang.Object arg)
type
- The type of the tool.name
- The name of the tool.toolClass
- The tool class.arg
- Additional arguments for the item.boolean isOwningTool(org.bukkit.inventory.ItemStack itemStack, org.bukkit.entity.Player player)
itemStack
- The item to check.player
- The player to check.