Class Branch
- java.lang.Object
 - 
- org.dreambot.api.script.frameworks.treebranch.Leaf
 - 
- org.dreambot.api.script.frameworks.treebranch.Branch
 
 
 
- 
- 
Constructor Summary
Constructors Constructor Description Branch() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchaddLeaves(Leaf... leaves)Add leaves to this branchvoidclear()Clears the leaves of this branchjava.util.List<Leaf>getChildren()intonLoop()Runs the first valid leaf that is found Sets the currently executing branch and leaf information withTreeScript.setCurrentBranchName(String)andTreeScript.setCurrentLeafName(String) 
 - 
 
- 
- 
Method Detail
- 
addLeaves
public final Branch addLeaves(Leaf... leaves)
Add leaves to this branch- Parameters:
 leaves-Leafs to add- Returns:
 - self
 
 
- 
clear
public final void clear()
Clears the leaves of this branch 
- 
onLoop
public int onLoop()
Runs the first valid leaf that is found Sets the currently executing branch and leaf information withTreeScript.setCurrentBranchName(String)andTreeScript.setCurrentLeafName(String)- Specified by:
 onLoopin classLeaf- Returns:
 - see 
Leaf.onLoop()If no valid Leaves found returnsCalculations.nextGaussianRandom(double, double)with a mean of 350 and a sigma of 250 
 
- 
getChildren
public java.util.List<Leaf> getChildren()
 
 - 
 
 -