constructor refactor
All checks were successful
studiorailgun/highlevel-netcode-gen/pipeline/head This commit looks good
All checks were successful
studiorailgun/highlevel-netcode-gen/pipeline/head This commit looks good
This commit is contained in:
parent
65b5cb6dc2
commit
24626f8f8b
@ -51,7 +51,7 @@ public class ClientAttach implements VirtualMethod {
|
||||
|
||||
@Override
|
||||
public boolean shouldOverwrite(){
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ public class ServerAttach implements VirtualMethod {
|
||||
|
||||
@Override
|
||||
public boolean shouldOverwrite(){
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user