Package com.earth2me.essentials.signs
Class EssentialsSign
java.lang.Object
com.earth2me.essentials.signs.EssentialsSign
- Direct Known Subclasses:
SignAnvil
,SignBalance
,SignBuy
,SignCartography
,SignDisposal
,SignEnchant
,SignFree
,SignGameMode
,SignGrindstone
,SignHeal
,SignInfo
,SignKit
,SignLoom
,SignMail
,SignProtection
,SignRepair
,SignSell
,SignSmithing
,SignSpawnmob
,SignTime
,SignTrade
,SignWarp
,SignWeather
,SignWorkbench
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected static boolean
checkIfBlockBreaksSigns
(Block block) protected final BigDecimal
getBigDecimal
(String line, IEssentials ess) protected final BigDecimal
getBigDecimalPositive
(String line, IEssentials ess) protected final int
getInteger
(String line) protected final int
getIntegerPositive
(String line) protected final ItemStack
getItemMeta
(CommandSource source, ItemStack item, String meta, IEssentials ess) protected final ItemStack
getItemMeta
(ItemStack item, String meta, IEssentials ess) protected final ItemStack
getItemStack
(String itemName, int quantity, boolean allowId, IEssentials ess) protected final ItemStack
getItemStack
(String itemName, int quantity, IEssentials ess) protected final BigDecimal
getMoney
(String line, IEssentials ess) getName()
protected final Trade
getTrade
(EssentialsSign.ISign sign, int index, int decrement, boolean allowId, IEssentials ess) protected final Trade
getTrade
(EssentialsSign.ISign sign, int amountIndex, int itemIndex, User player, boolean allowId, IEssentials ess) protected final Trade
getTrade
(EssentialsSign.ISign sign, int amountIndex, int itemIndex, User player, IEssentials ess) protected final Trade
getTrade
(EssentialsSign.ISign sign, int index, int decrement, IEssentials ess) protected final Trade
getTrade
(EssentialsSign.ISign sign, int index, IEssentials ess) getUsername
(User user) boolean
isOwner
(IEssentials ess, User user, EssentialsSign.ISign signProvider, int nameIndex, String namePrefix) static boolean
Deprecated.static boolean
isValidSign
(IEssentials ess, EssentialsSign.ISign sign) protected boolean
onBlockBreak
(Block block, User player, String username, IEssentials ess) protected boolean
onBlockBreak
(Block block, IEssentials ess) protected final boolean
onBlockBreak
(Block block, Player player, IEssentials ess) protected boolean
onBlockBurn
(Block block, IEssentials ess) protected boolean
onBlockExplode
(Block block, IEssentials ess) protected boolean
onBlockIgnite
(Block block, IEssentials ess) protected boolean
onBlockInteract
(Block block, User player, String username, IEssentials ess) protected final boolean
onBlockInteract
(Block block, Player player, IEssentials ess) protected boolean
onBlockPlace
(Block block, User player, String username, IEssentials ess) protected final boolean
onBlockPlace
(Block block, Player player, IEssentials ess) protected boolean
onBlockPush
(Block block, IEssentials ess) protected boolean
onSignBreak
(EssentialsSign.ISign sign, User player, String username, IEssentials ess) protected final boolean
onSignBreak
(Block block, Player player, IEssentials ess) protected boolean
onSignCreate
(EssentialsSign.ISign sign, User player, String username, IEssentials ess) protected final boolean
onSignCreate
(SignChangeEvent event, IEssentials ess) protected boolean
onSignInteract
(EssentialsSign.ISign sign, User player, String username, IEssentials ess) protected final boolean
onSignInteract
(Block block, Player player, IEssentials ess) void
setOwner
(IEssentials ess, User user, EssentialsSign.ISign signProvider, int nameIndex, String namePrefix) void
setOwnerData
(IEssentials ess, User user, EssentialsSign.ISign signProvider) protected final void
validateInteger
(EssentialsSign.ISign sign, int index) protected final void
validateTrade
(EssentialsSign.ISign sign, int amountIndex, int itemIndex, User player, IEssentials ess) protected final void
validateTrade
(EssentialsSign.ISign sign, int index, IEssentials ess)
-
Field Details
-
MINTRANSACTION
-
signName
-
-
Constructor Details
-
EssentialsSign
-
-
Method Details
-
checkIfBlockBreaksSigns
-
isValidSign
Deprecated.useisValidSign(IEssentials, ISign)
if possible -
isValidSign
-
onSignCreate
-
getSuccessName
-
getSuccessName
-
getTemplateName
-
getName
-
getUsername
-
setOwner
public void setOwner(IEssentials ess, User user, EssentialsSign.ISign signProvider, int nameIndex, String namePrefix) -
setOwnerData
-
isOwner
public boolean isOwner(IEssentials ess, User user, EssentialsSign.ISign signProvider, int nameIndex, String namePrefix) -
onSignInteract
-
onSignBreak
protected final boolean onSignBreak(Block block, Player player, IEssentials ess) throws MaxMoneyException - Throws:
MaxMoneyException
-
onSignCreate
protected boolean onSignCreate(EssentialsSign.ISign sign, User player, String username, IEssentials ess) throws SignException, ChargeException - Throws:
SignException
ChargeException
-
onSignInteract
protected boolean onSignInteract(EssentialsSign.ISign sign, User player, String username, IEssentials ess) throws SignException, ChargeException, MaxMoneyException -
onSignBreak
protected boolean onSignBreak(EssentialsSign.ISign sign, User player, String username, IEssentials ess) throws SignException, MaxMoneyException - Throws:
SignException
MaxMoneyException
-
onBlockPlace
-
onBlockInteract
-
onBlockBreak
protected final boolean onBlockBreak(Block block, Player player, IEssentials ess) throws MaxMoneyException - Throws:
MaxMoneyException
-
onBlockBreak
-
onBlockExplode
-
onBlockBurn
-
onBlockIgnite
-
onBlockPush
-
onBlockPlace
protected boolean onBlockPlace(Block block, User player, String username, IEssentials ess) throws SignException, ChargeException - Throws:
SignException
ChargeException
-
onBlockInteract
protected boolean onBlockInteract(Block block, User player, String username, IEssentials ess) throws SignException, ChargeException - Throws:
SignException
ChargeException
-
onBlockBreak
protected boolean onBlockBreak(Block block, User player, String username, IEssentials ess) throws SignException, MaxMoneyException - Throws:
SignException
MaxMoneyException
-
getBlocks
-
areHeavyEventRequired
public boolean areHeavyEventRequired() -
validateTrade
protected final void validateTrade(EssentialsSign.ISign sign, int index, IEssentials ess) throws SignException - Throws:
SignException
-
validateTrade
protected final void validateTrade(EssentialsSign.ISign sign, int amountIndex, int itemIndex, User player, IEssentials ess) throws SignException - Throws:
SignException
-
getTrade
protected final Trade getTrade(EssentialsSign.ISign sign, int amountIndex, int itemIndex, User player, IEssentials ess) throws SignException - Throws:
SignException
-
getTrade
protected final Trade getTrade(EssentialsSign.ISign sign, int amountIndex, int itemIndex, User player, boolean allowId, IEssentials ess) throws SignException - Throws:
SignException
-
validateInteger
- Throws:
SignException
-
getIntegerPositive
- Throws:
SignException
-
getInteger
- Throws:
SignException
-
getItemStack
protected final ItemStack getItemStack(String itemName, int quantity, IEssentials ess) throws SignException - Throws:
SignException
-
getItemStack
protected final ItemStack getItemStack(String itemName, int quantity, boolean allowId, IEssentials ess) throws SignException - Throws:
SignException
-
getItemMeta
protected final ItemStack getItemMeta(ItemStack item, String meta, IEssentials ess) throws SignException - Throws:
SignException
-
getItemMeta
protected final ItemStack getItemMeta(CommandSource source, ItemStack item, String meta, IEssentials ess) throws SignException - Throws:
SignException
-
getMoney
- Throws:
SignException
-
getBigDecimalPositive
- Throws:
SignException
-
getBigDecimal
- Throws:
SignException
-
getTrade
protected final Trade getTrade(EssentialsSign.ISign sign, int index, IEssentials ess) throws SignException - Throws:
SignException
-
getTrade
protected final Trade getTrade(EssentialsSign.ISign sign, int index, int decrement, IEssentials ess) throws SignException - Throws:
SignException
-
getTrade
protected final Trade getTrade(EssentialsSign.ISign sign, int index, int decrement, boolean allowId, IEssentials ess) throws SignException - Throws:
SignException
-
isValidSign(IEssentials, ISign)
if possible