Commit Graph
7 Commits
Author SHA1 Message Date
Bjarne Koll c23b1138fb Fix setPatternColor on tropical fish bucket meta (#6877) 2021-11-08 20:20:07 +01:00
Bjarne Koll 7deb2b0f26 Expose the potential player cause of a lightning (#6782) 2021-11-05 15:54:37 +01:00
Bjarne Koll 89b449e9e6 Correctly inflate villager activation bounding box (#6798) 2021-10-20 05:14:30 +02:00
Bjarne Koll 403d07e954 Apply furnace cook speed multiplier through event (#6378)
Previously the upstream FurnaceStartSmeltEvent would default to the
recipes cooking time, ignoring any modifications from the furnace speed
multiplier.
While this works correctly for upstream, paper introduces the speed
multiplier API, which allows a different cook time from the one provided
by the recipe.

This commit now passes the modified cooktime to the furnace start smelt
event explicitly, instead of allowing the event to default to the
recipes cooking time, thus ensuring that the speed modifier is
respected.

Resolves: #6376
2021-09-22 21:46:15 +02:00
Bjarne Koll b868339208 Add deepslate as xray engine 2 replacement default (#6362)
Fixes: #6350
2021-08-21 14:34:58 +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
Bjarne KollandJake Potrebic fc1a197de2 Ensure shulker bounding box is updated (#6010)
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2021-07-09 03:18:32 +02:00