Commit Graph

739 Commits

Author SHA1 Message Date
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
Trigary
0ee773e88b add hand to BlockMultiPlaceEvent 2020-03-01 22:43:34 +01:00
Shane Freeder
d4ef0cde59 PlayerDeathEvent#shouldDropExperience 2019-12-24 00:35:31 +00:00
simpleauthority
9fc26a2efb Amend PlayerInteractAtEntityEvent javadoc for ArmorStands 2019-07-11 10:35:56 -07:00
Aikar
f9af4df79e PlayerDeathEvent#getItemsToKeep
Exposes a mutable array on items a player should keep on death

Example Usage: https://gist.github.com/aikar/5bb202de6057a051a950ce1f29feb0b4
2013-03-11 20:04:34 -04:00
Aikar
2825ece820 Fix Spigot annotation mistakes
while some of these may of been true, they are extreme cases and cause
a ton of noise to plugin developers.

Use ApiStatus.Internal instead of Deprecated for actual internal API
that continues to have use (internally).

These do not help plugin developers if they bring moise noise than value.
2019-03-24 18:39:01 -04:00
Aikar
ded424db46 Fixes and additions to the spawn reason API
Expose an entities spawn reason on the entity.
Pre existing entities will return NATURAL if it was a non
persistenting Living Entity, SPAWNER for spawners,
or DEFAULT since data was not stored.

Additionally, add missing spawn reasons.

Co-authored-by: Aurora <aurora@relanet.eu>
Co-authored-by: Jakub Zacek <dawon@dawon.eu>
2019-03-24 00:21:23 -04:00
MisterVector
452f8cf88b Add PlayerPostRespawnEvent 2018-10-26 21:33:13 -07:00
Shane Freeder
a9d195552e Support cancellation supression of EntityDismount/VehicleExit events"
Entities must be dismounted before teleportation in order to avoid
multiple issues in the server with regards to teleportation, shamefully,
too many plugins rely on the events firing, which means that not firing
these events caues more issues than it solves;

In order to counteract this, Entity dismount/exit vehicle events have
been modified to supress cancellation (and has a method to allow plugins
to check if this has been set), noting that cancellation will be silently
surpressed given that plugins are not expecting this event to not be cancellable.

This is a far from ideal scenario, however: given the current state of this
event and other alternatives causing issues elsewhere, I believe that
this is going to be the best soultion all around.

Improvements/suggestions welcome!
2018-11-18 15:53:43 +00:00
Tassu
6d98fbc47d Implement furnace cook speed multiplier API
Signed-off-by: Tassu <git@tassu.me>
2018-09-13 08:45:01 +03:00
Phoenix616
9bcb238879 Improve death events
This adds the ability to cancel the death events and to modify the sound
an entity makes when dying. (In cases were no sound should it will be
called with shouldPlaySound set to false allowing unsilencing of silent
entities)

It makes handling of entity deaths a lot nicer as you no longer need
to listen on the damage event and calculate if the entity dies yourself
to cancel the death which has the benefit of also receiving the dropped
items and experience which is otherwise only properly possible by using
internal code.
2018-08-21 01:32:28 +01:00
Sotr
318265a167 Add source block constructor and getChangedBlockData() to BlockPhysicsEvent 2018-08-23 16:14:25 +08:00
Aikar
6d3de60244 InventoryCloseEvent Reason API
Allows you to determine why an inventory was closed, enabling plugin developers
to "confirm" things based on if it was player triggered close or not.
2018-07-03 21:52:52 -04:00
Brokkonaut
e95376162f Add entity knockback events
- EntityKnockbackEvent
- EntityPushedByEntityAttackEvent
- EntityKnockbackByEntityEvent

Co-authored-by: aerulion <aerulion@gmail.com>
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2018-06-18 15:40:39 +02:00
Aikar
2961c3844c EntityShootBowEvent consumeArrow and getArrowItem API
Adds ability to get what arrow was shot, and control if it should be consumed.
2013-06-15 19:52:04 -04:00
Minecrell
2eaa723e96 Add extended PaperServerListPingEvent
Add a new event that extends the original ServerListPingEvent
and allows full control of the response sent to the client.
2017-10-11 15:55:38 +02:00
Aikar
bb5e4dd0eb Add more fields to AsyncPreLoginEvent
Co-authored-by: Connor Linfoot <connorlinfoot@me.com>
Co-authored-by: MCMDEV <john-m.1@gmx.de>
2018-03-18 11:43:30 -04:00
Aikar
f229e2c798 Optimize Hoppers 2018-01-18 01:00:27 -05:00
Jason Penilla
7132df4810 AsyncTabCompleteEvent
Let plugins be able to control tab completion of commands and chat async.

This will be useful for frameworks like ACF so we can define async safe completion handlers,
and avoid going to main for tab completions.

Especially useful if you need to query a database in order to obtain the results for tab
completion, such as offline players.

Also Enforces mutability of the existing TabCompleteEvent.

Co-authored-by: Aikar <aikar@aikar.co>
2017-11-26 13:17:09 -05:00
BillyGalbreath
f5829fec2e PlayerPickupItemEvent#setFlyAtPlayer 2017-05-07 06:26:01 -05:00
Sweepyoface
95384179d4 Add UnknownCommandEvent 2017-06-17 18:48:06 -04:00
BillyGalbreath
915a67d444 PlayerAttemptPickupItemEvent 2017-06-11 16:30:37 -05:00
Zach Brown
0c37d20354 Fix upstream javadocs 2017-06-10 16:59:40 -05:00