Commit Graph

761 Commits

Author SHA1 Message Date
Jake Potrebic
ada45eba8a Deprecate InvAction#HOTBAR_MOVE_AND_READD 2024-05-25 09:51:07 -07:00
SoSeDiK
4491c7e2ac Add missing fishing event state 2024-05-01 07:44:50 +03: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
Owen1212055
53c5e5da09 Item Mutation Fixes 2024-03-20 20:42:31 -04:00
Jake Potrebic
96f6033450 Clone mutables to prevent unexpected issues
There are lots of locations in the API where mutable
types are not cloned, either on return or when passed
as a parameter and assigned to a field, which can cause
unexpected behaviors. Let this be a lesson to use
immutable types for simple things Location, Vector, and
others.
2024-03-16 11:10:48 -07:00
Jake Potrebic
e18f6c6b55 Fix DamageSource API 2024-03-16 11:21:14 -07:00
Jake Potrebic
27a62b6b53 Add drops to shear events 2021-05-18 12:31:54 -07:00
Jake Potrebic
a933298032 Add missing InventoryType
Upstream did not add a DECORATED_POT inventory type
2023-12-27 16:46:13 -08:00
Jake Potrebic
1ab1d0f10a Experimental annotations change 2023-12-09 11:47:53 -08:00
Tamion
450a42a3fe Expand LingeringPotion API 2023-11-04 23:56:23 +01:00
booky10
4e6ceb54bb Add hand to fish event for all player interactions 2023-07-03 01:55:32 +02:00
Tamion
3c50e35f30 Fix PlayerSwapHandItemsEvent throwing exception when mainhand or offhand set to null 2023-09-25 19:55:51 +02:00
Jake Potrebic
1c0b535949 Add titleOverride to InventoryOpenEvent 2022-03-04 12:45:21 -08:00
Warrior
4b46a36a94 Limit setBurnTime to valid short values 2023-08-18 08:07:38 +02:00
The456gamer
9e3e11d2f2 Expose hand during BlockCanBuildEvent 2023-08-21 14:13:43 +01:00
aerulion
3008a27f33 Expose clicked BlockFace during BlockDamageEvent 2023-08-21 04:36:07 +02:00
by77er
7c2fbd4ab8 Add event for player editing sign 2023-06-10 19:06:24 -04:00
Jake Potrebic
6c1411fec8 Expand PlayerItemMendEvent 2022-01-20 18:11:44 -08:00
Jake Potrebic
216d310a35 Fix HandlerList for InventoryBlockStartEvent subclasses 2023-02-07 08:20:27 -08:00
Jake Potrebic
40c7b09ed4 Improve PortalEvents 2022-12-15 10:33:34 -08:00
Warrior
8636a7d5a4 Add /paper dumplisteners command 2022-11-19 19:46:44 +01:00
Owen1212055
4eafd09fd9 More Teleport API 2021-09-05 00:36:05 -04:00
Jake Potrebic
495ba77d85 Add EntityDyeEvent and CollarColorable interface 2022-03-18 21:16:38 -07:00
HexedHero
6ede3992b9 Add pre-unbreaking amount to PlayerItemDamageEvent 2022-04-10 06:21:19 +01:00
Jake Potrebic
7fae67e6b3 Fix incorrect new blockstate in EntityBreakDoorEvent 2023-07-02 22:14:09 -07:00
Kieran Wallbanks
5468da1b03 Fix NotePlayEvent 2021-06-21 12:33:45 +01:00
Jake Potrebic
546372966a Extend VehicleCollisionEvent, move HandlerList up
Co-authored-by: SoSeDiK <mrsosedik@gmail.com>
2021-12-13 14:35:27 -08:00
dodison
4bfca492a5 Add critical damage API 2021-07-26 17:35:20 +02:00
Jake Potrebic
9550762612 add back EntityPortalExitEvent
Was removed here: a2d787f6eb
2021-05-12 02:49:28 -07:00
Madeline Miller
ec4a7e5d87 Add helpers for left/right click to Action 2021-08-29 17:00:56 +10:00
Jake Potrebic
21af6149df Make EntityUnleashEvent cancellable 2021-01-03 21:25:39 -08:00
Jake Potrebic
957d209cb4 Add PlayerSetSpawnEvent 2021-05-19 18:58:24 -07:00
Jake Potrebic
1284f0bf53 Adds PlayerArmSwingEvent 2021-03-12 19:20:03 -08:00
Jason Penilla
a8e19d139e Add WaterBottleSplashEvent 2022-12-08 10:12:23 -07:00
Jake Potrebic
93e2ecfd49 Add PlayerKickEvent causes 2021-05-15 20:30:34 -07:00
Jake Potrebic
547577ccb6 Add cause to Weather/ThunderChangeEvents 2020-12-02 18:25:31 -08:00
Jake Potrebic
d30a14d638 additions to PlayerGameModeChangeEvent 2021-05-15 10:04:50 -07:00
Alvinn8
8ee512d806 Add Adventure message to PlayerAdvancementDoneEvent 2021-01-08 20:29:58 +01:00
Jake Potrebic
e9c4b62f7e add RespawnFlags to PlayerRespawnEvent 2021-04-22 17:17:54 -07:00
HexedHero
28c7aca637 PlayerMoveEvent Improvements 2021-04-29 10:31:44 +01:00
Jake Potrebic
6293f3ad54 add consumeFuel to FurnaceBurnEvent 2021-04-22 16:45:15 -07:00
Thonk
c6ff2b9aee Add recipe to cook events 2021-01-06 12:05:29 -08:00
BillyGalbreath
65807cfb9b Allow adding items to BlockDropItemEvent 2021-01-20 14:25:26 -06:00
Nassim Jahnke
f1ab420c8a Add dropLeash variable to EntityUnleashEvent 2021-01-29 15:13:04 +01:00
Madeline Miller
f3d8fe46e3 Add API to get exact interaction point in PlayerInteractEvent 2021-01-04 16:40:55 +10:00
Jake Potrebic
3234f24141 Add OBSTRUCTED reason to BedEnterResult 2020-12-24 12:43:30 -08:00
Mariell Hoversholm
7ee931eaf2 Add API for quit reason 2020-11-14 16:19:58 +01:00
William Blake Galbreath
48046af5ef Add PrepareResultEvent / PrepareGrindstoneEvent
Adds a new event for all crafting stations that generate a result slot item

Anvil, Grindstone and Smithing now extend this event

Grindstone is a backwards compat from a previous PrepareGrindstoneEvent
2020-07-03 11:58:56 -05:00
Jake Potrebic
e034549a33 added 2 new TargetReasons for 1.16 mob behavior 2020-07-03 15:05:54 -07:00
LordKorea
20c3b04159 Add and implement PlayerRecipeBookClickEvent 2020-05-11 22:38:10 -04:00