diff --git a/api/src/main/java/team/unnamed/creative/model/Element.java b/api/src/main/java/team/unnamed/creative/model/Element.java index d6f21731..6520a841 100644 --- a/api/src/main/java/team/unnamed/creative/model/Element.java +++ b/api/src/main/java/team/unnamed/creative/model/Element.java @@ -135,6 +135,20 @@ interface Builder { @Contract("_ -> this") @NotNull Builder from(final @NotNull Vector3Float from); + /** + * Sets the starting point of the element cuboid. + * + * @param x The x coordinate + * @param y The y coordinate + * @param z The z coordinate + * @return This builder + * @since 1.5.0 + */ + @Contract("_, _, _ -> this") + default @NotNull Builder from(final float x, final float y, final float z) { + return from(new Vector3Float(x, y, z)); + } + /** * Sets the stop point of the element cuboid. * @@ -145,6 +159,19 @@ interface Builder { @Contract("_ -> this") @NotNull Builder to(final @NotNull Vector3Float to); + /** + * Sets the stop point of the element cuboid. + * + * @param x The x coordinate + * @param y The y coordinate + * @param z The z coordinate + * @return This builder + * @since 1.5.0 + */ + default @NotNull Builder to(final float x, final float y, final float z) { + return to(new Vector3Float(x, y, z)); + } + /** * Sets the element rotation. *