Package com.earth2me.essentials.signs
Class SignTrade
java.lang.Object
com.earth2me.essentials.signs.EssentialsSign
com.earth2me.essentials.signs.SignTrade
-
Nested Class Summary
Nested classes/interfaces inherited from class com.earth2me.essentials.signs.EssentialsSign
EssentialsSign.ISign
-
Field Summary
Fields inherited from class com.earth2me.essentials.signs.EssentialsSign
MINTRANSACTION, signName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
addAmount
(EssentialsSign.ISign sign, int index, Trade trade, IEssentials ess) protected final Trade
getTrade
(EssentialsSign.ISign sign, int index, SignTrade.AmountType amountType, boolean notEmpty, boolean allowId, IEssentials ess) protected final Trade
getTrade
(EssentialsSign.ISign sign, int index, SignTrade.AmountType amountType, boolean notEmpty, IEssentials ess) protected boolean
onSignBreak
(EssentialsSign.ISign sign, User player, String username, IEssentials ess) protected boolean
onSignCreate
(EssentialsSign.ISign sign, User player, String username, IEssentials ess) protected boolean
onSignInteract
(EssentialsSign.ISign sign, User player, String username, IEssentials ess) protected final void
subtractAmount
(EssentialsSign.ISign sign, int index, Trade trade, IEssentials ess) protected final void
validateTrade
(EssentialsSign.ISign sign, int index, boolean amountNeeded, IEssentials ess) Methods inherited from class com.earth2me.essentials.signs.EssentialsSign
areHeavyEventRequired, checkIfBlockBreaksSigns, getBigDecimal, getBigDecimalPositive, getBlocks, getInteger, getIntegerPositive, getItemMeta, getItemMeta, getItemStack, getItemStack, getMoney, getName, getSuccessName, getSuccessName, getTemplateName, getTrade, getTrade, getTrade, getTrade, getTrade, getUsername, isOwner, isValidSign, isValidSign, onBlockBreak, onBlockBreak, onBlockBreak, onBlockBurn, onBlockExplode, onBlockIgnite, onBlockInteract, onBlockInteract, onBlockPlace, onBlockPlace, onBlockPush, onSignBreak, onSignCreate, onSignInteract, setOwner, setOwnerData, validateInteger, validateTrade, validateTrade
-
Constructor Details
-
SignTrade
public SignTrade()
-
-
Method Details
-
onSignCreate
protected boolean onSignCreate(EssentialsSign.ISign sign, User player, String username, IEssentials ess) throws SignException, ChargeException - Overrides:
onSignCreate
in classEssentialsSign
- Throws:
SignException
ChargeException
-
onSignInteract
protected boolean onSignInteract(EssentialsSign.ISign sign, User player, String username, IEssentials ess) throws SignException, ChargeException, MaxMoneyException - Overrides:
onSignInteract
in classEssentialsSign
- Throws:
SignException
ChargeException
MaxMoneyException
-
onSignBreak
protected boolean onSignBreak(EssentialsSign.ISign sign, User player, String username, IEssentials ess) throws SignException, MaxMoneyException - Overrides:
onSignBreak
in classEssentialsSign
- Throws:
SignException
MaxMoneyException
-
validateTrade
protected final void validateTrade(EssentialsSign.ISign sign, int index, boolean amountNeeded, IEssentials ess) throws SignException - Throws:
SignException
-
getTrade
protected final Trade getTrade(EssentialsSign.ISign sign, int index, SignTrade.AmountType amountType, boolean notEmpty, IEssentials ess) throws SignException - Throws:
SignException
-
getTrade
protected final Trade getTrade(EssentialsSign.ISign sign, int index, SignTrade.AmountType amountType, boolean notEmpty, boolean allowId, IEssentials ess) throws SignException - Throws:
SignException
-
subtractAmount
protected final void subtractAmount(EssentialsSign.ISign sign, int index, Trade trade, IEssentials ess) throws SignException - Throws:
SignException
-
addAmount
protected final void addAmount(EssentialsSign.ISign sign, int index, Trade trade, IEssentials ess) throws SignException - Throws:
SignException
-