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
Codec.INT
Is there a way I can update the Codec definition so I can use this new argument?