Commit graph

866 commits

Author SHA1 Message Date
Jake Potrebic
4b762a6259 more ItemFlag fixes 2024-04-27 14:32:14 -07:00
Lulu13022002
e0adb01ddc update generator 2024-04-27 22:30:15 +02:00
Jake Potrebic
a9b6792b11 fix javadocs for SpawnerEntry$Equipment API 2024-04-26 17:00:26 -07:00
Jake Potrebic
5a55c71491 deprecate our ItemRarity API 2024-04-26 16:43:59 -07:00
Jake Potrebic
d0db132328 fix custom potion mixes 2024-04-26 16:17:13 -07:00
Jake Potrebic
15221cd4ac remove no longer needed patches and fix tests 2024-04-26 14:29:16 -07:00
Jake Potrebic
0cd4c50623 fix some more issues 2024-04-26 11:39:20 -07:00
Jake Potrebic
c9e0e1f9f3 fix issue with item default attribute API 2024-04-25 23:10:38 -07:00
Jason Penilla
ce02863322 generator fix 2024-04-25 19:09:21 -07:00
Jake Potrebic
48c586ab9c fixup adventure's book meta handling 2024-04-25 17:46:17 -07:00
Nassim Jahnke
333b7145f0 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:
69fa4695 Add some missing deprecation annotations
f850da2e Update Maven plugins/versions
8d8400db Use regular compiler seeing as ECJ doesn't support Java 21 JRE
c29e1688 Revert "BUILDTOOLS-676: Downgrade Maven compiler version"
07bce714 SPIGOT-7355: More field renames and fixes
6a8ea764 Fix bad merge in penultimate commit
50a7920c Fix imports in previous commit
83640dd1 PR-995: Add required feature to MinecraftExperimental for easy lookups
fc1f96cf BUILDTOOLS-676: Downgrade Maven compiler version

CraftBukkit Changes:
90f1059ba Fix item placement
661afb43c SPIGOT-7633: Clearer error message for missing particle data
807b465b3 SPIGOT-7634: Armadillo updates infrequently
590cf09a8 Fix unit tests always seeing Mojang server as unavailable
7c7ac5eb2 SPIGOT-7636: Fix clearing ItemMeta
4a72905cf SPIGOT-7635: Fix Player#transfer and cookie methods
ebb50e136 Fix incorrect Vault implementation
b33fed8b7 Update Maven plugins/versions
6f00f0608 SPIGOT-7632: Control middle clicking chest does not copy contents
db821f405 Use regular compiler seeing as ECJ doesn't support Java 21 JRE
8a2976737 Revert "BUILDTOOLS-676: Downgrade Maven compiler version"
0297f87bb SPIGOT-7355: More field renames and fixes
2d03bdf6a SPIGOT-7629: Fix loading banner patterns
e77951fac Fix equality of deserialized display names
c66f3e4fd SPIGOT-7631: Fix deserialisation of BlockStateMeta
9c2c7be8d SPIGOT-7630: Fix crash saving unticked leashed entities
8c1e7c841 PR-1384: Disable certain PlayerProfile tests, if Mojang's services or internet are not available
ced93d572 SPIGOT-7626: sendSignChange() has no effect
c77362cae SPIGOT-7625: ItemStack with lore cannot be serialized in 1.20.5
ff2004387 SPIGOT-7620: Fix server crash when hoppers transfer items to double chests
8b4abeb03 BUILDTOOLS-676: Downgrade Maven compiler version
2024-04-25 23:21:18 +02:00
Nassim Jahnke
686f224893 More compile fixes 2024-04-25 22:47:32 +02:00
Jason Penilla
09a83f66ee compile fixes 2024-04-25 12:16:00 -07:00
Bjarne Koll
d6adc0b264 Some more compilation fixes 2024-04-25 19:42:24 +02:00
Bjarne Koll
b7e5de9401 Update Enchantment damage increase API
The Enchantment damage increase API added previously used the
EntityCategory enum as a parameter. These values are now however
determined by tags instead of the categories themselves.

Deprecated the outdated api method, create a new overload that takes
EntityType instead and implement deprecated method by guessing an entity
type from the builtin registry based on the category passed.
This method allows
a) the tags to still be modified and the legacy
   method still respecting such.
b) potential cursed implementations of enchantments of plugins to not
   break that override the getDamageBonus method on Enchantment.
2024-04-25 18:42:50 +02:00
Jake Potrebic
cbfb3d4f97 update smithing recipe copy data components API 2024-04-25 08:13:36 -07:00
Jason Penilla
960e8f1ad8 adventure 4.17.0-SNAPSHOT 2024-04-24 17:46:57 -07:00
Jake Potrebic
9a497c83b8 fix 2 of our javadoc errors 2024-04-23 16:30:24 -07:00
Jake Potrebic
8c0153f78d work on some API stuff 2024-04-23 16:26:24 -07:00
Jason Penilla
d527aa0f5b Fix api compile 2024-04-23 14:47:29 -07:00
Nassim Jahnke
0898d2405e Work 2024-04-23 21:23:27 +02:00
Jake Potrebic
47ee5579ff Begin update to 1.20.5 2024-04-23 10:02:08 -07:00
leguan
73da69c09e [ci skip] Fix javadoc typo (#10445) 2024-04-22 20:08:37 +02:00
Jake Potrebic
659ebace6c More Raid API (#7537) 2024-04-20 12:57:51 -07:00
Janet Blackquill
2db91fd866 Add CartographyItemEvent and get/setResult for CartographyInventory (#10396) 2024-04-20 14:10:35 -04:00
Florian Beck
3fc5a0b21d Added chunk view API (#10398) 2024-04-20 19:56:59 +02:00
Jake Potrebic
bdfe4c21f6 Add API for ticking fluids (#10435)
* Add API for ticking fluids

* update javadocs
2024-04-19 13:03:32 -07:00
brickmonster
07e8f74355 Remove dead code (LegacyResult) (#10411)
* Stop firing AsyncPlayerChatPreviewEvent as chat preview was removed in 1.19.3. This is in parity with upstream

* formatting and small tweaks

* correctly set MESSAGE_CHANGED flag for modern modifications

---------

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2024-04-19 20:47:24 +01:00
Owen1212055
14b0751f02 Deprecate ItemStack#setType & add ItemStack#withType (#10290) 2024-04-12 17:16:22 -04:00
ButterDebugger
9e05b17b92 Add color transition and clone functions to ParticleBuilder (#10342) 2024-04-12 16:07:28 -04:00
Hy3z
73c52d2df4 [ci skip] Referenced InventoryDragEvent in documentation of InventoryClickEvent (#10395) 2024-04-12 21:19:55 +02:00
Lulu13022002
99625a6d53 [ci skip] Update book page/char limit for book meta doc (#10415) 2024-04-12 20:58:44 +02:00
Jake Potrebic
7263a87e9c Deprecate several Keyed#getKey methods (#10357)
- Structure (can already be defined inline in datapacks
- PatternType (can be defined inline in 1.20.5 data components)
- MusicInstrument (same as above)
2024-04-07 22:20:51 -07:00
Evan
b6a760757a Add BlockBreakProgressUpdateEvent (#10300) 2024-04-06 18:28:17 -04:00
Lulu13022002
d06c0b4571 Backport some stuff from the generators branch (#10365) 2024-04-06 23:51:47 +02:00
Tamion
613a19f70d Add more item use API (#10304) 2024-04-06 23:44:27 +02:00
Lulu13022002
2089697232 Don't throw NPE for unplaced blockstate on #getDrops (#10366) 2024-04-06 23:26:56 +02:00
powercas_gamer
8a2bd44f1f Deprecate Bukkit#getLogger (#10388)
* Deprecate Bukkit#getLogger

* fix typo in MaterialSetTags

* change to Internal and squash into other patch

* improve api note message

---------

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2024-04-06 23:20:29 +02:00
Bridge
7de6922d21 feat: Entity#teleportAsync method with TeleportFlags (#10371)
* feat: Entity#teleportAsync method with TeleportFlags

* use method-local class

---------

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2024-04-06 22:38:37 +02:00
Jake Potrebic
68e86d7297 Updated Upstream (Bukkit/CraftBukkit) (#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:
f02baa38 PR-988: Add World#getIntersectingChunks(BoundingBox)
9321d665 Move getItemInUse up to LivingEntity
819eef73 PR-959: Add access to current item's remaining ticks
c4fdadb0 SPIGOT-7601: Add AbstractArrow#getItem
be8261ca Add support for Java 22
26119676 PR-979: Add more translation keys
66753362 PR-985: Correct book maximum pages and characters per page documentation
c8be92fa PR-980: Improve getArmorContents() documentation
f1120ee2 PR-983: Expose riptide velocity to PlayerRiptideEvent

CraftBukkit Changes:
dfaa89bbe PR-1369: Add World#getIntersectingChunks(BoundingBox)
51bbab2b9 Move getItemInUse up to LivingEntity
668e09602 PR-1331: Add access to current item's remaining ticks
a639406d1 SPIGOT-7601: Add AbstractArrow#getItem
0398930fc SPIGOT-7602: Allow opening in-world horse and related inventories
ffd15611c SPIGOT-7608: Allow empty lists to morph to any PDT list
2188dcfa9 Add support for Java 22
45d6a609f SPIGOT-7604: Revert "SPIGOT-7365: DamageCause blocked by shield should trigger invulnerableTime"
06d915943 SPIGOT-7365: DamageCause blocked by shield should trigger invulnerableTime
ca3bc3707 PR-1361: Add more translation keys
366c3ca80 SPIGOT-7600: EntityChangeBlockEvent is not fired for frog eggs
06d0f9ba8 SPIGOT-7593: Fix sapling growth physics / client-side updates
45c2608e4 PR-1366: Expose riptide velocity to PlayerRiptideEvent
29b6bb79b SPIGOT-7587: Remove fixes for now-resolved MC-142590 and MC-109346
2024-04-06 12:53:39 -07:00
maxcom1
6a200a1663 Add methods to change entity physics (#10334) 2024-03-23 22:26:17 +01:00
FireInstall
0c76cbb7cc Move invisible setting up to entities (#10346) 2024-03-23 20:27:30 +01:00
TonytheMacaroni
b17ca0b19e Expose power on fireballs (#10302) 2024-03-20 17:33:34 -04:00
Jake Potrebic
3e27ced8ce Clone mutable types in events when changes are discarded (#10333) 2024-03-20 13:42:29 -07:00
viciscat
956e59eaef Expand Hopper BlockState API (#10328) 2024-03-16 20:28:50 +01:00
Jake Potrebic
c47e305c9f Fix DamageSource API (#10307)
Uses the correct entity in the EntityDamageByEntity event
Returns the correct entity for API's DamageSource#getCausingEntity
2024-03-16 11:51:22 -07:00
Jake Potrebic
8b00b9a52d Updated Upstream (Bukkit/CraftBukkit) (#10301)
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:
7ca2b46c SPIGOT-7594: Fix typo and include missing MinecraftExperimental annotation in Loot Table enum

CraftBukkit Changes:
176c0ad39 Fix copying BlockStates with fields (eg, Banner)
ee685bd2a Fix Camel not standing up when hurt
619936d4b Increase outdated build delay
2024-03-08 15:52:00 -08:00
Yannick Lamprecht
ae0c893174 add overloads to use suspicious effect entry to mushroom cow and suspicious stew meta (#10245)
The existing method with PotionEffect suggests that all attributes are used. In fact, only the PotionEffectType and the duration are used.



---------

Co-authored-by: Bjarne Koll <git@lynxplay.dev>
2024-03-03 22:40:18 +01:00
Jake Potrebic
a2a55e2b27 Deprecate extra ban methods with raw BanEntry (#9580) 2024-03-03 12:54:52 -08:00
Yannick Lamprecht
29009b5f04 improve BanList types (#10239) 2024-03-03 21:36:17 +01:00