Deprecate ElementBuilder#rotation(BlockPartRotation) and add zero-parameter overload (fixes #6321) (#6338)

This commit is contained in:
Choonster TheMage authored and LexManos committed 2020-01-07 12:02:08 -08:00
1 parent dbec9b3d5a
commit 4ff65feb63
1 file changed
+8
@@ -370,7 +370,15 @@ public class ModelBuilder<T extends ModelBuilder<T>> extends ModelFile {
return faces.computeIfAbsent(dir, FaceBuilder::new);
}
/**
* @deprecated Use {@link #rotation()}
*/
@Deprecated
public RotationBuilder rotation(BlockPartRotation rotation) {
return rotation();
}
public RotationBuilder rotation() {
if (this.rotation == null) {
this.rotation = new RotationBuilder();
}