Commit graph

5236 commits

Author SHA1 Message Date
Ivan Pekov
6eeef75460 Reimplement GS4QueryEvent 2020-12-09 09:21:19 +02:00
HexedHero
72d411f701 Re-add coral block tags (#4987) 2021-01-03 20:57:50 +00:00
Jake Potrebic
4048b356d0 Added PlayerLecternPageChangeEvent 2020-11-23 12:59:17 -08:00
TheViperShow
5e08466cc1 Add BlockFailedDispenseEvent
Co-authored-by: MiniDigger | Martin <admin@minidigger.dev>
2020-11-29 00:38:52 +01:00
Jake Potrebic
3ca5850362 Added world settings for mobs picking up loot 2020-11-28 18:46:44 -08:00
Jake Potrebic
d2e5086e43 Added ServerResourcesReloadedEvent 2020-12-02 20:05:09 -08:00
HexedHero
da4545f227 Add a Enchantable MaterialTag 2021-01-03 19:07:18 +01:00
Malfrador
6a78920744 Add doors to material tags 2020-12-31 19:31:35 +01:00
Jake Potrebic
d37d042ff1 colorful itemdump 2020-12-07 18:10:22 -08:00
Jake Potrebic
1c87fa89f9 Added WorldGameRuleChangeEvent 2020-12-20 16:42:33 -08:00
HexedHero
3e15f5aabc Guardian beam workaround 2020-12-31 22:45:30 +00:00
Mariell Hoversholm
542d7df36b Support spawning item stacks 2020-11-14 19:11:20 +01:00
Jake Potrebic
d0f7408554 added height config for bamboo 2020-11-11 17:48:12 -08:00
Sun
dbf1b4bf70 Use setAmount for Recipe Amount 2020-11-07 14:10:03 -08:00
Josh Roy
023ec47e68 Add EntityLoadCrossbowEvent 2020-10-07 12:04:42 -04:00
stonar96
0367dabcb2 Add Anti-Xray bypass permission
This is a frequently requested feature. The permission is
'paper.antixray.bypass'.
2020-08-07 08:11:56 +02:00
Jake Potrebic
96fc8c1353 fix for nerfed slime mobs splitting 2020-07-17 13:34:50 -07:00
Jake Potrebic
32f9130749 Zombie API - breaking doors 2020-11-18 11:33:29 -08:00
TheMolkaPL
7035d57399 Fix interact event not being called in adventure 2020-06-21 17:25:24 +02:00
MisterVector
428affde24 Add PlayerFlowerPotManipulateEvent 2019-08-13 21:47:06 -07:00
Automated
20b298c421 [Auto] Updated Upstream (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

CraftBukkit Changes:
ff2b9440f SPIGOT-6304: Removed the detection of legacy text based on color codes
2021-01-03 01:37:08 -05:00
Andrew Steinborn
bd0e8d65a8 Redact Velocity forwarding secret properly (#4980) 2021-01-01 23:59:30 -05:00
Automated
f57ca49118 [Auto] Updated Upstream (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

CraftBukkit Changes:
24c79a144 SPIGOT-6303: Interpret text that Gson considers to be an empty JSON document as legacy text.
2021-01-01 22:57:16 -05:00
Automated
edfab82971 [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:
64c36cce #568: Added get/set ItemStack methods to trident

CraftBukkit Changes:
f1187a24c #778: Added get/set ItemStack methods to trident
2021-01-01 17:17:25 -05:00
Automated
3aa776c19f [Auto] Updated Upstream (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

CraftBukkit Changes:
fa6d549d9 Update SQLite for Mac M1 support
2021-01-01 16:52:34 -05:00
Jason Penilla
c7a5aadb36 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
2020-12-19 01:39:37 -08:00
BrodyBeckwith
8902bc3512 Allow disabling mob spawner spawn egg transformation 2020-10-09 20:35:57 -04:00
lukas81298
0e12991f69 Cache burn durations 2020-12-27 23:00:27 +01:00
lukas81298
3f56fafda8 Optimized tick ready check 2020-12-29 14:14:43 +01:00
Matthew Miller
fffed3cf0a Add API to get the Material of Boats and Minecarts 2020-12-31 12:51:43 +10:00
Mariell Hoversholm
5a8ce7f006 Fix sign lazy initialisation
Fixes PaperMC/Paper#4975
2021-01-01 14:35:38 +01:00
Jake Potrebic
e11560e965 Updated Upstream (CraftBukkit/Spigot) (#4972)
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

CraftBukkit Changes:
560b65c4 #707, SPIGOT-5063, SPIGOT-5304, SPIGOT-5656, SPIGOT-3206, SPIGOT-5350, SPIGOT-5980, SPIGOT-4672: Persist the exact internal text representation where possible.

Spigot Changes:
ff439d1e Rebuild patches
2020-12-31 20:03:19 -08:00
Riley Park
b1d8fe74c4 [CI-SKIP] Use GitHub Actions for build status
fixes #4971
2020-12-31 12:56:55 -08:00
PepperCode1
2e7b860b56 Fix harming potion dupe
EntityLiving#applyInstantEffect() immediately kills the player and drops their inventory.
Before this patch, instant effects would be applied before the potion ItemStack is removed and replaced with a glass bottle. This caused the potion ItemStack to be dropped before it was supposed to be removed from the inventory. It also caused the glass bottle to be put into a dead player's inventory.
This patch makes it so that instant effects are applied after the potion ItemStack is removed, and the glass bottle is only put into the player's inventory if the player is not dead. Otherwise, the glass bottle is dropped on the ground.
2020-07-23 14:29:02 -07:00
Aikar
8147d0ec71 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
Aikar
eee1fedc1e Micro Optimize DataBits
There was 2 unnecessary lines of code in a core method used for DataBits
that repeatedly calculated a static value.

We now just precalculate that in the constructor and reuse the value instead.

This is a micro optimization, but this is some of the hottest code in the server so
it should provide some minor gains as well as improve inlining.

Additionally, to further help inlining, mark the DataBits methods as final.
2020-12-30 14:02:44 -05:00
Jason Penilla
b9744db06b Add and implement cancellable TargetHitEvent for when Target Blocks are hit by Projectiles 2020-11-26 00:30:08 -08:00
Automated
b6b18a7b97 [Auto] Updated Upstream (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

CraftBukkit Changes:
b5e5adc42 SPIGOT-6296: Server crashes when burning something at y-level 0
2020-12-28 16:57:08 -05:00
Jake Potrebic
93a75a9588 Add OBSTRUCTED result to BedEnterResult enum 2020-12-24 12:44:34 -08:00
Automated
0c40a013dd [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
43a4ab7b04 added PlayerTradeEvent 2020-07-02 16:14:36 -07:00
Automated
6ac04d87f3 [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:
f4a9ed36 SPIGOT-6273: Expose ItemFrame ItemDropChance through API

CraftBukkit Changes:
72c5e7477 SPIGOT-6273: Expose ItemFrame ItemDropChance through API
2020-12-27 17:07:01 -05:00
Automated
e3c9dfe805 [Auto] Updated Upstream (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

CraftBukkit Changes:
9f2b92e58 SPIGOT-6292: LivingEntity.setNoDamageTicks no longer functions
2020-12-27 16:37:02 -05:00
Mariell
04d4054c16 [CI-SKIP] Deprecate the view distance APIs on Player (#4945) 2020-12-27 12:37:37 +01:00
Shane Freeder
25980711f0 Do not crash from invalid ingredient lists in VillagerAcquireTradeEvent 2020-12-27 11:31:49 +00:00
Toshimichi0915
cfebf1baa7 Fix lead duplication 2020-12-25 01:31:13 -05:00
Matthew Miller
cfd2fcf443 Add API to get Tile Entities in a Chunk by Predicate 2020-12-18 21:24:21 +10:00
Jake Potrebic
5583c8c007 fix book page limit length (#4932) 2020-12-23 14:52:56 -08:00
Mark Vainomaa
ec665f60d2 Expose LivingEntity hurt direction 2020-12-22 22:32:15 +01:00
Shane Freeder
08f196719f Do not perform neighbour updates when using debug stick (Fixes #2134)
CB blindly drops any update flags when recording block modifications,
this causes the debug stick to blindly update neighbouring blocks on usage
in order to control this, we will special case this item, however, this
ideally should be fixed by recording the actual update flags used,
but will induce ABI breaks...

This patch also maintains the behavior of the BlockPlaceEvent, this
behavior will NOT be guaranteed in the future, however.
2020-12-22 22:45:10 +00:00