Commit Graph

108 Commits

Author SHA1 Message Date
caramel
76617ddf43 Add EntityEffectTickEvent (#11838) 2025-01-12 17:50:22 +01:00
Strokkur24
c2f24e1567 Feat: Add 'with' methods to CommandSourceStack (#11868) 2025-01-11 13:29:16 -08:00
Hannes Greule
287eb52fa4 Use hidden classes for event executors (#11848)
Static final MethodHandles perform similar to direct calls. Additionally,
hidden classes simplify logic around ClassLoaders as they can be defined
weakly coupled to their defining class loader. All variants of methods
(static, private, non-void) can be covered by this mechanism.
2024-12-29 00:11:09 +01:00
Jake Potrebic
18da1ae4c0 [ci skip] update DiscoveredDatapack javadoc 2024-12-28 13:49:11 -08:00
Jake Potrebic
feb8756567 Add datapack registration lifecycle event (#11804) 2024-12-28 13:30:43 -08:00
Jake Potrebic
0629524cb2 Directly build Art (#11813) 2024-12-27 16:07:48 -08:00
Chaosdave34
5c7537cb5c Add DamageType RegistryEvent (#11783) 2024-12-28 00:13:27 +01:00
kokiriglade
953f6f929e Banner pattern registry modification (#11803) 2024-12-26 18:57:34 -05:00
SoSeDiK
aac246ae29 Expand on entity serialization API (#11807) 2024-12-27 00:08:00 +01:00
Jake Potrebic
af2812fb0f For new registry values, allow copying from existing (#11796)
Co-authored-by: Bjarne Koll <git@lynxplay.dev>
2024-12-26 13:41:15 -08:00
Jake Potrebic
083c083188 Fix a bunch more issues arising from mutable types (#11769) 2024-12-22 22:50:00 +01:00
Jake Potrebic
49f715fdda update brig in the API and patch cleanup 2024-12-18 18:30:29 -08:00
Owen1212055
30b4dedabb DataComponent API
Exposes the data component logic used by vanilla ItemStack to API
consumers as a version-specific API.
The types and methods introduced by this patch do not follow the general
API deprecation contracts and will be adapted to each new minecraft
release without backwards compatibility measures.
2024-04-28 19:53:06 -04:00
Mariell Hoversholm
2f8f0f1f81 Add PlayerInsertLecternBookEvent 2020-08-29 21:55:41 +02:00
Jake Potrebic
4fb38d1c36 create TileStateInventoryHolder
a missing interface to centralize getSnapshotInventory methods
2024-09-20 21:40:23 -07:00
Jake Potrebic
e05d628610 Tag Lifecycle Events 2024-06-20 09:40:53 -07:00
Jake Potrebic
0f47ed5252 Add FeatureFlag API 2023-03-09 11:24:43 -08:00
Lulu13022002
4641e233e7 Leashable API 2024-06-22 21:11:58 +02:00
Jake Potrebic
cb339661cc Make a PDC view accessible directly from ItemStack 2024-06-12 10:29:30 -07:00
Bjarne Koll
fcc777a0a8 Introduce registry entry and builders
Co-authored-by: kokiriglade <git@kokirigla.de>
2024-06-13 22:35:05 +02:00
Jake Potrebic
146cd1a015 Registry Modification API 2022-03-02 13:36:21 -08:00
Owen1212055
69edd6d91f Brigadier based command API
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2022-08-01 22:50:29 -04:00
Janet Blackquill
92b812ddc0 Add CartographyItemEvent
Similar to SmithItemEvent, but for cartography tables.
2024-04-07 16:51:04 -04:00
Badbird5907
1c53b54fd9 Add BlockBreakProgressUpdateEvent 2024-03-04 22:18:33 -05:00
Owen1212055
1725de0232 Suspicious Effect Entry API
Exposes a new suspicious effect entry type that properly represents
storable effects in the context of suspicious effects as they only
define the potion effect type and duration.

This differentiates them from the existing PotionEffect API found in
bukkit and hence clarifies that storable values in the parts of the API
in which it replaces PotionEffect.

Co-authored-by: Yannick Lamprecht <yannicklamprecht@live.de>
2024-03-03 19:45:52 +01:00
Yannick Lamprecht
3073742fd7 improve BanList types 2024-02-10 20:49:47 +01:00
David Mayr
3ebc5bb92c add number format api
Signed-off-by: David Mayr <davidliebtkekse@gmail.com>
2023-12-16 10:40:29 +01:00
vicisacat
8363e77ad2 Add FluidState API 2023-11-17 20:21:47 +01:00
Yannick Lamprecht
de70580ea9 ItemStack Tooltip API 2024-01-22 13:27:18 +01:00
Jake Potrebic
eb68d0e1b5 Add Lifecycle Event system
This event system is separate from Bukkit's event system and is
meant for managing resources across reloads and from points in the
PluginBootstrap.
2023-07-18 14:47:02 -07:00
Chase Henderson
bfe60b97f9 Add ShulkerDuplicateEvent 2024-01-05 03:50:10 -05:00
Cryptite
bafc86226b Add PlayerShieldDisableEvent
Called whenever a players shield is disabled. This is mainly caused by
attacking players or monsters that carry axes.

The event, while similar to the PlayerItemCooldownEvent, offers other
behaviour and can hence not be implemented as a childtype of said event.
Specifically, cancelling the event prevents the game events from being
sent to the player.

Plugins listening to just the PlayerItemCooldownEvent may not want said
sideeffects, meaning the disable event cannot share a handlerlist with
the cooldown event.
2023-05-01 16:22:43 -05:00
RodneyMKay
12f2768389 Add PlayerPickItemEvent 2021-09-08 22:15:43 +02:00
Moulberry
8bcd04ae9b Add PlayerFailMoveEvent 2023-07-26 20:57:11 +08:00
SageSphinx63920
370dd8fb4c Add whitelist events 2023-05-14 12:56:15 +02:00
by77er
7c2fbd4ab8 Add event for player editing sign 2023-06-10 19:06:24 -04:00
Spottedleaf
7920d9020b Folia scheduler and owned region API
Pulling Folia API to Paper is primarily intended for plugins
that want to target both Paper and Folia without unnecessary
compatibility layers.

Add both a location based scheduler, an entity based scheduler,
and a global region scheduler.

Owned region API may be useful for plugins which want to perform
operations over large areas outside of the buffer zone provided
by the regionaliser, as it is not guaranteed that anything
outside of the buffer zone is owned. Then, the plugins may use
the schedulers depending on the result of the ownership check.
2023-06-17 11:52:41 +02:00
Owen1212055
39c27c3661 Add Shearable API 2021-10-17 15:39:41 -04:00
Noah van der Aa
767d4e3e6f Add CompostItemEvent and EntityCompostItemEvent 2021-08-07 15:11:27 +02:00
Lulu13022002
57ca6b8bcf Add EntityFertilizeEggEvent 2022-06-24 11:56:32 +02:00
Jake Potrebic
4b5bb29329 Add BlockLockCheckEvent 2022-05-21 20:59:56 -07:00
Yannick Lamprecht
896508a541 Player Entity Tracking Events 2022-03-30 18:16:37 +02:00
Noah van der Aa
0232bdcc50 Friction API 2021-09-15 20:40:51 +02:00
Kieran Wallbanks
19743ae5dc Add Tick TemporalUnit 2021-04-02 17:28:58 +01:00
Owen1212055
e21b7b4aa9 Add PrePlayerAttackEntityEvent 2022-09-18 13:10:28 -04:00
Owen1212055
489eece469 Add Moving Piston API 2021-12-04 13:29:45 -05:00
KyGuy2002
fa2c0a5198 Added EntityToggleSitEvent 2022-03-11 15:33:10 +00:00
Jakub Zacek
50d0f88293 Add PlayerInventorySlotChangeEvent 2022-04-24 22:56:31 +02:00
Jake Potrebic
f04c70190e Add EntityPortalReadyEvent 2021-05-12 04:30:53 -07:00
Owen1212055
4eafd09fd9 More Teleport API 2021-09-05 00:36:05 -04:00