-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de2bbf3
commit d3b386c
Showing
7 changed files
with
246 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
...paper-patches/files/src/main/java/io/papermc/paper/datacomponent/item/ItemLore.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
--- a/src/main/java/io/papermc/paper/datacomponent/item/ItemLore.java | ||
+++ b/src/main/java/io/papermc/paper/datacomponent/item/ItemLore.java | ||
@@ -80,5 +_,112 @@ | ||
*/ | ||
@Contract(value = "_ -> this", mutates = "this") | ||
Builder addLines(List<? extends ComponentLike> lines); | ||
+ | ||
+ // Daydream start - Add more item lore methods | ||
+ | ||
+ // No Italic | ||
+ | ||
+ /** | ||
+ * 로어의 이탤릭체를 비활성화하고 설정합니다. | ||
+ * | ||
+ * @param lines 설정할 로어 리스트 | ||
+ * @return the builder for chaining | ||
+ * @see #lines() | ||
+ */ | ||
+ @Contract(value = "_ -> this", mutates = "this") | ||
+ Builder noItalicLines(List<? extends ComponentLike> lines); | ||
+ | ||
+ /** | ||
+ * 로어의 이탤릭체를 비활성화하고 설정합니다. | ||
+ * | ||
+ * @param lines 설정할 로어 리스트 | ||
+ * @return the builder for chaining | ||
+ * @see #lines() | ||
+ */ | ||
+ @Contract(value = "_ -> this", mutates = "this") | ||
+ Builder noItalicLines(ComponentLike... lines); | ||
+ | ||
+ /** | ||
+ * 로어의 이탤릭체를 비활성화하고 추가합니다. | ||
+ * | ||
+ * @param line 추가할 로어 | ||
+ * @return the builder for chaining | ||
+ * @see #lines() | ||
+ */ | ||
+ @Contract(value = "_ -> this", mutates = "this") | ||
+ Builder addNoItalicLine(ComponentLike line); | ||
+ | ||
+ /** | ||
+ * 로어의 이탤릭체를 비활성화하고 추가합니다. | ||
+ * | ||
+ * @param lines 추가할 로어 리스트 | ||
+ * @return the builder for chaining | ||
+ * @see #lines() | ||
+ */ | ||
+ @Contract(value = "_ -> this", mutates = "this") | ||
+ Builder addNoItalicLines(List<? extends ComponentLike> lines); | ||
+ | ||
+ /** | ||
+ * 로어의 이탤릭체를 비활성화하고 추가합니다. | ||
+ * | ||
+ * @param lines 추가할 로어 리스트 | ||
+ * @return the builder for chaining | ||
+ * @see #lines() | ||
+ */ | ||
+ @Contract(value = "_ -> this", mutates = "this") | ||
+ Builder addNoItalicLines(ComponentLike... lines); | ||
+ | ||
+ // Default | ||
+ | ||
+ /** | ||
+ * 로어를 설정하며 클라이언트의 로어 수정을 비활성화합니다. | ||
+ * | ||
+ * @param lines 설정할 로어 리스트 | ||
+ * @return the builder for chaining | ||
+ * @see #lines() | ||
+ */ | ||
+ @Contract(value = "_ -> this", mutates = "this") | ||
+ Builder defaultLines(List<? extends ComponentLike> lines); | ||
+ | ||
+ /** | ||
+ * 로어를 설정하며 클라이언트의 로어 수정을 비활성화합니다. | ||
+ * | ||
+ * @param lines 설정할 로어 리스트 | ||
+ * @return the builder for chaining | ||
+ * @see #lines() | ||
+ */ | ||
+ @Contract(value = "_ -> this", mutates = "this") | ||
+ Builder defaultLines(ComponentLike... lines); | ||
+ | ||
+ /** | ||
+ * 로어를 추가하며 클라이언트의 로어 수정을 비활성화합니다. | ||
+ * | ||
+ * @param line 추가할 로어 | ||
+ * @return the builder for chaining | ||
+ * @see #lines() | ||
+ */ | ||
+ @Contract(value = "_ -> this", mutates = "this") | ||
+ Builder addDefaultLine(ComponentLike line); | ||
+ | ||
+ /** | ||
+ * 로어를 추가하며 클라이언트의 로어 수정을 비활성화합니다. | ||
+ * | ||
+ * @param lines 추가할 로어 리스트 | ||
+ * @return the builder for chaining | ||
+ * @see #lines() | ||
+ */ | ||
+ @Contract(value = "_ -> this", mutates = "this") | ||
+ Builder addDefaultLines(List<? extends ComponentLike> lines); | ||
+ | ||
+ /** | ||
+ * 로어를 추가하며 클라이언트의 로어 수정을 비활성화합니다. | ||
+ * | ||
+ * @param lines 추가할 로어 리스트 | ||
+ * @return the builder for chaining | ||
+ * @see #lines() | ||
+ */ | ||
+ @Contract(value = "_ -> this", mutates = "this") | ||
+ Builder addDefaultLines(ComponentLike... lines); | ||
+ // Daydream end - Add more item lore methods | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
daydream-api/paper-patches/files/src/main/java/org/bukkit/World.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
...es/src/main/java/org/bukkit/inventory/meta/components/CustomModelDataComponent.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
--- 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 @@ | ||
* @param colors new list | ||
*/ | ||
void setColors(@NotNull List<Color> colors); | ||
+ | ||
+ // Daydream start - Add CustomModelData utility methods | ||
+ /** | ||
+ * Sets a list of the custom floats. | ||
+ * | ||
+ * @param floats new list | ||
+ * @return this | ||
+ */ | ||
+ default CustomModelDataComponent floats(@NotNull List<Float> floats) { | ||
+ this.setFloats(floats); | ||
+ return this; | ||
+ } | ||
+ | ||
+ /** | ||
+ * Sets a list of the custom floats. | ||
+ * | ||
+ * @param floats new list | ||
+ * @return this | ||
+ */ | ||
+ default CustomModelDataComponent floats(@NotNull Float @NotNull... floats) { | ||
+ this.setFloats(List.of(floats)); | ||
+ return this; | ||
+ } | ||
+ | ||
+ /** | ||
+ * Sets a list of the custom flags. | ||
+ * | ||
+ * @param flags new list | ||
+ * @return this | ||
+ */ | ||
+ default CustomModelDataComponent flags(@NotNull List<Boolean> flags) { | ||
+ this.setFlags(flags); | ||
+ return this; | ||
+ } | ||
+ | ||
+ /** | ||
+ * Sets a list of the custom flags. | ||
+ * | ||
+ * @param flags new list | ||
+ * @return this | ||
+ */ | ||
+ default CustomModelDataComponent flags(@NotNull Boolean @NotNull... flags) { | ||
+ this.setFlags(List.of(flags)); | ||
+ return this; | ||
+ } | ||
+ | ||
+ /** | ||
+ * Sets a list of the custom strings. | ||
+ * | ||
+ * @param strings new list | ||
+ * @return this | ||
+ */ | ||
+ default CustomModelDataComponent strings(@NotNull List<String> strings) { | ||
+ this.setStrings(strings); | ||
+ return this; | ||
+ } | ||
+ | ||
+ /** | ||
+ * Sets a list of the custom strings. | ||
+ * | ||
+ * @param strings new list | ||
+ * @return this | ||
+ */ | ||
+ default CustomModelDataComponent strings(@NotNull String @NotNull... strings) { | ||
+ this.setStrings(List.of(strings)); | ||
+ return this; | ||
+ } | ||
+ | ||
+ /** | ||
+ * Sets a list of the custom colors. | ||
+ * | ||
+ * @param colors new list | ||
+ * @return this | ||
+ */ | ||
+ default CustomModelDataComponent colors(@NotNull List<Color> colors) { | ||
+ this.setColors(colors); | ||
+ return this; | ||
+ } | ||
+ | ||
+ /** | ||
+ * Sets a list of the custom colors. | ||
+ * | ||
+ * @param colors new list | ||
+ * @return this | ||
+ */ | ||
+ default CustomModelDataComponent colors(@NotNull Color @NotNull... colors) { | ||
+ this.setColors(List.of(colors)); | ||
+ return this; | ||
+ } | ||
+ // Daydream end - Add CustomModelData utility methods | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters