Commit graph

6053 commits

Author SHA1 Message Date
Shane Freeder
0850e18436 Expose EntityType#getTranslationKey 2021-08-11 06:12:57 +00:00
Mariell Hoversholm
cdb63d6ad0 refactor: do not import List; use FQN
Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
2021-08-06 13:57:36 +02:00
Mariell Hoversholm
7df3240f80 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:
e0598aa2 SPIGOT-6692: Add sendSignChange overload with a hasGlowingText parameter

CraftBukkit Changes:
2cdc6b1e4 SPIGOT-6692: Add sendSignChange overload with a hasGlowingText parameter
2021-08-05 21:53:50 +02:00
Jake Potrebic
ecbd399610 Added EntityItemDamageEvent (#4928) 2021-08-09 22:04:44 -07:00
Jason Penilla
c3a36117a8 Config option for Piglins guarding chests (#4829) 2021-08-09 19:13:58 -07:00
Jason Penilla
5ba8143d59 Add reobf mappings patch for MinecraftServer#getLootTables (#6368) 2021-08-09 17:05:12 -07:00
Andrew Steinborn
3a2986e746 Optimize entity tracker passenger checks (#6361)
When a ServerEntity instance is first constructed, it uses a pre-Java 9 empty collection,
but passengers use Guava ImmutableList. When comparing the two collections via Object#equals
we miss out on an opportunity to reduce the check to little more than a reference equality
check (which is very fast).
2021-08-09 18:36:45 +00:00
Bjarne Koll
68db0c9853 Support complex components in written book builder (#6337)
The previously existing toBuilder method defined on the CraftMetaBook
would, no matter if called on a writable or written book, return a
builder targetting a writable book, in which complex components, such as
hover or click text are not allowed.

The builer hence serializes the page components using LEGACY_UXRC to
ensure only colour may be passed. While this works as intented for
writable books, the builder fails to fully support the complex
components that may be used in a written book.

This commit implemements a child class of the CraftMetaBookBuilder, the
CraftMetaBookSignedBuilder, which builds to a CraftMetaBookSigned
instance and hence serializes the pages to json.
This builder instance is automatically supplied when calling toBuilder
on a CraftMetaBookSigned instance.

Resolves: #6296
2021-08-09 00:57:20 +02:00
Jake Potrebic
835479f878 clone itemstack to return remaining stack (#6353) 2021-08-06 23:55:16 -07:00
Jake Potrebic
77aea984df Add missing DamageCause for EntityDamageByBlockEvent (#6352) 2021-08-06 23:03:50 -07:00
Jake Potrebic
6b7f31b6ea Make hoppers respect inventory max stack size (#4838) 2021-08-06 17:35:42 -07:00
Kacper Płażewski
b7d13d69f9 [ci skip] add vs code files to .gitignore (#5663) 2021-08-07 02:27:45 +02:00
Jake Potrebic
c5487cc115 call EntityDamageByBlockEvent for campfires (#6244) 2021-08-06 17:20:39 -07:00
Jake Potrebic
299284be1d Add PlayerSetSpawnEvent (#5690) 2021-08-06 13:37:38 -07:00
thamid-gamer
973d5bf77b Fix Incorrectly Typed Goals (#6200) 2021-08-06 13:05:53 -04:00
Noah van der Aa
5aeb8c87e7 Fix ITEM_DROPPED stat not working properly (#6331) 2021-08-06 18:46:25 +02:00
Mariell Hoversholm
7167583c8a fix: promote slf4j-api to api scope (#6343)
Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
2021-08-06 18:01:18 +02:00
Shane Freeder
c45970a2c1 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:
75a0ee4f SPIGOT-6691: Material.LAVA_CAULDRON is not Levelled

CraftBukkit Changes:
e1c96e50 SPIGOT-6682: Blocking with shield not reset after die
97f629b6 SPIGOT-6220: Structures in the world with custom generator not work
85379258 Increase outdated build delay
f7f8dce4 SPIGOT-6552: Some inventory types reset cursor on switch
2021-08-04 16:26:56 +01:00
Prof-Bloodstone
5d201168ef Fix writing server.properties with wrong encoding (#6322)
Fixes #6321
2021-08-04 09:48:15 +02:00
Shane Freeder
06a831d477 Fix SysoutCatcher when plugins log before initialisation (Fixes #6323) 2021-08-04 04:04:12 +01:00
Mariell Hoversholm
9ff41ed426 fix: boats' bounding boxes must be deflated, not inflated (#6314)
Fixes GH-6312.

Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
2021-08-03 12:13:43 +02:00
Emilia Dreamer
e51f909450 Fix incorrect colors in ConsoleCommandSender messages with TranslatableComponents (#6287) 2021-08-03 10:48:34 +03:00
Prof-Bloodstone
cdd278225c Allow skipping writing of comments to server.properties (#6251)
Makes less git noise, as it won't update the date every single time

Use -DPaper.skipServerPropertiesComments=true flag to disable writing it
2021-08-03 09:35:02 +02:00
Noah van der Aa
f8261096c8 Prevent AFK kick while watching end credits (#6239). (#6265) 2021-08-02 10:43:56 +02:00
Hannes Greule
d891837b28 Rewrite LogEvents to contain information about the source jar of stacktrace elements (#6142) 2021-08-02 10:32:53 +02:00
Nassim Jahnke
243cfdf6b5 Don't not shuffle visible chunks (#6283) 2021-08-02 10:00:31 +02:00
Underscore11
007c5e34af Allow plugins to use Log4J to log (#6288) 2021-08-02 00:57:31 -07:00
ChristopheG
73f9a698de Add force getter to ParticleBuilder (#6300) 2021-08-02 09:51:55 +02:00
Underscore11
fbc4b4ca6d Add System.out.println catcher (#6278) 2021-08-02 00:07:48 -07:00
Shane Freeder
b3f290d877 Fix some inconsistency issues with empty map items (#6304) 2021-08-01 16:55:25 +01:00
Shane Freeder
3a17437d6f Mark sensor and behavior timings as verbose 2021-08-01 10:22:55 +01:00
Kyle Wood
228c6aaf5d Fix Java toolchain configuration to work on arm macOS 2021-08-01 02:55:02 -05:00
PaulBGD
1c0ded9f9b Correct handling of invalid maps (#6302) 2021-07-31 15:47:01 -05:00
Frank van der Heijden
b8f6b49552 Suppress deprecation registration warnings for brigadier events (#6297) 2021-07-31 07:59:22 +02:00
Nassim Jahnke
722c7ccb57 Fix closeInventory shenanigans (#6292) 2021-07-30 11:37:11 +02:00
Finn Künstner
bf8f91cf09 [ci skip] Fix various compile warnings (#6264) 2021-07-30 01:04:26 +02:00
Owen1212055
23470be165 Add bee stinger API (#5962) 2021-07-28 20:36:53 -04:00
Gergely Sarkozi
3e76cbef70 fix empty array elements in command args (#5778) 2021-07-28 20:37:32 +02:00
Jason Penilla
474097d19e Update paperweight to 1.1.9 (#6284) 2021-07-28 02:00:41 -07:00
Nassim Jahnke
15031fa7d7 Updated Upstream (CraftBukkit) (#6279)
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:
6788550f SPIGOT-6678: ChunkSnapshot#isSectionEmpty() not working as intended.
3ad0fb1c #901: Fix PlayerStatisticIncrementEvent spam
2021-07-28 09:39:14 +02:00
Jason Penilla
e2a638ce6d Call EntityKnockbackByEntityEvent for RamTarget Behavior (#6273) 2021-07-26 09:41:26 -07:00
MeFisto94
7dc5d71367 Move "use-display-name-in-quit-message" to settings namespace (#6257) 2021-07-26 01:11:44 +02:00
Max Lee
b7ac1102ba Add config option to specify timings url (#6256) 2021-07-25 08:10:30 +01:00
TwoLeggedCat
8b32eebc95 Add fireball to default max load config (#6252) 2021-07-25 02:00:54 -05:00
Max Lee
0f090e7328 Add the default tick rate of the sensor to the timings (#6242) 2021-07-25 07:50:36 +01:00
Shane Freeder
38e838b0c9 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:
aa69d1cf Only remove tile entity if block type changes
2021-07-24 04:44:04 +01:00
Jake Potrebic
7b87553d96 Updated Upstream (CraftBukkit) (#6260) 2021-07-23 19:33:05 -07:00
Jake Potrebic
eaaca77f42 Fix flat bedrock (#6255) 2021-07-23 14:18:10 -07:00
Jake Potrebic
d58099f73b Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6245)
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:
e7b0f8d6 #642: Add Crafting methods to API
9e58831e SPIGOT-6641: Use varargs in sendMessage
e409fe49 SPIGOT-6545: Unable to set Guardian target via API while awareness is disabled
6997c726 SPIGOT-6661: Fix missing radius from GenericGameEvent
02d03f35 SPIGOT-6369: Add ItemStack to HangingPlaceEvent

CraftBukkit Changes:
0abf420c SPIGOT-6665: Shearing a Snowman does not drop a carved pumpkin
e8e3cbcc #893: Add Crafting methods to API
879acfee Fix missing varargs from previous commit
6572b9c3 SPIGOT-6641: Use varargs in sendMessage
9e06bb2a SPIGOT-6663: Chicken Jockeys chickens don't despawn
699f2d36 SPIGOT-6545: Unable to set Guardian target via API while awareness is disabled
8ffa54ba SPIGOT-6369: Add ItemStack to HangingPlaceEvent
c851639c SPIGOT-6645: Call EntityChangeBlockEvent before PlayerHarvestBlockEvent
8d244b0b SPIGOT-3725, SPIGOT-6638, MC-136917: Properly clear tile entities before replacing

Spigot Changes:
18c71bf4 Rebuild patches
2021-07-22 11:11:56 -07:00
Jake Potrebic
e00202c42a Add ItemRarity test (#6247) 2021-07-21 21:48:24 -07:00