Class EquipRandomAmountOfItemAction
java.lang.Object
games.stendhal.server.entity.npc.action.EquipRandomAmountOfItemAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=ITEMS_OWNED,
label="Item+")
public class EquipRandomAmountOfItemAction
extends Object
implements ChatAction
Chooses and equips the specified item from a list
-
Constructor Summary
ConstructorsConstructorDescriptionEquipRandomAmountOfItemAction(String item, int min, int max) Creates a new EquipRandomAmountOfItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versaEquipRandomAmountOfItemAction(String item, int min, int max, boolean bind) Creates a new EquipRandomItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versaEquipRandomAmountOfItemAction(String item, int min, int max, int increment) Creates a new EquipRandomItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versaEquipRandomAmountOfItemAction(String item, int min, int max, int increment, boolean bind) Creates a new EquipRandomItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versaEquipRandomAmountOfItemAction(String item, int min, int max, int increment, String text) Creates a new EquipRandomItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versaEquipRandomAmountOfItemAction(String item, int min, int max, int increment, String text, boolean bind) Creates a new EquipRandomItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versa -
Method Summary
-
Constructor Details
-
EquipRandomAmountOfItemAction
Creates a new EquipRandomAmountOfItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versa- Parameters:
item- stackable itemmin- minimum quantitymax- maximum quantity
-
EquipRandomAmountOfItemAction
Creates a new EquipRandomItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versa- Parameters:
item- Stackable item.min- Lower amount boundary.max- Upper amount boundary.bind- Whether or not item should be bound to player.
-
EquipRandomAmountOfItemAction
@Dev public EquipRandomAmountOfItemAction(String item, int min, int max, @Dev(defaultValue="1") int increment) Creates a new EquipRandomItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versa- Parameters:
item- stackable itemmin- lower boundmax- upper boundincrement- ie, only return numbers multiples of X
-
EquipRandomAmountOfItemAction
@Dev public EquipRandomAmountOfItemAction(String item, int min, int max, @Dev(defaultValue="1") int increment, boolean bind) Creates a new EquipRandomItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versa- Parameters:
item- Stackable item.min- Lower amount boundary.max- Upper amount boundary.increment- ie, only return numbers multiples of X.bind- Whether or not item should be bound to player.
-
EquipRandomAmountOfItemAction
@Dev public EquipRandomAmountOfItemAction(String item, int min, int max, @Dev(defaultValue="1") int increment, String text) Creates a new EquipRandomItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versa- Parameters:
item- stackable itemmin- lower boundmax- upper boundincrement- ie, only return numbers multiples of Xtext- text to say
-
EquipRandomAmountOfItemAction
@Dev public EquipRandomAmountOfItemAction(String item, int min, int max, @Dev(defaultValue="1") int increment, String text, boolean bind) Creates a new EquipRandomItemAction.
Since stackable, min and max must be > 0.
If min > max, min is treated like max and vice versa- Parameters:
item- Stackable item.min- Lower amount boundary.max- Upper amount boundary.increment- ie, only return numbers multiples of X.text- Text to say.bind- Whether or not item should be bound to player.
-
-
Method Details
-
fire
Description copied from interface:PostTransitionActiondoes some action after a transition.- Specified by:
firein interfaceChatAction- Specified by:
firein interfacePostTransitionAction- Parameters:
player- player who caused the transitionsentence- text he/she saidnpc- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-