aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2024-05-31Retired ninjabugfix/itemstack-damage-apiBjarne Koll
2024-05-31And a little woosh with the compiler wandBjarne Koll
2024-05-31Formatting issuesBjarne Koll
2024-05-31Split methods instead of overloadBjarne Koll
2024-05-31Prevent internal NPE on ItemStack#damageBjarne Koll
ItemStack#damage internally uses ItemStack#hurtAndBreak, which previously would call a Consumer in case the item broke. Since 1.20.5 the break game event logic however resides in said method and was using the equipment slot passed, which is null in the case of the API ItemStack#damage method. This commit prevents the NPE by first null checking the slot. Addittionally, hurtAndBreak also now checks if the player has infinite materials, e.g. is in creative mode, to prevent damaging the item. As such as filter is undesirable for API calls, this commit also skips this logic in case of an API invocation.
2024-05-31Fire TabCompleteEvent for legacy commands (#10834)Jake Potrebic
2024-05-30Add entity heal API (#10267)TotalledZebra
2024-05-30fix knockback events (#10831)Jake Potrebic
* fix knockback events * squash * handle cancelled event for explosions
2024-05-30Use CommandSourceStack in AsyncPlayerSendCommandsEvent (#10826)Jason Penilla
2024-05-30Fix sending disconnect packet in phases where it doesn't existShane Freeder
2024-05-29Deprecate InvAction#HOTBAR_MOVE_AND_READD (#10784)Jake Potrebic
2024-05-29Extend fishing API (#10634)SoSeDiK
Adds a missing fishing state when the fish is lured and fires an event for it. Also adds a way to control the fish swimming time towards the bobber.
2024-05-29Add registry-related argument types (#10770)Jake Potrebic
* Add registry-related argument types * fix tests
2024-05-29Several fixes and new api for experience merging/stacking (#9242)Jake Potrebic
2024-05-29Flatten namespaced vanilla command alias redirects (#10821)Bjarne Koll
The brigadier command dispatcher is not capable of executing commands that redirect more than one. The exemplary alias 'minecraft:tp' may hence not redirect to 'tp' it instead has to redirect to 'teleport' as 'tp' itself is merely a redirect.
2024-05-29Fix skipping custom block entity tag (#10812)Jake Potrebic
2024-05-29Allow firework effects with no colors (#10814)Jake Potrebic
2024-05-29Use RegistryOps for loadAdvancement (#10799)Jake Potrebic
2024-05-29handle BODY slot for non-mobs (#10822)Jake Potrebic
2024-05-29Fix max temper API for llama (#10823)Lulu13022002
2024-05-28[ci skip] Rebuild patches (#10803)Bjarne Koll
2024-05-28[ci skip] Clean up paperclip build-pr workflow (#10802)Bjarne Koll
2024-05-28Only remove worldgen block entity on changed block (#10794)Bjarne Koll
2024-05-27Fix missing debug traceShane Freeder
2024-05-27Fix Cancelling BlockPlaceEvent calling onRemove (#10773)Tamion
2024-05-26Prevent NPE if hooked entity was cleared (#10712)Jake Potrebic
2024-05-26Fix more item desync when an event is cancelled (#10654)Lulu13022002
2024-05-26Extend Player Interact cancellation to cover Jigsaw blocks (#10719)Cross
2024-05-26Fix BlockStateMeta equals (#10795)Jake Potrebic
2024-05-26Fix integer overflow for lag compensating eating check (#10797)Lulu13022002
2024-05-26fix and cleanup loot table patches (#10100)Jake Potrebic
* fix and cleanup loot table patches * fixes
2024-05-26Clear firework item properly (#10793)Lulu13022002
2024-05-26readd itemstack data sanitization (#10454)Jake Potrebic
* readd itemstack data sanitization * use autocloseable
2024-05-25reset meta block state on BlockStateMeta#setBlockStateJake Potrebic
2024-05-25Fix NPE for color-related metasJake Potrebic
Fixes #10789
2024-05-26Expose anvil cost in the API (#10682)Janet Blackquill
2024-05-25Fix CraftMetaBlockState for data components (#10731)Jake Potrebic
This will go on forever...
2024-05-26Fix a few issues with ItemMeta (#10740)Lulu13022002
2024-05-25[ci skip] Update Player#getListeningPluginChannels Jdoc (#10778)jake-brennan714
2024-05-25Allow to define new map cursor types (#10782)Lulu13022002
2024-05-24Use getter/setter on Mob for equipment drop chances (#10780)TonytheMacaroni
2024-05-24Do not re-wrap vanilla goals (#10751)Shane Freeder
There is no need to rewrap vanilla goals when they're being reregistered, this breaks some expectations around behavior outside of general wasting of resources. Resolves: #10743
2024-05-23Allow using PluginLoader classpath API from Bukkit plugins (#10758)Jason Penilla
Allows using the PluginLoader API without any of the other changes imposed by switching to a paper-plugin.yml. Used by setting paper-plugin-loader in plugin.yml to the class name of your PluginLoader. Also allows skipping the libraries field by setting paper-skip-libraries to true (by default both libraries and jars provided by the PluginLoader are added to the classpath).
2024-05-23Remove incorrect logic for Fireball#setVelocity (#10764)Jake Potrebic
2024-05-23Improve default item attributes API (#10765)Jake Potrebic
2024-05-23Print CommandRegisteredEvent deprecation warnings again (#10756)Jason Penilla
2024-05-23Fix equipment slot and group API (#10767)Jake Potrebic
2024-05-23[ci skip] Move logic in our patches to ItemType/BlockType (#10772)Jake Potrebic
2024-05-22Always show command exception stack traces in logs (#10766)Jake Potrebic
2024-05-22fix default item attributesJake Potrebic