21 lines
838 B
Java
21 lines
838 B
Java
/**
|
|
* <p> (initially) Automatically generated </p>
|
|
* <p> More parameters can be safely added to this method</p>
|
|
* <p>
|
|
* Attaches this tree to the entity.
|
|
* </p>
|
|
* @param entity The entity to attach to
|
|
* @param tree The behavior tree to attach
|
|
*/
|
|
public static REPLACE_2_ME attachTree(Entity parent){
|
|
REPLACE_2_ME rVal = new REPLACE_2_ME(parent);
|
|
//put manual code here (setting params, etc)
|
|
|
|
|
|
//!!WARNING!! from here below should not be touched
|
|
//This was generated automatically to properly alert various systems that the btree exists and should be tracked
|
|
parent.putData(EntityDataStrings.REPLACE_1_ME, rVal);
|
|
Globals.clientSceneWrapper.getScene().registerBehaviorTree(rVal);
|
|
Globals.entityValueTrackingService.attachTreeToEntity(parent, BehaviorTreeIdEnums.BTREE_REPLACE_0_ME_ID);
|
|
return rVal;
|
|
} |