Commit Graph

945 Commits

Author SHA1 Message Date
Aleksander Jagiello d7795080c7 Fix NPE for AIR in meta operations in ItemStack 2021-03-07 11:46:37 +01:00
Aurora 2e70796c7f
[CI-SKIP] Improve documentation of PreCreatureSpawnEvent (#5244) 2021-03-07 10:35:45 +00:00
Gergely Sarkozi 7bb92e750c
[CI-SKIP] Add JavaDoc links to Tag class pointing to custom Paper tags (#5285) 2021-03-07 10:31:20 +00:00
Jake Potrebic 5b20df6bf0 added PlayerNameEntityEvent 2021-03-04 23:55:04 +01:00
Jake Potrebic ff9c82444e Add worldborder events 2021-03-04 21:13:24 +01:00
Jake Potrebic 616b1f3cd0 consider enchants for destroy speed 2021-03-04 20:48:08 +01:00
Josh Roy 4c9bdf53ac
Updated Upstream (Bukkit/CraftBukkit/Spigot) (#5299)
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:
9d0ad318 Fix javadoc errors in previous commits
9501daa2 #578: Add methods to modify the rate of regeneration and starvation
197d8f3d #577: Add EntityExhaustionEvent

CraftBukkit Changes:
a021e334 #795: Add methods to modify the rate of regeneration and starvation
509e523c #792: Add EntityExhaustionEvent

Spigot Changes:
db99f821 Rebuild patches
2021-03-03 14:43:45 -08:00
Jason 45bc531dd3
Fix Material#getTranslationKey for Block Materials (#5294)
* Fix Material#getTranslationKey for Block Materials

* Cache the result of Material#isBlock
2021-03-02 16:27:34 -08:00
Riley Park 9907cedecb
New chat events for better Adventure support (#5289)
Bump Adventure to 4.6.0

fixes #5216
fixes #5261
fixes #5287
2021-03-01 19:07:12 -08:00
Paul Zhang 5d779a6212 Implements PlayerHandshakeEvent#getOriginalSocketAddressHostname and deprecates PlayerHandshakeEvent(String, boolean) in favour of PlayerHandshakeEvent(String, String, boolean) 2021-02-27 15:43:33 +01:00
Tom 6fab1ee3aa Expose Tracked Players
A lot of plugins seem to use reflection to determine this, so this could be a bit of a starter-patch as future PR'ers could also exposed tracked entities as well.
2021-02-27 15:34:33 +01:00
Aikar ca4c781d83
[Auto] 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:
95ff95ed #588: Add Player#sendBlockDamage()

CraftBukkit Changes:
ea050e6e9 #807: Add Player#sendBlockDamage()
2021-02-24 04:32:17 -05:00
Aurora bf2f8aeaf6
Add @NotNull to Key in org.bukkit.sound (#5241)
Fix compiling
2021-02-23 16:20:52 -08:00
Riley Park 01f9b65f90
Sound can implement Adventure's Sound.Type 2021-02-23 15:45:26 -08:00
Riley Park a0093e142b
Adventure 4.5.1 2021-02-23 11:20:15 -08:00
MeFisto94 afea0e8abf
Add links to the Adventure javadocs
fixes #5239
2021-02-23 11:20:04 -08:00
Jason 846783c8ab
Fix a couple of typos in the javadoc for Player (#5235) 2021-02-23 05:46:02 -08:00
chickeneer c1635eabb4 PlayerDeathEvent#getDeathMessage should provide translation for legacy reasons #5227 2021-02-23 04:10:41 +01:00
Riley Park d23f8b62ef
fix? #5222 2021-02-22 06:15:22 -08:00
Riley Park a235c77ce7
Adventure 4.5.0 2021-02-22 02:52:30 -08:00
Riley Park 511cd52f02
fix #5214 2021-02-22 01:53:53 -08:00
Riley Park a1eebfea96
fix #5212 and #5213 2021-02-22 00:20:23 -08:00
MiniDigger | Martin 4668201606
Upstream Update (#5211) 2021-02-21 20:55:01 +00:00
Riley Park 4e958e229f
We're going on an Adventure! (#4842)
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
Co-authored-by: zml <zml@stellardrift.ca>
Co-authored-by: Mariell Hoversholm <proximyst@proximyst.com>
2021-02-21 20:45:33 +01:00
Shane Freeder 0ea3083817
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:
1e843b72 #510: Add NamespacedKey#fromString() to fetch from user input
a4d18241 #581: Add methods to modify despawn delay for wandering villagers

CraftBukkit Changes:
0cd8f19f #802: Add methods to modify despawn delay for wandering villagers
d5c5d998 SPIGOT-6362: ConcurrentModificationException: null --> Server Crash
8c7d69fe SPIGOT-5228: Entities that are removed during chunk unloads are not properly removed from the chunk.
2021-02-16 17:13:49 +00:00
Aikar 088fa6f28b
[Auto] 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:
5b289e69 SPIGOT-5778: Added World.getGameTime method

CraftBukkit Changes:
d97d91871 SPIGOT-6347: Nether Portals Default to Nether, even in Nether
8aa6a953f SPIGOT-5778: Added World.getGameTime method

Spigot Changes:
73fb6094 #107: Add async catching to chunk entity add/remove
2021-02-12 18:42:12 -05:00
Aikar 36a72cad30
[Auto] 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:
315b69c1 SPIGOT-6349: Material#MOSSY_COBBLESTONE incorrectly claims it is a MultipleFacing block

CraftBukkit Changes:
a82b21297 BUILDTOOLS-569: development maven profile fails build on windows

Spigot Changes:
cd23533a Rebuild patches
2021-02-08 05:17:10 -05:00
Shane Freeder 13a476e15d
Deprecate PlayerLeaveBedEvent#setBedSpawn
this is no longer attached to anything, and from a glance it looks like
the point at which this information is set has moved to a place which wouldn't
fall in line in a way that we could re-implement these without breaking vanilla
behaivior

Also, just noticed that we apparently need to give our own javadocs some love
at some point
2021-02-06 22:15:06 +00:00
Mariell Hoversholm 8bc0c6c318
Updated Upstream (CraftBukkit/Spigot) (#5169) 2021-02-05 22:52:27 +00:00
Yannick Lamprecht 002f65b8b8
living entity allow attribute registration (#4723) 2021-02-05 22:14:27 +00:00
Ivan Pekov 0514fc4e2d Add missing effects 2021-01-30 21:53:52 +01:00
Aleksander Jagiello 8f5d9effd5 Add getMainThreadExecutor to BukkitScheduler 2021-01-30 21:39:58 +01:00
BillyGalbreath 313b5020b2
Allow adding items to BlockDropItemEvent (#5093) 2021-01-30 17:09:13 +01:00
Gergely Sarkozi b67081fd72
add DragonEggFormEvent (fixes #5110) (#5112) 2021-01-30 16:22:12 +01:00
Mariell Hoversholm 3eefafbafd Fix javadoc build 2021-01-30 14:41:08 +01:00
Nassim 01082503ec
Add dropLeash variable to EntityUnleashEvent (#5130) 2021-01-30 14:23:15 +01:00
BillyGalbreath d9f5f70188
EntityMoveEvent (#4614) 2021-01-28 19:26:20 +00:00
Jake Potrebic 091e6700fe Added PlayerStonecutterRecipeSelectEvent
Co-Authored-By: MiniDigger <admin@minidigger.me>
2021-01-23 13:00:38 +01:00
Jake Potrebic e9a87b72be
fix BaseTag constructor (#5095) 2021-01-21 13:57:13 -05:00
Aikar 732b2f6b5a
[CI-SKIP] [Auto] Rebuild Patches
A recent commit has been made that caused patches to be out of order, rebuilding
2021-01-19 18:12:01 -05:00
Matthew Miller c5a39ffa2a
Add BlockPreDispenseEvent (#5075) 2021-01-19 22:55:25 +00:00
Jake Potrebic 56b7935bb9 Add PlayerChangeBeaconEffectEvent
Signed-off-by: MiniDigger <admin@minidigger.me>
2021-01-17 21:39:34 +01:00
Jake Potrebic 2eda45c34f added Wither API 2021-01-17 21:01:11 +01:00
Jake Potrebic 97d0c571b4 Added Vanilla Entity Tags 2021-01-17 20:39:53 +01:00
Aikar 946cdd2d24
[CI-SKIP] [Auto] Rebuild Patches
A recent commit has been made that caused patches to be out of order, rebuilding
2021-01-16 14:42:21 -05:00
Aikar f6d3c6811e
Make ProjectileHitEvent Cancellable
Allows cancelling things like detonating TNT from Fire Arrows
2021-01-16 14:38:18 -05:00
CDFN aac07a271c Return chat component with empty text instead of throwing exception. Fixes #3328
Signed-off-by: MiniDigger <admin@minidigger.me>
2021-01-16 20:15:15 +01:00
dfsek 193f80148c Add StructureLocateEvent
Signed-off-by: MiniDigger <admin@minidigger.me>
2021-01-16 18:29:36 +01:00
Mariell Hoversholm 59222b5ba5 Add sendOpLevel API 2021-01-16 18:10:57 +01:00
Shane Freeder ce979b29be Updated Upstream (Bukkit)
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:
b94b766f Improve /version command
2021-01-16 02:46:43 +00:00
Shane Freeder d3dc24999e 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:
85b16b8a Update to Minecraft 1.16.5

CraftBukkit Changes:
f3f30947 Update to Minecraft 1.16.5

Spigot Changes:
018b9a0d Update to Minecraft 1.16.5
2021-01-16 02:18:38 +00:00
Shane Freeder 7232d8f2af EntityLoadCrossbowEvent#shouldConsumeItem 2021-01-14 15:53:42 +00:00
Shane Freeder 4740bd6c89 Mark PlayerInventory#getItem as nullable 2021-01-14 14:35:50 +00:00
Matthew Miller 8ab9dc066a
Add API to get exact interaction point in PlayerInteractEvent (#4995) 2021-01-08 05:26:51 +00:00
Jake Potrebic 05af2837cd [CI-SKIP] Improved the annotation test output 2021-01-04 21:41:37 +01:00
Jake Potrebic 5869669498 abstract custom set tags, add entity tags 2021-01-04 21:22:32 +01:00
Jake Potrebic c7667378e7 Added PlayerLoomPatternSelectEvent 2021-01-04 20:37:05 +01:00
HexedHero 544c5c278b
Re-add coral block tags (#4987) 2021-01-03 20:57:50 +00:00
Jake Potrebic 7d56c8deb1 Added PlayerLecternPageChangeEvent 2021-01-03 21:05:07 +01:00
TheViperShow c7cdf255bf Add BlockFailedDispenseEvent
Co-authored-by: MiniDigger <admin@minidigger.me>
2021-01-03 20:40:11 +01:00
Jake Potrebic 91eda5bd37 Added ServerResourcesReloadedEvent 2021-01-03 19:39:53 +01:00
HexedHero be81b4f5c5 Add a Enchantable MaterialTag 2021-01-03 19:26:57 +01:00
Malfrador 975d187034 Add doors to material tags 2021-01-03 18:48:20 +01:00
Jake Potrebic f3ba3dee05 Added WorldGameRuleChangeEvent 2021-01-03 18:31:15 +01:00
Mariell Hoversholm b63c890ec2 Support spawning item stacks 2021-01-03 17:41:44 +01:00
Sun 7878e3bc24 Use setAmount for Recipe Amount 2021-01-03 17:08:49 +01:00
JRoy 50e70697b1 Add EntityLoadCrossbowEvent 2021-01-03 16:59:24 +01:00
Jake Potrebic 4a7962cd13 Zombie API - breaking doors 2021-01-03 16:18:13 +01:00
MisterVector 2c9ed43354 Add PlayerFlowerPotManipulateEvent 2021-01-03 14:27:52 +01:00
jmp 4b37929208 JavaDoc fixes
Remove duplicate JavaDocs - At some point upstream decided to fix some of their JD errors/warnings, so now we have duplicate tags, bringing new warnings.
Also add missing `@param` for ItemStack.deserializeBytes
2021-01-01 17:16:42 +01:00
Matthew Miller b4000b01a7 Add API to get the Material of Boats and Minecarts 2021-01-01 16:05:59 +01:00
Aikar 7bfb781ff3
Additional Block Material API's
Faster version for isSolid() that utilizes NMS's state for isSolid instead of the slower
process to do this in the Bukkit API

Material#isSolid uses a large switch statement which isn't as performant vs a simple boolean return

Adds API for buildable, replaceable, burnable too.
2020-12-30 19:43:45 -05:00
jmp 8ccb7fd679 Add and implement cancellable TargetHitEvent for when Target Blocks are hit by Projectiles 2020-12-29 16:28:47 +01:00
Aikar 1c2571224e
[CI-SKIP] [Auto] Rebuild Patches
A recent commit has been made that caused patches to be out of order, rebuilding
2020-12-28 07:31:48 -05:00
Jake Potrebic 2b312dfbe2 Add OBSTRUCTED result to BedEnterResult enum 2020-12-28 13:18:38 +01:00
Aikar a5201ac989
[CI-SKIP] [Auto] Rebuild Patches
A recent commit has been made that caused patches to be out of order, rebuilding
2020-12-28 07:11:59 -05:00
Jake Potrebic fb7503399a added PlayerTradeEvent 2020-12-28 13:07:48 +01:00
Mariell e40ea889dc
[CI-SKIP] Deprecate the view distance APIs on Player (#4945) 2020-12-27 11:37:37 +00:00
Matthew Miller 0bdfb01589 Add API to get Tile Entities in a Chunk by Predicate 2020-12-24 10:27:49 +01:00
Mark Vainomaa cab361600b Expose LivingEntity hurt direction 2020-12-22 23:57:07 +01:00
Shane Freeder abca14ff96 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:
6f9fe1d9 #562: Add API to set equipment silently
bcddb754 SPIGOT-6256: Add method to check if the entity is in water

CraftBukkit Changes:
878b4375 #772: Add API to set equipment silently
22d7fcc9 SPIGOT-6256: Add method to check if the entity is in water
2020-12-21 07:56:22 +00:00
MiniDigger de31e8c709
Remove Paper's UnsafeUtils (#4913) 2020-12-19 21:14:37 +01:00
Aikar 3fdeba1f5c
[CI-SKIP] [Auto] Rebuild Patches
A recent commit has been made that caused patches to be out of order, rebuilding
2020-12-16 15:26:55 -05:00
Fruxz 5fc07bd634 Maded Title-Objects directy sendable to targets 2020-12-16 21:21:00 +01:00
ysl3000 e7b9a478e9 Player Chunk Load/Unload Events
Co-authored-by: Mariell <proximyst@proximyst.com>
2020-12-16 20:23:35 +01:00
Aikar 9c9583cd2b
[Auto] 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:
8f495b8d #564: Add method to get max world size

CraftBukkit Changes:
768d7fc2d #773: Add method to get max world size

Spigot Changes:
628435a8 #103: Add async catchers to Chunk#getEntities
2020-12-12 19:42:05 -05:00
Jake Potrebic 3dc82c2008
deprecate IllegalPacketEvent (#4867) 2020-12-07 23:51:55 -08:00
William Blake Galbreath 9a129fa99a Add #getEligibleHumans to SkeletonHorseTrapEvent 2020-12-05 15:51:56 +01:00
Kyle Wood f15abda562
Enable Multi-Release plugin jar support
Fixes #4841
2020-12-04 15:57:46 -08:00
JRoy 6859765e44 Add PlayerShearBlockEvent 2020-12-03 00:08:11 +01:00
KennyTV 4729e6b906 Add more lightning API 2020-12-02 22:06:04 +01:00
KennyTV 2a44498a54 Add PlayerItemCooldownEvent 2020-12-02 21:26:12 +01:00
Anrza fd33bcee19 Add LivingEntity#clearActiveItem 2020-12-02 21:01:02 +01:00
Max Lee 0081e8ef81
Fix plugin provides not being listed behind name in /plugins (#4825) 2020-12-01 14:06:14 +00:00
Ineusia ab1a7c94df Add getDestroySpeed to Block API
Co-authored-by: MiniDigger <admin@minidigger.me>
2020-11-28 23:56:34 +01:00
HexedHero 85c906e896 Add Material Tags for Coral, Coral Fangs and Coral Blocks 2020-11-28 23:23:10 +01:00
Shane Freeder 43e2f13b21 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
Actually rebuild patches this time...

Bukkit Changes:
19b7b7bd #561: Add clear weather World API
5929c808 #552: Add the ability to retrieve hit, step, fall, and other sounds from blocks.

CraftBukkit Changes:
e1ebdd92 #771: Add clear weather World API
424598d2 #752: Add the ability to retrieve hit, step, fall, and other sounds from blocks.
2020-11-25 23:49:06 +00:00
Aikar 7263cbca77
[CI-SKIP] [Auto] Rebuild Patches
A recent commit has been made that caused patches to be out of order, rebuilding
2020-11-19 14:11:59 -05:00
jmp 1c63aff6d9 Villager resetOffers API 2020-11-19 20:09:54 +01:00
Jake Potrebic 899bc53b79
Updated Upstream (Bukkit/CraftBukkit) (#4779)
Upstream has released updates that appears 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:
f47abd88 SPIGOT-6242: Fix some file line endings
de96535b SPIGOT-6234: enum classes don't serialize properly when implementing ConfigurationSerializable

CraftBukkit Changes:
4475707d SPIGOT-6244: /spawnpoint ignores angle
8b3b096d SPIGOT-6242: Fix some file line endings
4b33c749 SPIGOT-6186: Canceling a CreatureSpawnEvent​ results in a "Unable to summon entity due to duplicate UUIDs" error
2b3ca726 SPIGOT-6236: Vehicle passenger portal cooldown does not change
2020-11-17 22:45:18 -05:00