More fixes and enhancements for modsupport API

This commit is contained in:
Mike Primm 2022-02-08 21:10:58 -06:00
parent a2f8f9defa
commit 611832fa22
5 changed files with 23 additions and 4 deletions

View file

@ -38,10 +38,14 @@ public interface ModelBlockModel extends BlockModel {
* @param yrot - degrees of rotation of block around Y
* @param zrot - degrees of rotation of block around Z
* @param shade - shade setting for model
* @param rotorigin = rotation origin [x, y, z] (if null, [ 8,8,8 ] is assumed
* @return model block to add faces to
*/
public ModelBlock addModelBlock(double[] from, double[] to, double xrot, double yrot, double zrot, boolean shade);
public ModelBlock addModelBlock(double[] from, double[] to, double xrot, double yrot, double zrot, boolean shade, double[] rotorigin);
default public ModelBlock addModelBlock(double[] from, double[] to, double xrot, double yrot, double zrot, boolean shade) {
return addModelBlock(from, to, xrot, yrot, zrot, shade, null);
}
default public ModelBlock addModelBlock(double[] from, double[] to, double xrot, double yrot, double zrot) {
return addModelBlock(from, to, xrot, yrot, zrot, true);
return addModelBlock(from, to, xrot, yrot, zrot, true, null);
}
}