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 @Override
public boolean shouldOverwrite(){ public boolean shouldOverwrite(){
return false; return true;
} }
} }

View File

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

View File

@ -5,7 +5,8 @@
* Constructor * Constructor
* </p> * </p>
* @param parent The parent entity of this tree * @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; this.parent = parent;
} }

View File

@ -6,12 +6,10 @@
* </p> * </p>
* @param entity The entity to attach to * @param entity The entity to attach to
* @param tree The behavior tree to attach * @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){ public static REPLACE_2_ME attachTree(Entity parent, Object ... params){
REPLACE_2_ME rVal = new REPLACE_2_ME(parent); REPLACE_2_ME rVal = new REPLACE_2_ME(parent,params);
//put manual code here (setting params, etc)
//!!WARNING!! from here below should not be touched //!!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 //This was generated automatically to properly alert various systems that the btree exists and should be tracked
parent.putData(EntityDataStrings.REPLACE_1_ME, rVal); parent.putData(EntityDataStrings.REPLACE_1_ME, rVal);

View File

@ -6,12 +6,10 @@
* </p> * </p>
* @param entity The entity to attach to * @param entity The entity to attach to
* @param tree The behavior tree to attach * @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){ public static REPLACE_2_ME attachTree(Entity parent, Object ... params){
REPLACE_2_ME rVal = new REPLACE_2_ME(parent); REPLACE_2_ME rVal = new REPLACE_2_ME(parent,params);
//put manual code here (setting params, etc)
//!!WARNING!! from here below should not be touched //!!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 //This was generated automatically to properly alert various systems that the btree exists and should be tracked
ServerBehaviorTreeUtils.attachBTreeToEntity(parent, rVal); ServerBehaviorTreeUtils.attachBTreeToEntity(parent, rVal);