Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to update Codec for extension of Abstract class?


Recommended Posts

I am creating a new class which extends FoliagePlacer. I would like to add a new argument to the constructor, but that is giving me problems with the Codec definition for the class.

public CustomFoliagePlacer(FeatureSpread fs1, FeatureSpread fs2, int height, CustomTree customTree) {
        super(fs1, fs2);
        this.height = height;
        this.customTree = customTree;

The new argument is a custom type so it's not possible to add it as you would like 


Is there a way I can update the Codec definition so I can use this new argument?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.