Commit Graph
100 Commits
Author SHA1 Message Date
Jake Potrebic c6bdd67d28 more fixes for ItemMeta relating to components 2024-04-27 22:27:51 -07:00
Jake Potrebic c534b3e0ea Fix firework meta NPE
Fixes #10466
2024-04-27 20:57:42 -07:00
Jake Potrebic 57a40dbdd3 remove calls to DoNotUse methods 2024-04-27 18:18:20 -07:00
Jake Potrebic dcbe8f75f2 Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
304e83eb PR-1002: Improve documentation and implementation of getMaxStackSize
e8215ea2 SPIGOT-7638: Library loader does not seem to resolve every dependency
79c595c0 SPIGOT-7637: Bad logic in checking nullability of AttributeModifier slots

CraftBukkit Changes:
91b1fc3f1 SPIGOT-7644: Fix ItemMeta#getAsString
4e77a81e1 SPIGOT-7615: PlayerLeashEntityEvent cancelled eats lead
996f660f3 Do not remove leash knot if leasing to an existing leash knot gets cancelled
f70367d42 SPIGOT-7643: Fix inverted leash event cancelled usage and remove leash knot if no entity gets leashed
7ddb48294 SPIGOT-7640: Abnormal jumping height of wind charge
080c8711e SPIGOT-7639: Incoming plugin channels not working
ad549847e Open a direct connection instead of pinging mojang server to check if it is reachable
38e2926c5 SPIGOT-7365: DamageCause blocked by shield should trigger invulnerableTime
2024-04-27 18:00:01 -07:00
Jake Potrebic 25e7f94c2a fix last test issue 2024-04-27 17:45:30 -07:00
Jake Potrebic 663c8a772f Fix issue with hopppers
Fixes #10464
2024-04-27 17:31:32 -07:00
Jake Potrebic 9230c67a88 improve checking handled tags in itemmeta (#9470) 2024-04-27 17:33:17 -07:00
Jake Potrebic c0b22957f5 proper migration to gamerules for keep spawn loaded distance 2024-04-27 15:50:33 -07:00
Jake Potrebic 31eecaee4a Revert to vanilla handling of LivingEntity#actuallyHurt (#10463) 2024-04-27 14:35:53 -07:00
Jake Potrebic 6c63410ab4 properly check for experimental stuff in generator 2024-04-27 14:32:31 -07:00
Jake Potrebic 4b762a6259 more ItemFlag fixes 2024-04-27 14:32:14 -07:00
Jake Potrebic cdeb62baac fix item flags 2024-04-27 12:17:58 -07:00
Jake Potrebic e600a4de22 improve dumpitem and pgive commands 2024-04-26 23:57:49 -07:00
Jake Potrebic cafa0f3267 bunch of fixes and improvements 2024-04-26 23:17:58 -07:00
Jake Potrebic 77e87218b9 add back hunk to async SavedData IO 2024-04-26 19:33:30 -07:00
Jake Potrebic 1bcdad0118 more fixes 2024-04-26 19:09:42 -07:00
Jake Potrebic 36445ba659 add back missing call to profile fill events 2024-04-26 18:41:54 -07:00
Jake Potrebic d575d43c03 fix adventure converters not using RegistryOps 2024-04-26 18:16:31 -07:00
Jake Potrebic b1f19f295c fix enchantment order issue 2024-04-26 18:06:35 -07:00
Jake Potrebic f0911d4f2d readd old UUID format patch 2024-04-26 17:41:36 -07:00
Jake Potrebic a9b6792b11 fix javadocs for SpawnerEntry$Equipment API 2024-04-26 17:00:26 -07:00
Jake Potrebic 5a55c71491 deprecate our ItemRarity API 2024-04-26 16:43:59 -07:00
Jake Potrebic d0db132328 fix custom potion mixes 2024-04-26 16:17:13 -07:00
Jake Potrebic f673d54842 fix exact choice recipes 2024-04-26 15:25:20 -07:00
Jake Potrebic 6ba0e1048f fix adventure translations 2024-04-26 15:08:35 -07:00
Jake Potrebic 15221cd4ac remove no longer needed patches and fix tests 2024-04-26 14:29:16 -07:00
Jake Potrebic 0cd4c50623 fix some more issues 2024-04-26 11:39:20 -07:00
Jake Potrebic a55b0c8097 fix some issues on the todo list 2024-04-26 09:22:55 -07:00
Jake Potrebic 8a37019dc2 fix chat_type issue 2024-04-26 08:33:00 -07:00
Jake Potrebic 5c514dd900 support patch versions in api-version 2024-04-25 23:29:16 -07:00
Jake Potrebic c9e0e1f9f3 fix issue with item default attribute API 2024-04-25 23:10:38 -07:00
Jake Potrebic e5628d4fc7 fixup loom pattern select event patch 2024-04-25 22:44:49 -07:00
Jake Potrebic 88a3dac057 some more compile fixes 2024-04-25 18:51:28 -07:00
Jake Potrebic 48c586ab9c fixup adventure's book meta handling 2024-04-25 17:46:17 -07:00
Jake Potrebic e83056f93a fixup sus effect entry patches 2024-04-25 17:10:12 -07:00
Jake Potrebic a404f4b9ab address my own comments 2024-04-25 16:24:08 -07:00
Jake Potrebic dc556091df readd fix bee aging patch 2024-04-25 09:06:13 -07:00
Jake Potrebic cbfb3d4f97 update smithing recipe copy data components API 2024-04-25 08:13:36 -07:00
Jake Potrebic aa5add485f work on adventure 2024-04-24 20:14:51 -07:00
Jake Potrebic 21581c8111 955 2024-04-24 16:25:57 -07:00
Jake Potrebic 27c46717f6 405 2024-04-23 23:44:48 -07:00
Jake Potrebic 49787270cb 354 2024-04-23 23:05:14 -07:00
Jake Potrebic ebedfa4da7 301 2024-04-23 22:43:09 -07:00
Jake Potrebic 840f63b25a 253 2024-04-23 19:46:06 -07:00
Jake Potrebic e45f4f85f4 221 2024-04-23 19:21:40 -07:00
Jake Potrebic 9a497c83b8 fix 2 of our javadoc errors 2024-04-23 16:30:24 -07:00
Jake Potrebic 8c0153f78d work on some API stuff 2024-04-23 16:26:24 -07:00
Jake Potrebic 5c6e2be729 work on Adventure patch 2024-04-23 11:32:19 -07:00
Jake Potrebic 7f1e33effe do some work 2024-04-23 11:03:16 -07:00
Jake Potrebic 47ee5579ff Begin update to 1.20.5 2024-04-23 10:02:08 -07:00
Jake Potrebic 659ebace6c More Raid API (#7537) 2024-04-20 12:57:51 -07:00
Jake Potrebic bdfe4c21f6 Add API for ticking fluids (#10435)
* Add API for ticking fluids

* update javadocs
2024-04-19 13:03:32 -07:00
Jake PotrebicandJason Penilla 89528bff42 Update patches to handle vineflower decompiler (#10406)
* Update patches to handle vineflower decompiler

* update patches again to handle inlined simple lambdas

* update vf again and re-apply/rebuild patches

* update patches after removal of verify-merges flag

* fix compile issue

* remove maven local

* fix some issues

* address more issues

* fix collision patch

* use paperweight release

* more fixes

* update fineflower and fix patches again

* add missing comment descriptor

---------

Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2024-04-12 12:14:06 -07:00
Jake Potrebic 7263a87e9c Deprecate several Keyed#getKey methods (#10357)
- Structure (can already be defined inline in datapacks
- PatternType (can be defined inline in 1.20.5 data components)
- MusicInstrument (same as above)
2024-04-07 22:20:51 -07:00
Jake Potrebic 68e86d7297 Updated Upstream (Bukkit/CraftBukkit) (#10379)
Updated Upstream (Bukkit/CraftBukkit)

Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
f02baa38 PR-988: Add World#getIntersectingChunks(BoundingBox)
9321d665 Move getItemInUse up to LivingEntity
819eef73 PR-959: Add access to current item's remaining ticks
c4fdadb0 SPIGOT-7601: Add AbstractArrow#getItem
be8261ca Add support for Java 22
26119676 PR-979: Add more translation keys
66753362 PR-985: Correct book maximum pages and characters per page documentation
c8be92fa PR-980: Improve getArmorContents() documentation
f1120ee2 PR-983: Expose riptide velocity to PlayerRiptideEvent

CraftBukkit Changes:
dfaa89bbe PR-1369: Add World#getIntersectingChunks(BoundingBox)
51bbab2b9 Move getItemInUse up to LivingEntity
668e09602 PR-1331: Add access to current item's remaining ticks
a639406d1 SPIGOT-7601: Add AbstractArrow#getItem
0398930fc SPIGOT-7602: Allow opening in-world horse and related inventories
ffd15611c SPIGOT-7608: Allow empty lists to morph to any PDT list
2188dcfa9 Add support for Java 22
45d6a609f SPIGOT-7604: Revert "SPIGOT-7365: DamageCause blocked by shield should trigger invulnerableTime"
06d915943 SPIGOT-7365: DamageCause blocked by shield should trigger invulnerableTime
ca3bc3707 PR-1361: Add more translation keys
366c3ca80 SPIGOT-7600: EntityChangeBlockEvent is not fired for frog eggs
06d0f9ba8 SPIGOT-7593: Fix sapling growth physics / client-side updates
45c2608e4 PR-1366: Expose riptide velocity to PlayerRiptideEvent
29b6bb79b SPIGOT-7587: Remove fixes for now-resolved MC-142590 and MC-109346
2024-04-06 12:53:39 -07:00
Jake Potrebic 8fa3b24907 [ci skip] move custom brig exception to paper package 2024-03-26 08:38:26 -07:00
Jake Potrebic 3e27ced8ce Clone mutable types in events when changes are discarded (#10333) 2024-03-20 13:42:29 -07:00
Jake Potrebic c47e305c9f Fix DamageSource API (#10307)
Uses the correct entity in the EntityDamageByEntity event
Returns the correct entity for API's DamageSource#getCausingEntity
2024-03-16 11:51:22 -07:00
Jake Potrebic 31997fcd56 Add param to overrides to the correct method is called (#10308) 2024-03-09 15:16:27 -08:00
Jake Potrebic 8b00b9a52d Updated Upstream (Bukkit/CraftBukkit) (#10301)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
7ca2b46c SPIGOT-7594: Fix typo and include missing MinecraftExperimental annotation in Loot Table enum

CraftBukkit Changes:
176c0ad39 Fix copying BlockStates with fields (eg, Banner)
ee685bd2a Fix Camel not standing up when hurt
619936d4b Increase outdated build delay
2024-03-08 15:52:00 -08:00
Jake Potrebic ee3ba92337 Per world ticks per spawn settings (#6891) 2024-03-03 14:53:58 -08:00
Jake Potrebic a2a55e2b27 Deprecate extra ban methods with raw BanEntry (#9580) 2024-03-03 12:54:52 -08:00
Jake Potrebic 1f16b25f9e Fire entity knockback event for ownerless tnt (#7171) 2024-02-16 15:44:43 -08:00
Jake Potrebic e8e83aefff Properly track the changed item from dispense events (#8658) 2024-02-10 13:17:24 -08:00
Jake Potrebic d767c37a54 Fix possible StackOverflowError for some dispenser iteractions (#8524) 2024-02-10 12:17:40 -08:00
Jake Potrebic 4f9f09bb9b Lifecycle Event System (#9629)
* registering stuff event system

* simply by removing a ton of unneeded generics

* separate RegistryEvent and RegistrarEvent

* add logic for removing hooks when a plugin is disabled

* cleanup more

* swap around the way things are registered

* block further hook registrations for JavaPlugin

* Slightly more extensible to support registry mod API

* rename some types

* more moving/renaming

* remove 'hook' name

* Rename to 'lifecycle'

* move more impls for the server

* add priorities

* added lock for bootstrap event registration

* slight refactor to allow 'register anywhere' event types

* Move event type list to server impl

* use builder pattern to create event handler configurations

* add some more javadocs

* fix some issues, slight refactors

* call predicate and method renames

* add owner aware events

* rebased and refactored owner aware events

* add single helper method for registering simple handler

* compile fixes

* check owner and fix generics on register helper

* javadoc fixes and a few type renames

* more javadoc fixes

* move service loader file to correct location

* rename to Monitorable and Prioritizable

* add invalidation system for events after running them

* block reloading plugins in certain situations

* update test plugin

* remove dummy events

* rebase
2024-02-09 12:12:01 -08:00
Jake Potrebic cc0082f248 Properly check if a loot table exists (#10190) 2024-01-27 11:21:18 -08:00
Jake Potrebic a86380bc18 [ci skip] clarify javadocs for Block#getDrops (#10153) 2024-01-27 09:35:09 -08:00
Jake Potrebic b9b956adb8 Add BlockStateMeta#clearBlockState (#10160) 2024-01-23 12:41:47 -08:00
Jake Potrebic fa7d1b668f Updated Upstream (Bukkit/CraftBukkit/Spigot) (#10164)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
63c208dd Remove no longer used import
70be76c7 PR-958: Further clarify deprecation of TAG_CONTAINER_ARRAY
ae21f4ac PR-955: Add methods to place structures with block/entity transformers
e3d960f2 SPIGOT-7547: Remark that Damageable#setAbsorptionAmount() is capped to a specific value
b125516c Fix typo in RecipeChoice.ExactChoice docs
309497c1 Add EntityMountEvent and EntityDismount Event
2fd45ae3 Improve ItemFactory#enchantItem consistency
2b198268 PR-933: Define native persistent data types for lists

CraftBukkit Changes:
771182f70 PR-1327: Add methods to place structures with block/entity transformers
e41ad4c82 SPIGOT-7567: SpawnReason for SNOWMAN is reported as BUILD_IRONGOLEM
76931e8bd Add EntityMountEvent and EntityDismount Event
9b29b21c7 PR-1183: Better handle lambda expression and renaming of classes in Commodore
1462ebe85 Reformat Commodore.java
9fde4c037 PR-1324: Improve ItemFactory#enchantItem consistency
4e419c774 PR-1295: Define native persistent data types for lists
dd8cca388 SPIGOT-7562: Fix Score#getScore and Score#isScoreSet
690278200 Only fetch an online UUID in online mode
1da8d9a53 Fire PreLogin events even in offline mode
2e88514ad PR-1325: Use CraftBlockType and CraftItemType instead of CraftMagicNumbers to convert between minecraft and bukkit block / item representation

Spigot Changes:
864e4acc Restore accidentally removed package-info.java
f91a10d5 Remove obsolete EntityMountEvent and EntityDismountEvent
828f0593 SPIGOT-7558: Deprecate silenceable lightning API as sound is now client-side and cannot be removed
cdc4e035 Remove obsolete patch fetching correct mode UUIDs
49e36b8e Merge related BungeeCord patches
6e87b9ab Remove obsolete firing of PreLogin events in offline mode
5c76b183 Remove redundant patch dealing with exceptions in the crash reporter
3a2219d1 Remove redundant patch logging cause of unexpected exception
2024-01-14 01:46:04 -08:00
Jake Potrebic a5eaf39caf [ci skip] add more comments & move 1 hunk to correct patch 2024-01-13 12:31:02 -08:00
Jake Potrebic fcd5a14216 Use a ConcurrentHashMap for enum mappings for BlockData (#10161)
This API should be thread-safe as there is no world state
2024-01-12 08:25:12 -08:00
Jake Potrebic acaa9f2d3f Log command execution exceptions if debug=true (#10130) 2024-01-11 08:15:17 -08:00
Jake Potrebic 0797dd4643 Fix a borked update of 'Properly handle BlockBreakEvent#isDropItems' (#10134) 2024-01-05 01:07:43 -08:00
Jake Potrebic 4820459600 Fix EntityChangePoseEvent being called during worldgen (#10120) 2024-01-04 12:55:01 -08:00
Jake Potrebic 9bfe2bcce9 Fix cmd permission levels for command blocks (#7404) 2024-01-04 12:37:59 -08:00
Jake Potrebic 6c5ad653e5 Fix untrack event not being called for all 'untracks' (#10110) 2024-01-03 20:57:49 -08:00
Jake Potrebic 9f932e42bd include relative flags in PlayerTeleportEvent (#8190) 2024-01-02 11:42:26 -08:00
Jake Potrebic 324d220679 fix CustomModelData being removed (#10113) 2024-01-02 10:51:09 -08:00
Jake Potrebic 8f3f70d786 Call EntityChangeBlockEvent for cake eating (#10105) 2024-01-02 10:45:36 -08:00
Jake Potrebic 60beb05297 [ci skip] Remove extraneous diff added in 1.20.3 update (#10101) 2024-01-02 10:29:53 -08:00
Jake Potrebic e9e8abc91d Correctly check if bucket dispenses will succeed for event (#10109) 2024-01-02 09:14:42 -08:00
Jake Potrebic ee6a9c50d8 cleanup player death event adventure logic (#10095)
There was a TODO left there regarding the translated death
message being used by plugins to identify the cause of death. This
should be mitigated now because the LegacyComponentSerializer default
implemenation uses our custom flattener which renders vanilla
translatable components to their English representation.
2023-12-29 12:28:58 -08:00
Jake Potrebic e1faa8e814 Call entity_die game event after event cancel check (#10096) 2023-12-29 11:57:32 -08:00
Jake Potrebic 0c4e87fd28 Properly disallow async Player#chat (#8123)
Clarify asynchronous status of AsyncChatEvent
2023-12-28 16:50:06 -08:00
Jake Potrebic e7beaa38ba Add drops to shear events (#5678) 2023-12-28 14:41:07 -08:00
Jake Potrebic cca94c1a21 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#10085)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
0c7aedbc SPIGOT-7554, PR-954: Add DecoratedPotInventory

CraftBukkit Changes:
53ebb05e3 SPIGOT-7554, PR-1323: Add DecoratedPotInventory
33a2d8773 Ensure that PlayerMoveEvent is always fired where applicable
7df18510f SPIGOT-7555: Don't cast ItemFlags to byte
19aec59ea Use provided case for non-existent OfflinePlayers

Spigot Changes:
e7ce55a3 Remove obsolete PlayerMoveEvent improvements
3e5e22c0 Remove obsolete lowercasing of non existent OfflinePlayer names
2023-12-28 12:47:57 -08:00
Jake Potrebic 4d050226c3 Fix global sound event gamerule not being respected (#8727) 2023-12-27 16:33:05 -08:00
Jake Potrebic 5e518056e2 Fix campfire recipes not always outputting full result (#8754) 2023-12-27 15:02:49 -08:00
Jake Potrebic addfcd57a1 Don't fire 2 game events for certain cauldron interactions (#8904) 2023-12-27 14:32:39 -08:00
Jake Potrebic 2461bcfe65 Fix command block async message (again) (#10082) 2023-12-27 01:30:15 -08:00
Jake Potrebic 7ecbd18f48 fix NPE on EntityTeleportEvent getTo (#10016) 2023-12-26 11:22:41 -08:00
Jake Potrebic 3786f007a3 [ci skip] cleanup patch diff from last commit 2023-12-25 16:47:06 -08:00
Jake Potrebic cdcf832673 Update to adventure 4.15 (#10045) 2023-12-25 02:51:44 -08:00
Jake Potrebic 50364f320c Add Registry#getKey (#10066)
Some types that have registries support existing without
being in a registry and therefore have no key. This is part
one of supporting that, adding a Registry#getKey(Object) method
to be able to get the key for an object so we can remove Keyed
from such objects.

This also deprecates Keyed#getKey on TrimMaterial and TrimPattern
as these are the 2 offending types currently in the api.
2023-12-23 13:16:27 -08:00
Jake Potrebic 0c9b5e23ab Fix and add new scoreboard API (#10037) 2023-12-23 11:53:07 -08:00
Jake Potrebic e93ec8f95d Remove 'fix Vanilla Minecart speed' patch (#10068)
The game uses 0.95d now
2023-12-22 17:44:36 -08:00
Jake Potrebic 0ff8861f60 add missing Experimental annotations (#10012) 2023-12-21 13:13:05 -08:00
Jake Potrebic 5ba15732d7 Remove duplicate code in chunk tick iteration (#10056) 2023-12-21 09:15:00 -08:00
Jake Potrebic 9ac075e78e Use correct max stack size in crafter (#10057) 2023-12-21 09:10:28 -08:00