Skip to content

Commit

Permalink
Add more methods for setting updatePlatforms
Browse files Browse the repository at this point in the history
  • Loading branch information
srnyx committed Jul 27, 2023
1 parent fcc0865 commit 2c446b3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions api/src/main/java/xyz/srnyx/annoyingapi/options/PluginOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,28 @@ public PluginOptions updatePlatforms(@NotNull PluginPlatform.Multi updatePlatfor
this.updatePlatforms = updatePlatforms;
return this;
}

/**
* Sets {@link #updatePlatforms}
*
* @param updatePlatforms the new {@link #updatePlatforms}
*
* @return the {@link PluginOptions} instance for chaining
*/
@NotNull
public PluginOptions updatePlatforms(@NotNull Collection<PluginPlatform> updatePlatforms) {
return updatePlatforms(new PluginPlatform.Multi(updatePlatforms));
}

/**
* Sets {@link #updatePlatforms}
*
* @param updatePlatforms the new {@link #updatePlatforms}
*
* @return the {@link PluginOptions} instance for chaining
*/
@NotNull
public PluginOptions updatePlatforms(@NotNull PluginPlatform... updatePlatforms) {
return updatePlatforms(new PluginPlatform.Multi(updatePlatforms));
}
}

0 comments on commit 2c446b3

Please sign in to comment.