Commit Graph
92 Commits
Author SHA1 Message Date
Jake Potrebic b0a676ba62 Fix ItemFlags
Adds new flag in HIDE_STORED_ENCHANTS which was split
from HIDE_ADDITIONAL_INFO. Adds a migration to account for
this, adding the new flag if the itemstack is old and had the
old flag.
2024-04-27 13:28:17 -07:00
Jake Potrebic 6fedaecd54 Fix SpawnerEntry$Equipment API 2024-04-26 17:00:00 -07:00
Jake Potrebic 6f0bb7dc5f More Raid API 2022-03-04 09:46:40 -08: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 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
Jake Potrebic 17df649613 Add BlockStateMeta#clearBlockState 2024-01-11 12:41:54 -08: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 d513222b59 Improve Registry
Adds Registry#getKey(Object) which should be the
primary way people get the key for an object. Registry
items need to exist without having a key and so
getKey() methods on Keyed objects that have a registry
are marked as Deprecated or Obsolete.
2023-12-20 02:03:10 -08:00
Jake Potrebic 9a78d17d8e Add more scoreboard API 2023-12-16 14:45:46 -08:00
Jake Potrebic 1ab1d0f10a Experimental annotations change 2023-12-09 11:47:53 -08:00
Jake Potrebic 94e488f80d Add Structure check API 2023-03-27 10:20:06 -07:00
Jake Potrebic 1c0b535949 Add titleOverride to InventoryOpenEvent 2022-03-04 12:45:21 -08:00
Jake Potrebic 59b3c1470e More DragonBattle API 2022-12-18 13:40:17 -08:00
Jake Potrebic 86fffa917c Deprecate and replace methods with old StructureType 2022-12-10 17:52:45 -08:00
Jake Potrebic 0d206d5069 API for an entity's scoreboard name
Was obtainable through different methods, but you had to use different
methods depending on the implementation of Entity you were working with.
2023-07-09 11:54:54 -07:00
Jake Potrebic 4a1733efbf API for updating recipes on clients 2021-08-21 17:25:54 -07:00
Jake Potrebic 1ce71b513e Fix BanList API 2023-07-04 11:27:18 -07:00
Jake PotrebicandSoSeDiK 3a91b864bb More Sign Block API
Co-authored-by: SoSeDiK <mrsosedik@gmail.com>
2023-06-23 12:16:35 -07:00
Jake Potrebic fa0ad8f494 Add method to remove all active potion effects 2023-06-17 13:17:20 -07:00
Jake Potrebic 6c1411fec8 Expand PlayerItemMendEvent 2022-01-20 18:11:44 -08:00
Jake Potrebic 26780d3ac6 Fix SpawnEggMeta#get/setSpawnedType 2023-02-26 07:14:19 -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
Jake Potrebic 4b5bb29329 Add BlockLockCheckEvent 2022-05-21 20:59:56 -07:00
Jake Potrebic 345305859e fix Instruments
Add missing instrument enums
fix some wrong javadocs
2022-12-09 01:34:03 -08:00
Jake Potrebic c189c3ba5b ItemStack damage API
Adds methods notify clients about item breaks and
to simulate damage done to an itemstack and all
the logic associated with damaging them
2022-05-08 13:35:58 -07:00
Jake Potrebic f04c70190e Add EntityPortalReadyEvent 2021-05-12 04:30:53 -07:00
Jake Potrebic 495ba77d85 Add EntityDyeEvent and CollarColorable interface 2022-03-18 21:16:38 -07:00
Jake Potrebic 7fae67e6b3 Fix incorrect new blockstate in EntityBreakDoorEvent 2023-07-02 22:14:09 -07:00
Jake Potrebic f9d3155517 Custom Potion Mixes 2021-10-07 14:34:59 -07:00
64f342f5fb Add missing block data API
General purpose patch adding missing getters/setters to BlockData and
its child types.

Co-authored-by: SoSeDiK <mrsosedik@gmail.com>
Co-authored-by: Fabrizio La Rosa <lr.fabrizio@gmail.com>
2021-10-16 22:57:10 -07:00
Jake Potrebic 585c6710fd Configurable sculk sensor listener range 2021-08-19 18:43:16 -07:00
Jake Potrebic 8769e2d5a5 Furnace RecipesUsed API 2022-01-13 15:21:08 -08:00
Jake Potrebic 087b3990d7 Add GameEvent tags 2021-12-18 10:34:21 -08:00
Jake Potrebic 5ac3ad3792 More PotionEffectType API 2021-05-27 21:58:33 -07:00
Jake Potrebic ee1a4b288c System prop for default config comment parsing
Allows for certain legacy plugins to continue to work without changing
by setting `Paper.parseYamlCommentsByDefault` to false
2021-12-30 16:35:56 -08:00
Jake Potrebic fce89ee047 Add API for item entity health 2021-08-28 09:00:35 -07:00
Jake Potrebic dd15ee83b2 Entity powdered snow API 2021-10-24 20:58:52 -07:00
Jake Potrebic 3907f8a544 Improve scoreboard entries 2021-11-04 12:31:45 -07:00
Jake PotrebicandSoSeDiK 546372966a Extend VehicleCollisionEvent, move HandlerList up
Co-authored-by: SoSeDiK <mrsosedik@gmail.com>
2021-12-13 14:35:27 -08:00
Jake Potrebic 1de93777a5 Add hasCollision methods to various places 2021-11-04 11:50:35 -07:00
Jake Potrebic 450f5fe793 Fix issues with mob conversion 2021-10-24 20:29:27 -07:00
Jake Potrebic 8f72ada8c9 Get entity default attributes 2021-08-20 13:03:55 -07:00
Jake Potrebic 9550762612 add back EntityPortalExitEvent
Was removed here: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/a2d787f6ebeb72fa7d5750788221fb9a0d838ac4
2021-05-12 02:49:28 -07:00
Jake Potrebic 34f10b78da Add missing team sidebar display slots 2021-10-01 08:04:43 -07:00
Jake Potrebic b4f3eb5fa1 More CommandBlock API 2021-05-28 21:47:39 -07:00
Jake Potrebic c8e36cb205 Option to prevent data components copy in smithing recipes 2021-09-26 12:57:35 -07:00
Jake Potrebic d445af24a5 Add BlockBreakBlockEvent 2021-01-03 17:58:25 -08:00
Jake Potrebic 1a5fc4f2b3 Change EnderEye target without changing other things 2021-08-21 12:14:00 -07:00
Jake Potrebic 21af6149df Make EntityUnleashEvent cancellable 2021-01-03 21:25:39 -08:00
Jake Potrebic 0efb068743 Added EntityDamageItemEvent 2020-12-22 13:51:06 -08:00
Jake Potrebic 957d209cb4 Add PlayerSetSpawnEvent 2021-05-19 18:58:24 -07:00
Jake Potrebic 83f8fa22d2 Add PlayerSignCommandPreprocessEvent 2021-07-09 17:44:33 -07:00
Jake Potrebic 1284f0bf53 Adds PlayerArmSwingEvent 2021-03-12 19:20:03 -08: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 00ebe90031 Improve item default attribute API 2021-05-08 15:02:00 -07:00
Jake Potrebic f5eeda6d92 Add EntityInsideBlockEvent 2021-05-08 18:02:06 -07:00
bff4794867 More Enchantment API
Co-authored-by: Luis <luisc99@icloud.com>
Co-authored-by: Janet Blackquill <uhhadd@gmail.com>
2021-05-06 19:58:03 -07:00
Jake Potrebic fce24f3b52 ItemStack repair check API 2021-05-15 22:10:50 -07:00
Jake Potrebic d30a14d638 additions to PlayerGameModeChangeEvent 2021-05-15 10:04:50 -07:00
Jake Potrebic 07e76ccd5b Inventory#close 2021-05-11 14:54:20 -07:00
Jake Potrebic e9c4b62f7e add RespawnFlags to PlayerRespawnEvent 2021-04-22 17:17:54 -07:00
Jake Potrebic b1396d8f38 Added PlayerBedFailEnterEvent 2020-12-24 12:27:49 -08:00
Jake Potrebic 6b39120659 More World API 2020-07-07 10:53:22 -07:00
Jake Potrebic d7351ddc36 Added PlayerDeepSleepEvent 2021-04-21 15:58:25 -07:00
Jake Potrebic 411f1ddea7 add get-set drop chance to EntityEquipment 2021-04-22 00:28:20 -07:00
Jake Potrebic 6293f3ad54 add consumeFuel to FurnaceBurnEvent 2021-04-22 16:45:15 -07:00
Jake Potrebic c0e2f67d7c add isDeeplySleeping to HumanEntity 2021-04-08 17:36:15 -07:00
Jake Potrebic 83c4827433 Improve Item Rarity API 2021-03-12 17:09:40 -08:00
Jake Potrebic 07c1829d7f Expand world key API 2021-01-06 00:34:10 -08:00
Jake Potrebic bcd78c9bf2 Add Block#isValidTool
Deprecated for removal
2020-07-06 12:44:23 -07:00
Jake Potrebic d3ff89b33b added PlayerNameEntityEvent 2020-07-05 00:34:24 -07:00
Jake Potrebic de918f498a Add worldborder events 2021-01-04 22:40:26 -08:00
Jake Potrebic fd337f2de1 Added PlayerStonecutterRecipeSelectEvent 2020-11-27 17:13:59 -08:00
Jake Potrebic 0a22b21f70 Added PlayerChangeBeaconEffectEvent 2020-06-24 15:12:18 -06:00
Jake Potrebic 25c065b4b2 Add RegistryAccess for managing registries 2022-03-02 13:36:21 -08:00
Jake Potrebic 4c5a75dc4e Added PlayerLoomPatternSelectEvent 2020-11-25 16:33:42 -08:00
Jake Potrebic f456a79c86 Added PlayerLecternPageChangeEvent 2020-11-23 12:58:16 -08:00
Jake Potrebic 7603b30d74 Added ServerResourcesReloadedEvent 2020-12-02 20:04:16 -08:00
Jake Potrebic 8dbd7442c3 Added WorldGameRuleChangeEvent 2020-12-20 16:41:44 -08:00
Jake Potrebic 87dce6f965 Zombie API - breaking doors 2020-11-18 11:32:15 -08:00
Jake Potrebic ff36991035 Added PlayerTradeEvent
[Amendment: Alexander <protonull@protonmail.com>]
PlayerTradeEvent is used for player purchases from villagers and wandering
traders, but not custom merchants created via Bukkit.createMerchant(). During
discussions in Discord it was decided that it'd be better to add a new event
that PlayerTradeEvent inherits from than change getVillager()'s annotation to
@Nullable, especially since that'd also infringe on the implication of the
event being about villager trades.
2020-07-02 16:10:10 -07:00
Jake Potrebic 3234f24141 Add OBSTRUCTED reason to BedEnterResult 2020-12-24 12:43:30 -08:00
Jake Potrebic 40ac3e15db Beacon API - custom effect ranges 2020-06-24 12:38:15 -06:00
Jake PotrebicandMeFisto94 f610d0b477 Add methods to get translation keys
Co-authored-by: MeFisto94 <MeFisto94@users.noreply.github.com>
2020-08-11 19:17:46 +02:00
Jake Potrebic e034549a33 added 2 new TargetReasons for 1.16 mob behavior 2020-07-03 15:05:54 -07:00
Jake PotrebicandWilliam Blake Galbreath 1cf2aaef30 Improve Block#breakNaturally API
Adds bool param to trigger world particle effects

Adds bool param to trigger exp drops for blocks

Co-authored-by: William Blake Galbreath <Blake.Galbreath@GMail.com>
2020-01-02 12:25:16 -06:00
Jake Potrebic 30e04bfa2f Add Position 2022-03-20 10:42:28 -07:00
Jake Potrebic 4fd928df47 Code Generation
Currently includes generated key holder classes for types
used in the Registry Modification API
2023-05-26 18:14:44 -07:00