constructor refactor
All checks were successful
studiorailgun/highlevel-netcode-gen/pipeline/head This commit looks good

This commit is contained in:
austin 2024-07-31 16:50:12 -04:00
parent 65b5cb6dc2
commit 24626f8f8b
5 changed files with 10 additions and 13 deletions

View File

@ -51,7 +51,7 @@ public class ClientAttach implements VirtualMethod {
@Override
public boolean shouldOverwrite(){
return false;
return true;
}
}

View File

@ -52,7 +52,7 @@ public class ServerAttach implements VirtualMethod {
@Override
public boolean shouldOverwrite(){
return false;
return true;
}
}

View File

@ -5,7 +5,8 @@
* Constructor
* </p>
* @param parent The parent entity of this tree
* @param params Optional parameters that can be provided when attaching the tree. All custom data required for creating this tree should be passed in this varargs.
*/
public REPLACE_0_ME(Entity parent){
public REPLACE_0_ME(Entity parent, Object ... params){
this.parent = parent;
}

View File

@ -6,12 +6,10 @@
* </p>
* @param entity The entity to attach to
* @param tree The behavior tree to attach
* @param params Optional parameters that will be provided to the constructor
*/
public static REPLACE_2_ME attachTree(Entity parent){
REPLACE_2_ME rVal = new REPLACE_2_ME(parent);
//put manual code here (setting params, etc)
public static REPLACE_2_ME attachTree(Entity parent, Object ... params){
REPLACE_2_ME rVal = new REPLACE_2_ME(parent,params);
//!!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);

View File

@ -6,12 +6,10 @@
* </p>
* @param entity The entity to attach to
* @param tree The behavior tree to attach
* @param params Optional parameters that will be provided to the constructor
*/
public static REPLACE_2_ME attachTree(Entity parent){
REPLACE_2_ME rVal = new REPLACE_2_ME(parent);
//put manual code here (setting params, etc)
public static REPLACE_2_ME attachTree(Entity parent, Object ... params){
REPLACE_2_ME rVal = new REPLACE_2_ME(parent,params);
//!!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
ServerBehaviorTreeUtils.attachBTreeToEntity(parent, rVal);