Add support for shade=false models, switch light/fire blocks over to use

it
This commit is contained in:
Mike Primm 2022-02-05 18:24:38 -06:00
parent cf5f4a0d9e
commit 79f27e9565
12 changed files with 125 additions and 83 deletions

View file

@ -35,7 +35,11 @@ public interface ModelBlockModel extends BlockModel {
* @param xrot - degrees of rotation of block around X
* @param yrot - degrees of rotation of block around Y
* @param zrot - degrees of rotation of block around Z
* @param shade - shade setting for model
* @return model block to add faces to
*/
public ModelBlock addModelBlock(double[] from, double[] to, double xrot, double yrot, double zrot);
public ModelBlock addModelBlock(double[] from, double[] to, double xrot, double yrot, double zrot, boolean shade);
default public ModelBlock addModelBlock(double[] from, double[] to, double xrot, double yrot, double zrot) {
return addModelBlock(from, to, xrot, yrot, zrot, true);
}
}