Package com.vk2gpz.autosell
Interface IAutoSell
public interface IAutoSell
This interface provides methods to interact with the AutoSell plugin.
It allows checking if a player is in sell mode, smelt mode, or auto block mode,
and provides access to the options, sell handler, and area hook.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection
<Shop> Gets all the shops.Gets the area hook.static AutoSellOptions
Gets AutoSell options.static Shop
getCurrentShop
(org.bukkit.entity.Player player) Gets the player's current shop.static IAutoSell
Gets the instance of the AutoSell plugin.static Multiplier
getMultiplier
(org.bukkit.entity.Player player) Gets the player's current multiplier.Gets the AutoSell options.Gets the sell handler.static boolean
hasMultiplier
(org.bukkit.entity.Player player) Checks if the player has a multiplier.static boolean
hasShop
(org.bukkit.entity.Player player) Checks if the player has a shop to sell items.boolean
inAutoBlockMode
(org.bukkit.entity.Player player) Checks if the player is in auto block mode.boolean
inSellMode
(org.bukkit.entity.Player player) Checks if the player is in sell mode.boolean
inSmeltMode
(org.bukkit.entity.Player player) Checks if the player is in smelt mode.static boolean
isInAutoSellMode
(org.bukkit.entity.Player player) Checks if the player is in auto sell mode.static boolean
isInAutoSmeltMode
(org.bukkit.entity.Player player) Checks if the player is in auto smelt mode.setAreaHook
(IAreaHook area) Sets the area hook.
-
Method Details
-
inSellMode
boolean inSellMode(org.bukkit.entity.Player player) Checks if the player is in sell mode.- Parameters:
player
- The player to check.- Returns:
- true if the player is in sell mode, false otherwise.
-
inSmeltMode
boolean inSmeltMode(org.bukkit.entity.Player player) Checks if the player is in smelt mode.- Parameters:
player
- The player to check.- Returns:
- true if the player is in smelt mode, false otherwise.
-
inAutoBlockMode
boolean inAutoBlockMode(org.bukkit.entity.Player player) Checks if the player is in auto block mode.- Parameters:
player
- The player to check.- Returns:
- true if the player is in auto block mode, false otherwise.
-
getOptions
AutoSellOptions getOptions()Gets the AutoSell options.- Returns:
- Gets the AutoSell options.
-
getSellHandler
ISellHandler getSellHandler()Gets the sell handler.- Returns:
- The sell handler.
-
getAreaHook
IAreaHook getAreaHook()Gets the area hook.- Returns:
- The area hook.
-
setAreaHook
Sets the area hook.- Parameters:
area
- The area hook to set.- Returns:
- The newly set area hook.
-
getInstance
Gets the instance of the AutoSell plugin.- Returns:
- Gets the instance of the AutoSell plugin.
-
isInAutoSellMode
static boolean isInAutoSellMode(org.bukkit.entity.Player player) Checks if the player is in auto sell mode.- Parameters:
player
- The player to check.- Returns:
- true if the player is in auto sell mode, false otherwise.
-
getAllShops
Gets all the shops.- Returns:
- Gets all the shops.
-
isInAutoSmeltMode
static boolean isInAutoSmeltMode(org.bukkit.entity.Player player) Checks if the player is in auto smelt mode.- Parameters:
player
- The player to check.- Returns:
- true if the player is in auto smelt mode, false otherwise.
-
hasShop
static boolean hasShop(org.bukkit.entity.Player player) Checks if the player has a shop to sell items.- Parameters:
player
- The player to check.- Returns:
- true if the player has a shop, false otherwise.
-
getCurrentShop
Gets the player's current shop.- Parameters:
player
- The player to check.- Returns:
- the player's current shop.
-
hasMultiplier
static boolean hasMultiplier(org.bukkit.entity.Player player) Checks if the player has a multiplier.- Parameters:
player
- The player to check.- Returns:
- true if the player has a multiplier, false otherwise.
-
getMultiplier
Gets the player's current multiplier.- Parameters:
player
- The player to check.- Returns:
- the player's current multiplier.
-
getAutoSellOptions
Gets AutoSell options.- Returns:
- AutoSell options.
-