Skip to content

Commit

Permalink
Deploying to Daydream-API
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 26, 2025
1 parent d3b386c commit 40cb9fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
+ *
+ * @param consumer 컴포넌트 수정자
+ */
+ default void customModelData(final java.util.function.Consumer<CustomModelDataComponent> consumer) {
+ default void customModelData(final @NotNull java.util.function.Consumer<CustomModelDataComponent> consumer) {
+ final CustomModelDataComponent component = this.getCustomModelDataComponent();
+ consumer.accept(component);
+ this.setCustomModelDataComponent(component);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/src/main/java/org/bukkit/inventory/meta/components/CustomModelDataComponent.java
+++ b/src/main/java/org/bukkit/inventory/meta/components/CustomModelDataComponent.java
@@ -71,4 +_,94 @@
@@ -71,4 +_,102 @@
* @param colors new list
*/
void setColors(@NotNull List<Color> colors);
Expand All @@ -12,6 +12,7 @@
+ * @param floats new list
+ * @return this
+ */
+ @NotNull
+ default CustomModelDataComponent floats(@NotNull List<Float> floats) {
+ this.setFloats(floats);
+ return this;
Expand All @@ -23,6 +24,7 @@
+ * @param floats new list
+ * @return this
+ */
+ @NotNull
+ default CustomModelDataComponent floats(@NotNull Float @NotNull... floats) {
+ this.setFloats(List.of(floats));
+ return this;
Expand All @@ -34,6 +36,7 @@
+ * @param flags new list
+ * @return this
+ */
+ @NotNull
+ default CustomModelDataComponent flags(@NotNull List<Boolean> flags) {
+ this.setFlags(flags);
+ return this;
Expand All @@ -45,6 +48,7 @@
+ * @param flags new list
+ * @return this
+ */
+ @NotNull
+ default CustomModelDataComponent flags(@NotNull Boolean @NotNull... flags) {
+ this.setFlags(List.of(flags));
+ return this;
Expand All @@ -56,6 +60,7 @@
+ * @param strings new list
+ * @return this
+ */
+ @NotNull
+ default CustomModelDataComponent strings(@NotNull List<String> strings) {
+ this.setStrings(strings);
+ return this;
Expand All @@ -67,6 +72,7 @@
+ * @param strings new list
+ * @return this
+ */
+ @NotNull
+ default CustomModelDataComponent strings(@NotNull String @NotNull... strings) {
+ this.setStrings(List.of(strings));
+ return this;
Expand All @@ -78,6 +84,7 @@
+ * @param colors new list
+ * @return this
+ */
+ @NotNull
+ default CustomModelDataComponent colors(@NotNull List<Color> colors) {
+ this.setColors(colors);
+ return this;
Expand All @@ -89,6 +96,7 @@
+ * @param colors new list
+ * @return this
+ */
+ @NotNull
+ default CustomModelDataComponent colors(@NotNull Color @NotNull... colors) {
+ this.setColors(List.of(colors));
+ return this;
Expand Down

0 comments on commit 40cb9fe

Please sign in to comment.