aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api
AgeCommit message (Collapse)Author
2024-12-10RegistryValue APIfeature/RegistryValueJake Potrebic
2024-12-08Readd shear methods from bukkit Shearable (#11715)Kobe ⑧
* Re-add shear methods from bukkit Shearable * Add back
2024-12-08Add command block material tags (#11720)Newwind
2024-12-08Switch Impl types to Holderable (#11662)Jake Potrebic
* Switch Impl types to Holderable * Fix compile issues * more improvements * compile fixes * remove unneeded unwrapAndConvertHolder call --------- Co-authored-by: Bjarne Koll <[email protected]>
2024-12-07Add ItemMeta customName methods (#11685)Nassim Jahnke
2024-12-05Fix broken joml metadata resulting in kotlin being included on ↵Jason Penilla
compile/runtime classpath (#11712)
2024-12-05Fixup PlayerPickItemEvent docs moreNassim Jahnke
2024-12-05Add new bundle animation (#11708)Lulu13022002
2024-12-05Finish PlayerPickItemEventNassim Jahnke
2024-12-04call EntityInsideBlockEvent for eyeblossomLulu13022002
2024-12-04properly override push/knockback methodsLulu13022002
This prevent the creaking from being pushed with knockback enchant when it can't move
2024-12-04fix asset idLulu13022002
2024-12-04fix componentsLulu13022002
2024-12-04Implement assetidOwen1212055
2024-12-04Implement new CustomModelDataOwen1212055
2024-12-03Fix api build script deprecationJason Penilla
2024-12-03Fix jd gson version, move back mc util diffNassim Jahnke
2024-12-03Tests succeed (by removing one)Nassim Jahnke
2024-12-03Compilation fixesNassim Jahnke
2024-12-03Apply remaining patches, fix APINassim Jahnke
2024-12-03Some fixes, start updating CustomModelData APINassim Jahnke
2024-12-03WorkNassim Jahnke
2024-12-03Start update, apply API patchesNassim Jahnke
2024-12-03Updated Upstream (Bukkit/CraftBukkit/Spigot) (#11702)1.21.3Bjarne Koll
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: ed0ec489 SPIGOT-7965: Unknown TransformReason for Hoglins 9db03457 SPIGOT-7964: Fix typo in Deprecation annotation d14119af PR-1082: Add "since" to Deprecation annotations e8a318d4 PR-1067: Add method to get Advancement requirements CraftBukkit Changes: 40dd796db SPIGOT-7971: NotSerializableException on serialize CraftUseCooldownComponent fa85c5e0a SPIGOT-7968: ProjectileHitEvent not trigerred when arrow hits entity b75b792ec SPIGOT-7970: World#getMaxHeight() returning incorrect value 2b9a094bb SPIGOT-7965: Unknown TransformReason for Hoglins fd3f5a380 SPIGOT-7966: Some trees do not generate with #generateTree f2822317c PR-1515: Add a Class reader and Class node argument provider 07abf6852 PR-1514: Add a test case for ClassTraverser a7577cb24 Fix Inventory#addItem not respecting max stack size 066a74e74 PR-1490: Add method to get Advancement requirements 4a1df30e4 PR-1512: Test Art class based on specific values instead of the implementation, to better catch implementation changes 53254c56f PR-1503: Simplify CAS loop to getAndSet e9447dc5e Make BlockDataMeta#setBlockData hide unspecified states dd08a7120 SPIGOT-7960: Fix inconsistency between natural item drop coordinates e9e8ed753 SPIGOT-7960: Improve natural item drop methods Spigot Changes: 60c9969b Rebuild patches
2024-11-29Deprecate ChatVisibility#UNKNOWN (#11683)Lulu13022002
2024-11-28deprecate adventure key() methods where applicableJake Potrebic
2024-11-26Expose particle status client option (#11573)Lulu13022002
2024-11-25Add Server#isGlobalTickThreadSpottedleaf
This method should be present in Paper, not just in Folia, given that the GlobalRegionScheduler is present. Additonally, add Server#isOwnedByCurrentRegion(World, int, int, int, int) for checking of a rectangle of chunks is owned by the current region.
2024-11-24Fix painting variant builder (#11660)Lulu13022002
2024-11-23Painting variant registry modification API (#11648)kokiriglade
2024-11-23Support tags for more SimpleRegistry (#11607)Jake Potrebic
2024-11-23Make TypedKey an actual Key (#11641)Nassim Jahnke
2024-11-23Fix jukebox component (#11642)Lulu13022002
2024-11-22Add API to allow/disallow tick sleeping (#11611)Abel
2024-11-22Add API to check if the server is sleeping (#11605)Abel
2024-11-21[ci skip] Fix typosNassim Jahnke
2024-11-19Fix incorrect invulnerability damage reduction (#11599)Bjarne Koll
Fixes incorrect spigot handling of the invulnerability damage reduction applied when an already invulnerable entity is damaged with a larger damage amount than the initial damage. Vanilla still damages entities even if invulnerable if the damage to be applied is larger than the previous damage taken. In that case, vanilla applies the difference between the previous damage taken and the proposed damage. Spigot's damage modifier API takes over the computation of damage reducing effects, however spigot invokes this handling with the initial damage before computing the difference to the previous damage amount. This leads to the reduction values to generally be larger than expected, as they are computed on the not-yet-reduced value. Spigot applies these reductions after calling the EntityDamageEvent and *then* subtracts the previous damage point, leading to the final damage amount being smaller than expected. This patch cannot simply call the EntityDamageEvent with the reduced damage, as that would lead to EntityDamageEvent#getDamage() returning the already reduced damage, which breaks its method contract. Instead, this patch makes use of the DamageModifier API, implementing the last-damage-reduction as a DamageModifier.
2024-11-19Add PlayerItemGroupCooldownEvent (#11625)Nassim Jahnke
2024-11-18Add missing NotNull annotation for getChunksAtAsync cb paramSpottedleaf
2024-11-18Rework async chunk api implementationSpottedleaf
Firstly, the old methods all routed to the CompletableFuture method. However, the CF method could not guarantee that if the caller was off-main that the future would be "completed" on-main. Since the callback methods used the CF one, this meant that the callback methods did not guarantee that the callbacks were to be called on the main thread. Now, all methods route to getChunkAtAsync(x, z, gen, urgent, cb) so that the methods with the callback are guaranteed to invoke the callback on the main thread. The CF behavior remains unchanged; it may still appear to complete on main if invoked off-main. Secondly, remove the scheduleOnMain invocation in the async chunk completion. This unnecessarily delays the callback by 1 tick. Thirdly, add getChunksAtAsync(minX, minZ, maxX, maxZ, ...) which will load chunks within an area. This method is provided as a helper as keeping all chunks loaded within an area can be complicated to implement for plugins (due to the lacking ticket API), and is already implemented internally anyways. Fourthly, remove the ticket addition that occured with getChunkAt and getChunkAtAsync. The ticket addition may delay the unloading of the chunk unnecessarily. It also fixes a very rare timing bug where the future/callback would be completed after the chunk unloads.
2024-11-18Item DataComponent API (#10845)Owen
Co-authored-by: Jake Potrebic <[email protected]> Co-authored-by: Lulu13022002 <[email protected]> Co-authored-by: Bjarne Koll <[email protected]>
2024-11-17Updated Upstream (Bukkit/CraftBukkit) (#11626)Bjarne Koll
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: 36b11391 Fix copy pasting in UseCooldownComponent CraftBukkit Changes: a71a7e1f5 SPIGOT-7957: Fix setTarget method for Breeze 5bc0a094b SPIGOT-7955: Failure teleporting players between worlds using Player#teleport() when player has attribute modifiers 2e09c7a36 SPIGOT-7953: Item cooldown must be greater than 0 8ef9079fa Increase outdated build delay
2024-11-11Optimize custom map rendering (#11000)Barnaby
2024-11-09Fix NPE with enchantable (#11557)Lulu13022002
2024-11-09[ci skip] Fix UseCooldownComponent jd (#11565)Noah
2024-11-09Configure mockito agent (#11560)Yannick Lamprecht
2024-11-09Updated Upstream (Bukkit/CraftBukkit)Nassim Jahnke
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: a6aba46f PR-1078: Improve Javadocs of Player#loadData() and Player#saveData() 1e2e6a18 SPIGOT-7946: API for server pause when empty seconds 54a36938 SPIGOT-7944, PR-1077: Allow nullable fields in DamageTypeTags CraftBukkit Changes: 2702c5c8e SPIGOT-7946: API for server pause when empty seconds 485f910fc SPIGOT-7947: addPassenger doesn't work if the vehicle is a player ecf3dff0e SPIGOT-7949: Registering a new scoreboard objective with an empty display name throws a NPE 9b048cc84 SPIGOT-7948: `Bukkit#dispatchCommand` uses the wrong `CommandListenerWrapper` for Players 7b44d4640 SPIGOT-7931: Fix sync in Anvil View when result item is taken
2024-11-04Updated Upstream (Bukkit/CraftBukkit/Spigot) (#11561)Jake Potrebic
Updated Upstream (Bukkit/CraftBukkit/Spigot) 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: b9df8e9f SPIGOT-7933: Improve custom Minecart max speed fc496179 Fix InstrumentTest 7c0ec598 PR-1075: Make Art an interface c389f5a4 PR-1074: Make Sound an interface CraftBukkit Changes: df1efc0bb SPIGOT-7945: `Bukkit#dispatchCommand` throws `UnsupportedOperationException` 285df6e85 SPIGOT-7933: Improve custom Minecart max speed a0f3d4e50 SPIGOT-7940: Recipe book errors after reload 9e0618ec2 SPIGOT-7937: Cannot spawn minecart during world generation with minecart_improvements enabled 1eb4d28da SPIGOT-7941: Fix resistance over 4 amplify causing issues in damage 52b99158a PR-1504: Make Art an interface e18ae35f1 PR-1502: Make Sound an interface Spigot Changes: e65d67a7 SPIGOT-7934: Item entities start "bouncing" under certain conditions
2024-10-31bunch more general fixesJake Potrebic
2024-10-31Updated Upstream (Bukkit/CraftBukkit) (#11543)Nassim Jahnke
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: 97c59261 PR-1073: Make Biome an interface a38581aa Fix further javadoc errors 8271c490 Fix javadoc error 8a9ecf29 PR-1072: Fix bad naming for Vault State methods 6dd58108 PR-1071: Make Fluid an interface and add missing entry ed2cdfc3 PR-1070: Make Attribute an interface and align names with the new minecraft ones 63472efb PR-1069: Add missing winter drop experimental annotation to pale boats CraftBukkit Changes: 7235ad7b0 PR-1501: Make Biome an interface 602904003 PR-1500: Rename implementation for Vault State methods 75f26f79f PR-1499: Make Fluid an interface and add missing entry 4cfd87adc PR-1498: Make Attribute an interface and align names with the new minecraft ones 6bb0db5cb SPIGOT-7928: ExactChoice acts as MaterialChoice 3eaf3a13c SPIGOT-7929: Error when setting EquippableComponent abbf57bac SPIGOT-7930: Fix spawning entities with SummonEntityEffect 92d6ab6cf PR-1497: Move boat field rename entries to below key renaming, so that keys are also renamed abfe292aa PR-1496: Use correct Fluid class on Tags type check c7aab7fa7 SPIGOT-7923: Fix Dispenser logic to avoid firing empty projectiles