forked from PaperMC/Paper
-
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.
Updated Upstream (Bukkit/CraftBukkit) (PaperMC#10379)
Updated Upstream (Bukkit/CraftBukkit) Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: f02baa3 PR-988: Add World#getIntersectingChunks(BoundingBox) 9321d66 Move getItemInUse up to LivingEntity 819eef7 PR-959: Add access to current item's remaining ticks c4fdadb SPIGOT-7601: Add AbstractArrow#getItem be8261c Add support for Java 22 2611967 PR-979: Add more translation keys 6675336 PR-985: Correct book maximum pages and characters per page documentation c8be92f PR-980: Improve getArmorContents() documentation f1120ee PR-983: Expose riptide velocity to PlayerRiptideEvent CraftBukkit Changes: dfaa89b PR-1369: Add World#getIntersectingChunks(BoundingBox) 51bbab2 Move getItemInUse up to LivingEntity 668e096 PR-1331: Add access to current item's remaining ticks a639406 SPIGOT-7601: Add AbstractArrow#getItem 0398930 SPIGOT-7602: Allow opening in-world horse and related inventories ffd1561 SPIGOT-7608: Allow empty lists to morph to any PDT list 2188dcf Add support for Java 22 45d6a60 SPIGOT-7604: Revert "SPIGOT-7365: DamageCause blocked by shield should trigger invulnerableTime" 06d9159 SPIGOT-7365: DamageCause blocked by shield should trigger invulnerableTime ca3bc37 PR-1361: Add more translation keys 366c3ca SPIGOT-7600: EntityChangeBlockEvent is not fired for frog eggs 06d0f9b SPIGOT-7593: Fix sapling growth physics / client-side updates 45c2608 PR-1366: Expose riptide velocity to PlayerRiptideEvent 29b6bb7 SPIGOT-7587: Remove fixes for now-resolved MC-142590 and MC-109346
- Loading branch information
1 parent
a203544
commit bd38e03
Showing
397 changed files
with
1,094 additions
and
919 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ Co-authored-by: Jake Potrebic <[email protected]> | |
Co-authored-by: Yannick Lamprecht <[email protected]> | ||
|
||
diff --git a/build.gradle.kts b/build.gradle.kts | ||
index b3df8cf8d32a4cc99a3a3950f146cdab65826e1b..9011451c6a60db08dcc255a84470f8ce92f7b2a4 100644 | ||
index f605e7e0f812a2297b1cecf3f37b69a8edc6b4a5..e3748b4b39529fde27e5bb00597a56becdf0843c 100644 | ||
--- a/build.gradle.kts | ||
+++ b/build.gradle.kts | ||
@@ -11,12 +11,28 @@ java { | ||
|
@@ -1493,7 +1493,7 @@ index ac5e263d737973af077e3406a84a84baca4370db..2d91924b7f5ef16a91d40cdc1bfc3d68 | |
+ // Paper end | ||
} | ||
diff --git a/src/main/java/org/bukkit/UnsafeValues.java b/src/main/java/org/bukkit/UnsafeValues.java | ||
index 6ca5f7a85087ca1c7e5e2d940bd3c65b84d2d356..0f902aec66ec550f80709f7f314ca90d374ebb53 100644 | ||
index ef3c0410ba4f88ec8b51e79abdc97777fdc00d31..913cf8308840ca1f365eb1f456f64b96046ed060 100644 | ||
--- a/src/main/java/org/bukkit/UnsafeValues.java | ||
+++ b/src/main/java/org/bukkit/UnsafeValues.java | ||
@@ -30,6 +30,15 @@ import org.jetbrains.annotations.Nullable; | ||
|
@@ -1525,7 +1525,7 @@ index efb97712cc9dc7c1e12a59f5b94e4f2ad7c6b7d8..3024468af4c073324e536c1cb26beffb | |
return warning == null || warning.value(); | ||
} | ||
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java | ||
index 0fd2e9ee1a8cf4456a1e5fe6579d767c5dcb4d9a..d76db156a7eeefaac3c96d2d547fddecefbd863e 100644 | ||
index 28193b8e3c79e14af2ce47857a717f9dd4f1fa42..b53f24c0368ff4e4f5287f1699643a0c00579031 100644 | ||
--- a/src/main/java/org/bukkit/World.java | ||
+++ b/src/main/java/org/bukkit/World.java | ||
@@ -47,7 +47,7 @@ import org.jetbrains.annotations.Nullable; | ||
|
@@ -1537,7 +1537,7 @@ index 0fd2e9ee1a8cf4456a1e5fe6579d767c5dcb4d9a..d76db156a7eeefaac3c96d2d547fddec | |
|
||
/** | ||
* Gets the {@link Block} at the given coordinates | ||
@@ -608,6 +608,14 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient | ||
@@ -617,6 +617,14 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient | ||
@NotNull | ||
public List<Player> getPlayers(); | ||
|
||
|
@@ -2180,10 +2180,10 @@ index b7d8dd30360a38dbdc7bbce40c8e6ced7261f833..0817f2395c2b18828565435568ce651f | |
public void sendRawMessage(@Nullable UUID sender, @NotNull String message); | ||
} | ||
diff --git a/src/main/java/org/bukkit/enchantments/Enchantment.java b/src/main/java/org/bukkit/enchantments/Enchantment.java | ||
index c349cd16de02981392a8788ddaa3152e901aacff..6a915b5b41daa5ea64913a2d5c611a6167168395 100644 | ||
index a456e43308b95f51beed2159e6baf00f32702a71..350d52f4dd97a7e6a6a9a967e1c6a8781feda22e 100644 | ||
--- a/src/main/java/org/bukkit/enchantments/Enchantment.java | ||
+++ b/src/main/java/org/bukkit/enchantments/Enchantment.java | ||
@@ -295,6 +295,19 @@ public abstract class Enchantment implements Keyed { | ||
@@ -296,6 +296,19 @@ public abstract class Enchantment implements Keyed, Translatable { | ||
* @return True if the enchantment may be applied, otherwise False | ||
*/ | ||
public abstract boolean canEnchantItem(@NotNull ItemStack item); | ||
|
@@ -4356,7 +4356,7 @@ index 88cdce67e6a55712cb56e946f2f09c82ddbc1d15..e76c847e57f3d32757129d56922862a4 | |
+ // Paper end | ||
} | ||
diff --git a/src/main/java/org/bukkit/inventory/meta/BookMeta.java b/src/main/java/org/bukkit/inventory/meta/BookMeta.java | ||
index 94852d50e88d0594b84b581cd627174043629995..be7c2cfc757e4dd15927be850739d401958fb227 100644 | ||
index fc94719f702f23da8de5340d7f9e9b9d0c9d7c66..86c9e4229a1936c5893016e5b8087aa9fd06ddab 100644 | ||
--- a/src/main/java/org/bukkit/inventory/meta/BookMeta.java | ||
+++ b/src/main/java/org/bukkit/inventory/meta/BookMeta.java | ||
@@ -10,7 +10,7 @@ import org.jetbrains.annotations.Nullable; | ||
|
@@ -4510,7 +4510,7 @@ index 94852d50e88d0594b84b581cd627174043629995..be7c2cfc757e4dd15927be850739d401 | |
|
||
/** | ||
@@ -157,7 +266,9 @@ public interface BookMeta extends ItemMeta { | ||
* pages. Maximum 100 pages with 256 characters per page. | ||
* pages. Maximum 100 pages with 1024 characters per page. | ||
* | ||
* @param pages A list of pages to set the book to use | ||
+ * @deprecated in favour of {@link #pages(List)} | ||
|
@@ -4520,7 +4520,7 @@ index 94852d50e88d0594b84b581cd627174043629995..be7c2cfc757e4dd15927be850739d401 | |
|
||
/** | ||
@@ -165,7 +276,9 @@ public interface BookMeta extends ItemMeta { | ||
* pages. Maximum 50 pages with 256 characters per page. | ||
* pages. Maximum 100 pages with 1024 characters per page. | ||
* | ||
* @param pages A list of strings, each being a page | ||
+ * @deprecated in favour of {@link #pages(net.kyori.adventure.text.Component...)} | ||
|
@@ -4530,7 +4530,7 @@ index 94852d50e88d0594b84b581cd627174043629995..be7c2cfc757e4dd15927be850739d401 | |
|
||
/** | ||
@@ -173,7 +286,9 @@ public interface BookMeta extends ItemMeta { | ||
* 256 characters per page. | ||
* 1024 characters per page. | ||
* | ||
* @param pages A list of strings, each being a page | ||
+ * @deprecated in favour of {@link #addPages(net.kyori.adventure.text.Component...)} | ||
|
@@ -4695,6 +4695,58 @@ index 9f159ac909ad5287b719cee331db5c44654ec547..f1fcc844d563a0108230676dec84ef25 | |
void setLore(@Nullable List<String> lore); | ||
|
||
/** | ||
diff --git a/src/main/java/org/bukkit/inventory/meta/trim/TrimMaterial.java b/src/main/java/org/bukkit/inventory/meta/trim/TrimMaterial.java | ||
index eb80f24da65918a21a2fa6691eeb64b621febaf4..941fac4eee338870d8c30cb1f64cab572cf54548 100644 | ||
--- a/src/main/java/org/bukkit/inventory/meta/trim/TrimMaterial.java | ||
+++ b/src/main/java/org/bukkit/inventory/meta/trim/TrimMaterial.java | ||
@@ -51,4 +51,21 @@ public interface TrimMaterial extends Keyed, Translatable { | ||
* {@link Material#AMETHYST_SHARD}. | ||
*/ | ||
public static final TrimMaterial AMETHYST = Registry.TRIM_MATERIAL.get(NamespacedKey.minecraft("amethyst")); | ||
+ | ||
+ // Paper start - adventure | ||
+ /** | ||
+ * Get the description of this {@link TrimMaterial}. | ||
+ * | ||
+ * @return the description | ||
+ */ | ||
+ [email protected] Component description(); | ||
+ | ||
+ /** | ||
+ * @deprecated this method assumes that {@link #description()} will | ||
+ * always be a translatable component which is not guaranteed. | ||
+ */ | ||
+ @Override | ||
+ @Deprecated(forRemoval = true) | ||
+ @org.jetbrains.annotations.NotNull String getTranslationKey(); | ||
+ // Paper end - adventure | ||
} | ||
diff --git a/src/main/java/org/bukkit/inventory/meta/trim/TrimPattern.java b/src/main/java/org/bukkit/inventory/meta/trim/TrimPattern.java | ||
index ccf02c79e2784de75273f5ad7f83ce5c33a688fe..3fa087d09c7c2d864eea25659951a537359c9589 100644 | ||
--- a/src/main/java/org/bukkit/inventory/meta/trim/TrimPattern.java | ||
+++ b/src/main/java/org/bukkit/inventory/meta/trim/TrimPattern.java | ||
@@ -75,4 +75,21 @@ public interface TrimPattern extends Keyed, Translatable { | ||
* {@link Material#HOST_ARMOR_TRIM_SMITHING_TEMPLATE}. | ||
*/ | ||
public static final TrimPattern HOST = Registry.TRIM_PATTERN.get(NamespacedKey.minecraft("host")); | ||
+ | ||
+ // Paper start - adventure | ||
+ /** | ||
+ * Get the description of this {@link TrimPattern}. | ||
+ * | ||
+ * @return the description | ||
+ */ | ||
+ [email protected] Component description(); | ||
+ | ||
+ /** | ||
+ * @deprecated this method assumes that {@link #description()} will | ||
+ * always be a translatable component which is not guaranteed. | ||
+ */ | ||
+ @Override | ||
+ @Deprecated(forRemoval = true) | ||
+ @org.jetbrains.annotations.NotNull String getTranslationKey(); | ||
+ // Paper end - adventure | ||
} | ||
diff --git a/src/main/java/org/bukkit/map/MapCursor.java b/src/main/java/org/bukkit/map/MapCursor.java | ||
index b90fd819a781d3a2117ffa25f0864b1576901f9f..7d4f4970dae6fe4eeea6b6b6810dcecfe20d6e51 100644 | ||
--- a/src/main/java/org/bukkit/map/MapCursor.java | ||
|
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
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
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
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
Oops, something went wrong.