public class ClickType extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClickType.EnumClickType |
Constructor and Description |
---|
ClickType(ClickType.EnumClickType enumClickType) |
ClickType(ClickType.EnumClickType enumClickType,
org.bukkit.inventory.ItemStack product,
double buyPrice,
double sellPrice,
Shop.ShopType shopType) |
Modifier and Type | Method and Description |
---|---|
double |
getBuyPrice() |
ClickType.EnumClickType |
getClickType() |
static ClickType |
getPlayerClickType(org.bukkit.OfflinePlayer player)
Gets the click type of a player
|
org.bukkit.inventory.ItemStack |
getProduct() |
double |
getSellPrice() |
Shop.ShopType |
getShopType() |
static void |
removePlayerClickType(org.bukkit.OfflinePlayer player)
Removes the click type from a player
|
static void |
setPlayerClickType(org.bukkit.OfflinePlayer player,
ClickType clickType)
Sets the click type of a player
|
public ClickType(ClickType.EnumClickType enumClickType)
public ClickType(ClickType.EnumClickType enumClickType, org.bukkit.inventory.ItemStack product, double buyPrice, double sellPrice, Shop.ShopType shopType)
public static ClickType getPlayerClickType(org.bukkit.OfflinePlayer player)
player
- Player whose click type should be gottenpublic static void removePlayerClickType(org.bukkit.OfflinePlayer player)
player
- Player to remove the click type frompublic static void setPlayerClickType(org.bukkit.OfflinePlayer player, ClickType clickType)
player
- Player whose click type should be setclickType
- Click type to setpublic ClickType.EnumClickType getClickType()
public org.bukkit.inventory.ItemStack getProduct()
getClickType()
returns ClickType.EnumClickType.CREATE
, this returns the item, the player has hold in his hands, else null.public double getBuyPrice()
getClickType()
returns ClickType.EnumClickType.CREATE
, this returns the buy price, the player has entered, else null.public double getSellPrice()
getClickType()
returns ClickType.EnumClickType.CREATE
, this returns the sell price, the player has entered, else null.public Shop.ShopType getShopType()
getClickType()
returns ClickType.EnumClickType.CREATE
, this returns the shop type, the player has entered, else null.Copyright © 2016. All rights reserved.