Commit graph

432 commits

Author SHA1 Message Date
CraftBukkit/Spigot
9c58e790bc #1353: Fix Structure#place not working as documented with 0 palette
By: Jishuna <joshl5324@gmail.com>
2024-01-31 20:01:58 +11:00
CraftBukkit/Spigot
aca2bf97bb SPIGOT-7572: Bee nests generated without bees
By: DerFrZocker <derrieple@gmail.com>
2024-01-27 14:59:22 +11:00
CraftBukkit/Spigot
7b15562116 SPIGOT-5553, #1336: Add EntityKnockbackEvent
By: Jishuna <joshl5324@gmail.com>
2024-01-27 14:53:41 +11:00
CraftBukkit/Spigot
67ab2cd516 SPIGOT-7568: Call EntityChangeBlockEvent for DecoratedPot
By: Doc <nachito94@msn.com>
2024-01-24 21:49:24 +11:00
CraftBukkit/Spigot
5165e97c74 SPIGOT-7570: PrepareItemCraftEvent#isRepair() always returns false
By: md_5 <git@md-5.net>
2024-01-18 22:19:05 +11:00
CraftBukkit/Spigot
f4f370e55e #1337: Add DragonBattle#setPreviouslyKilled
By: DaFeist <56165444+dafeist-github@users.noreply.github.com>
2024-01-17 18:23:36 +11:00
CraftBukkit/Spigot
48a803d3ec SPIGOT-7567: SpawnReason for SNOWMAN is reported as BUILD_IRONGOLEM
By: md_5 <git@md-5.net>
2024-01-09 19:29:52 +11:00
CraftBukkit/Spigot
eb6041d8f8 Add EntityMountEvent and EntityDismount Event
Adapted from Spigot commit ab1e1a2a5a.

By: md_5 <git@md-5.net>
2024-01-07 08:59:55 +11:00
CraftBukkit/Spigot
8cd8851498 #1295: Define native persistent data types for lists
By: Bjarne Koll <lynxplay101@gmail.com>
2024-01-06 16:03:58 +11:00
CraftBukkit/Spigot
b92cff8a2d Fire PreLogin events even in offline mode
Adapted from Spigot commit 61400aa00c

By: md_5 <git@md-5.net>
2023-12-30 07:48:39 +11:00
CraftBukkit/Spigot
d15575db91 #1325: Use CraftBlockType and CraftItemType instead of CraftMagicNumbers to convert between minecraft and bukkit block / item representation
By: DerFrZocker <derrieple@gmail.com>
2023-12-29 08:36:38 +11:00
CraftBukkit/Spigot
5f42dbf7fe Ensure that PlayerMoveEvent is always fired where applicable
Adapted and improved version of Spigot commit eb9e4c0460

By: md_5 <git@md-5.net>
2023-12-28 07:56:30 +11:00
CraftBukkit/Spigot
d19f0e9b26 Use provided case for non-existent OfflinePlayers
Fixes issues with using scoreboards to provide information via pseudo players being all lowercased.

Ported from Spigot commit e11d481452

By: md_5 <git@md-5.net>
2023-12-26 14:33:31 +11:00
CraftBukkit/Spigot
61052d56b5 #1321: Clean up some stuff which got missed during previous PRs
- Add missing CraftBukkit comment to CommandGive
- Remove no longer needed IRegistryCustom from CraftStructure conversion
- Use setBasePotionType instead of deprecated setBasePotionData

By: DerFrZocker <derrieple@gmail.com>
2023-12-26 07:44:21 +11:00
CraftBukkit/Spigot
fd3e1799d3 SPIGOT-7462: Players no longer drop XP after dying near a Sculk Catalyst
By: DerFrZocker <derrieple@gmail.com>
2023-12-26 07:42:19 +11:00
CraftBukkit/Spigot
a9fb0c70f8 Implement APIs for per world view and simulation distances
By: md_5 <git@md-5.net>
2023-12-23 14:32:49 +11:00
CraftBukkit/Spigot
46c67d7108 SPIGOT-7540, #1312: Add ServerTickManager API
By: Miles Holder <mwholder2005@gmail.com>
2023-12-17 09:30:00 +11:00
CraftBukkit/Spigot
bbb64e5e0e #1238: Remove unnecessary sign ticking
By: Miles Holder <mwholder2005@gmail.com>
2023-12-17 09:29:48 +11:00
CraftBukkit/Spigot
6f023adfe9 MC-264285, SPIGOT-7439, #1237: Fix unbreakable flint and steel is completely consumed while igniting creeper
By: Miles Holder <mwholder2005@gmail.com>
2023-12-17 09:29:44 +11:00
CraftBukkit/Spigot
889ce05e35 SPIGOT-7527, #1310: Add WindCharge#explode()
By: Doc <nachito94@msn.com>
2023-12-12 19:34:37 +11:00
CraftBukkit/Spigot
7656a539b6 SPIGOT-7440, #1292: Fire EntityTeleportEvent for end gateways
By: Jishuna <joshl5324@gmail.com>
2023-12-08 19:35:57 +11:00
CraftBukkit/Spigot
aacf3bd308 SPIGOT-7535: Fix maps not having an ID and also call MapInitializeEvent in more places
By: md_5 <git@md-5.net>
2023-12-08 19:20:05 +11:00
CraftBukkit/Spigot
628e3adf0e SPIGOT-7536: Using Crafter crashes server
By: md_5 <git@md-5.net>
2023-12-07 19:49:43 +11:00
CraftBukkit/Spigot
07a9ff30de Fix formatting issue in previous commit
By: md_5 <git@md-5.net>
2023-12-07 08:41:56 +11:00
CraftBukkit/Spigot
64145dd66d SPIGOT-7534: Error when chunk with decorated pot trying to save
By: md_5 <git@md-5.net>
2023-12-07 08:37:37 +11:00
CraftBukkit/Spigot
bf7ca9b824 SPIGOT-7532: Entity#isValid() returns false after server restart
By: Jishuna <joshl5324@gmail.com>
2023-12-07 08:24:27 +11:00
CraftBukkit/Spigot
8672defea5 Add unique ID to PlayerResourcePackStatusEvent
By: md_5 <git@md-5.net>
2023-12-06 20:27:59 +11:00
CraftBukkit/Spigot
dd8ca5c2dc SPIGOT-6026: Pull PotionEffectType and Enchantment from registry
By: DerFrZocker <derrieple@gmail.com>
2023-12-06 03:40:00 +11:00
CraftBukkit/Spigot
8398e12b34 Update to Minecraft 1.20.3
By: md_5 <git@md-5.net>
2023-12-06 03:40:00 +11:00
CraftBukkit/Spigot
0f6da6b1c8 SPIGOT-7487: entity.remove() on a leash drops a lead item
By: DerFrZocker <derrieple@gmail.com>
2023-12-01 08:01:44 +11:00
CraftBukkit/Spigot
95e4221adf #1266: Add support for virtual entities
By: Jishuna <joshl5324@gmail.com>
2023-11-19 19:03:35 +13:00
CraftBukkit/Spigot
efb9f1bd5c SPIGOT-7520: Attribute LootTableSeed missing for generated containers with attached LootTable
By: DerFrZocker <derrieple@gmail.com>
2023-11-14 20:16:20 +01:00
CraftBukkit/Spigot
85c79bdde0 SPIGOT-7518: Fix NullPointerException when calling Block#applyBoneMeal()
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-11-12 19:09:58 -05:00
CraftBukkit/Spigot
b11f0ec204 #1285: Add PlayerRecipeBookSettingsChangeEvent
By: Jishuna <joshl5324@gmail.com>
2023-11-09 06:43:34 +11:00
CraftBukkit/Spigot
f64dc66a5f #1290: Add methods to get/set evoker fang attack delay
By: Jishuna <joshl5324@gmail.com>
2023-11-09 06:36:06 +11:00
CraftBukkit/Spigot
80d3f8408a SPIGOT-7514, #1289: Add "Enchantment Roll" API to enchant items according to Minecraft mechanics
By: Miles Holder <mwholder2005@gmail.com>
2023-11-09 06:30:23 +11:00
CraftBukkit/Spigot
511d6753cc #1281: Add hit entity/block to events extending ProjectileHitEvent
By: Jishuna <joshl5324@gmail.com>
2023-10-25 18:54:07 +11:00
CraftBukkit/Spigot
0a971d438b SPIGOT-7507: Fall back to world UUIDs if Dimension tag missing or invalid
By: md_5 <git@md-5.net>
2023-10-21 16:25:23 +11:00
CraftBukkit/Spigot
e12eaccce2 SPIGOT-7506: SculkBloomEvent.getBlock() world is null
By: md_5 <git@md-5.net>
2023-10-20 18:49:03 +11:00
CraftBukkit/Spigot
4dc97ffa9d SPIGOT-7503: Remove special handling for minecraft:brand custom channel
By: md_5 <git@md-5.net>
2023-10-14 16:56:17 +11:00
CraftBukkit/Spigot
c4c6bf8a92 #1272: Only allow one entity in CraftItem instead of two
This pr reverts a change made in 2012 which allowed CraftItem to be a also other entities such as an arrow.
I don't see any practical reason why the original change was done, other than to allow plugin developers to do some stuff in a cursed way.
With the introduction of the PlayerPickupArrowEvent in 2016 there is also a way to access the arrow involved in a better way.
Generally I think the current behavior is a bit strange and should be reverted.

By: DerFrZocker <derrieple@gmail.com>
2023-10-06 07:16:11 +11:00
CraftBukkit/Spigot
7380cef545 SPIGOT-7495: Spawning bee entity in asynchronous BlockPopulator causes IllegalStateException - Accessing LegacyRandomSource from multiple threads
By: DerFrZocker <derrieple@gmail.com>
2023-10-03 11:56:23 +02:00
CraftBukkit/Spigot
851acb6496 #1267: Add more lightning API
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-10-03 07:32:55 +11:00
CraftBukkit/Spigot
0c3b8eb4b9 SPIGOT-7496: Failure to load datapacks with multiple identical predicates
By: md_5 <git@md-5.net>
2023-10-02 20:01:30 +11:00
CraftBukkit/Spigot
88114a4558 Fix decompile error affecting javac
By: md_5 <git@md-5.net>
2023-10-02 19:43:59 +11:00
CraftBukkit/Spigot
c651c0a51b SPIGOT-7283, SPIGOT-7318: Add AsyncStructureGenerateEvent and BlockState cloning
By: Lauriichan <laura.endress@playuniverse.org>
2023-09-29 06:54:35 +10:00
CraftBukkit/Spigot
70eb4fdda5 SPIGOT-7490: Fix entity equipment updates
By: md_5 <git@md-5.net>
2023-09-25 07:47:22 +10:00
CraftBukkit/Spigot
fb7dc796d5 SPIGOT-7485: Allow air entity items since required for Vanilla logic
By: md_5 <git@md-5.net>
2023-09-22 07:14:27 +10:00
CraftBukkit/Spigot
4248b8a4d8 #1250: Standardize and centralize Bukkit / Minecraft registry conversion
By: DerFrZocker <derrieple@gmail.com>
2023-09-22 03:02:16 +10:00
CraftBukkit/Spigot
e903417936 Increase diff stability
By: md_5 <git@md-5.net>
2023-09-22 02:57:13 +10:00
CraftBukkit/Spigot
8a3c8cfcd4 Update to Minecraft 1.20.2
By: md_5 <git@md-5.net>
2023-09-22 02:40:00 +10:00
CraftBukkit/Spigot
dc3bd245f7 SPIGOT-7475: Don't fire SculkBloomEvent during world generation
By: DerFrZocker <derrieple@gmail.com>
2023-09-06 19:09:38 +02:00
CraftBukkit/Spigot
4e2ef19474 #1242: Add more Sculk API (bloom, shriek, bloom event)
By: Collin <collinjbarber@gmail.com>
2023-09-06 20:44:19 +10:00
CraftBukkit/Spigot
c8a9b8d25c #1248: Load GameEvent and MusicInstrument from registry
By: DerFrZocker <derrieple@gmail.com>
2023-09-02 12:55:23 +10:00
CraftBukkit/Spigot
a16df1b04c SPIGOT-7467: Add getAddress to RemoteConsoleCommandSender
By: md_5 <git@md-5.net>
2023-08-26 18:19:22 +10:00
CraftBukkit/Spigot
764b9df72a SPIGOT-7465, MC-264979: Fresh installations print NoSuchFileException for server.properties
By: md_5 <git@md-5.net>
2023-08-22 20:51:34 +10:00
CraftBukkit/Spigot
41756b5eb0 #1240: Call BlockGrowEvent for vines that are growing on additional sides of an existing vine block
By: Brokkonaut <hannos17@gmx.de>
2023-08-19 09:43:27 +10:00
CraftBukkit/Spigot
0379c2cfee SPIGOT-7447: Rewrite --forceUpgrade to minimise diff and properly handle CraftBukkit world layout
By: md_5 <git@md-5.net>
2023-08-07 20:16:07 +10:00
CraftBukkit/Spigot
8847a42387 Revert "SPIGOT-7447: Fix --forceUpgrade"
This reverts commit 136f843d31.

By: md_5 <git@md-5.net>
2023-08-07 07:53:30 +10:00
CraftBukkit/Spigot
136f843d31 SPIGOT-7447: Fix --forceUpgrade
By: md_5 <git@md-5.net>
2023-08-05 10:01:59 +10:00
CraftBukkit/Spigot
6d8757cb05 SPIGOT-7396: Add PlayerSignOpenEvent
By: Miles Holder <mwholder2005@gmail.com>
2023-08-05 09:33:42 +10:00
CraftBukkit/Spigot
2a8121eac7 SPIGOT-7063, #1071: Add DragonBattle#initiateRespawn with custom EnderCrystals
By: Doc <nachito94@msn.com>
2023-08-05 09:24:52 +10:00
CraftBukkit/Spigot
fa4400a9a0 #1212: Add PlayerRecipeBookClickEvent
By: Jishuna <joshl5324@gmail.com>
2023-08-02 07:46:19 +10:00
CraftBukkit/Spigot
3666c4aa7e SPIGOT-7441: Fix issue placing certain items in creative/op
By: md_5 <git@md-5.net>
2023-07-29 10:06:05 +10:00
CraftBukkit/Spigot
86a10c9c2c SPIGOT-7435: Add TeleportCause#EXIT_BED
By: md_5 <git@md-5.net>
2023-07-29 09:58:01 +10:00
CraftBukkit/Spigot
223ea107d2 SPIGOT-7349: Player#setDisplayName not working when message/format unmodified
By: md_5 <git@md-5.net>
2023-07-28 18:56:00 +10:00
CraftBukkit/Spigot
1b9d617ddc #1232: Re-add fix for player rotation
By: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
2023-07-25 18:52:51 +10:00
CraftBukkit/Spigot
e00c85fd8c #1233: Remove some old MC bug fixes now fixed in vanilla
By: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
2023-07-24 18:09:23 +10:00
CraftBukkit/Spigot
370e31367c SPIGOT-7429: Fix LEFT_CLICK_AIR not working for passable entities and spectators
By: Collin <collinjbarber@gmail.com>
2023-07-18 21:23:52 +10:00
CraftBukkit/Spigot
475d2e005c SPIGOT-7398: TextDisplay#setInterpolationDuration incorrectly updates the line width
By: md_5 <git@md-5.net>
2023-07-08 13:07:16 +10:00
CraftBukkit/Spigot
8b30feb641 #1226: Fix VehicleEnterEvent not being called for certain entities
By: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
2023-07-04 06:54:09 +10:00
CraftBukkit/Spigot
7f5ff95fe4 Revert bad change to PathfinderGoalSit causing all cats to sit
By: md_5 <git@md-5.net>
2023-07-01 20:56:18 +10:00
CraftBukkit/Spigot
5c8c4bbe5b All smithing inventories are now the new smithing inventory
By: md_5 <git@md-5.net>
2023-07-01 09:35:39 +10:00
CraftBukkit/Spigot
acf9c704ac SPIGOT-7416: SmithItemEvent not firing in Smithing Table
By: md_5 <git@md-5.net>
2023-07-01 09:25:36 +10:00
CraftBukkit/Spigot
60c46c4b52 #1221: Add methods to get/set FallingBlock CancelDrop
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-06-27 07:36:06 +10:00
CraftBukkit/Spigot
b97cc9b99f #1209: Clean up various patches
By: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
2023-06-24 17:15:05 +10:00
CraftBukkit/Spigot
20acc420d8 SPIGOT-7380: Add PlayerInteractEvent#getClickedPosition and ChiseledBookshelf#getSlot
By: Jishuna <joshl5324@gmail.com>
2023-06-17 14:31:40 +10:00
CraftBukkit/Spigot
b0576f313f SPIGOT-7389: Handle setting null items in ChiseledBookshelf Inventory
By: Doc <nachito94@msn.com>
2023-06-17 06:44:22 +10:00
CraftBukkit/Spigot
5480af2bba SPIGOT-7393: Fix new tile entities not loading Bukkit's PersistentDataContainer
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-06-15 20:25:35 +10:00
CraftBukkit/Spigot
289dcffffa SPIGOT-7391: Preserve vanilla sign json where not modified by event
By: md_5 <git@md-5.net>
2023-06-14 18:36:22 +10:00
CraftBukkit/Spigot
ec1bb878f3 Work around issue placing decorated pots
By: md_5 <git@md-5.net>
2023-06-13 19:05:00 +10:00
CraftBukkit/Spigot
f40eac90a3 Update to Minecraft 1.20.1
By: md_5 <git@md-5.net>
2023-06-13 07:00:00 +10:00
CraftBukkit/Spigot
211ccb13d3 SPIGOT-7350: Add methods to get hints from EnchantItemEvent
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-06-12 10:03:07 +10:00
CraftBukkit/Spigot
4c192dd4e7 SPIGOT-7381: Fix NullPointerException when setting item in ChiseledBookshelfInventory snapshot
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-06-12 08:04:28 +10:00
CraftBukkit/Spigot
f800a3801e SPIGOT-7384: player.getLocation() equals PlayerMoveEvent.getTo()
By: md_5 <git@md-5.net>
2023-06-11 20:41:52 +10:00
CraftBukkit/Spigot
a7ce4d1a3f SPIGOT-7382: Player still on fire after respawn
By: md_5 <git@md-5.net>
2023-06-11 17:30:03 +10:00
CraftBukkit/Spigot
0c94630926 #1184: Add setMotd and setMaxPlayers
By: Hannah <salvadin2@gmail.com>
2023-06-11 10:51:11 +10:00
CraftBukkit/Spigot
5301642c90 Implement SpawnerSpawnEvent
By: md_5 <git@md-5.net>
Also-by: Andy Shulman <andy.shulman@hotmail.com>
2023-06-10 07:22:51 +10:00
CraftBukkit/Spigot
82dccdf1a6 SPIGOT-7378: Add BlockDropItemEvent for Suspicious Sand & Gravel drops
By: md_5 <git@md-5.net>
2023-06-09 08:37:09 +10:00
CraftBukkit/Spigot
b68048c094 SPIGOT-7377: Server sends player list twice
By: md_5 <git@md-5.net>
2023-06-09 08:24:31 +10:00
CraftBukkit/Spigot
99be5d2a3c SPIGOT-7375: Fix crash breeding certain entities
By: md_5 <git@md-5.net>
2023-06-08 19:22:25 +10:00
CraftBukkit/Spigot
a2fa8bb79d SPIGOT-7266: Found typo in CraftBukkit package
By: DerFrZocker <derrieple@gmail.com>
2023-06-08 13:40:54 +10:00
CraftBukkit/Spigot
010814803a SPIGOT-7372, SPIGOT-7373: Signs can't be edited, issues with SignChangeEvent
By: md_5 <git@md-5.net>
2023-06-08 12:19:59 +10:00
CraftBukkit/Spigot
605ce98727 SPIGOT-7371: Sign does not open edit text on placement
By: md_5 <git@md-5.net>
2023-06-08 08:03:24 +10:00
CraftBukkit/Spigot
9d740b84b0 Update to Minecraft 1.20
By: md_5 <git@md-5.net>
2023-06-08 01:30:00 +10:00
CraftBukkit/Spigot
a345ec2e35 SPIGOT-7195, SPIGOT-7197: Add DataPack API
By: Doc <nachito94@msn.com>
2023-05-30 19:05:48 +10:00
CraftBukkit/Spigot
456eae08ac SPIGOT-7346: Disallow players from executing commands after disconnecting
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-05-11 07:03:53 +10:00
CraftBukkit/Spigot
ba817be945 SPIGOT-519: Add TNTPrimeEvent
Thanks to Pokechu22 for an earlier implementation

By: Jishuna <joshl5324@gmail.com>
2023-05-03 20:46:43 +10:00
CraftBukkit/Spigot
695e12db3d SPIGOT-7209: Accessors and events for player's exp cooldown
By: FreeSoccerHDX <freesoccerhdx@gmail.com>
2023-04-21 18:46:56 +10:00
CraftBukkit/Spigot
b99d3df2d8 #1181: Consolidate Location conversion code
By: Doc <nachito94@msn.com>
2023-04-19 19:59:19 +10:00