Commit graph

444 commits

Author SHA1 Message Date
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
CraftBukkit/Spigot
9e30ea471f #1095: Add PlayerSpawnChangeEvent
By: Doc <nachito94@msn.com>
2023-04-17 19:33:17 +10:00
CraftBukkit/Spigot
41bd40bcaa #808: Expand the FishHook API
By: Martoph <sager1018@gmail.com>
2023-04-16 10:10:27 +10:00
CraftBukkit/Spigot
5d28a95165 #1169: Add damage methods to FallingBlock
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-04-13 07:08:26 +10:00
CraftBukkit/Spigot
178a84c8d6 SPIGOT-5217, SPIGOT-6183: Add RespawnReason to PlayerRespawnEvent
By: Jishuna <joshl5324@gmail.com>
2023-04-10 08:26:45 +10:00
CraftBukkit/Spigot
cf3a617ee3 SPIGOT-7315: Bed placement duplicates crops if cancelled
By: DerFrZocker <derrieple@gmail.com>
2023-04-07 10:56:58 +02:00
CraftBukkit/Spigot
ad3da9dbf3 Show clean error for invalidly configured server.properties options
By: md_5 <git@md-5.net>
2023-04-07 08:14:11 +10:00
CraftBukkit/Spigot
48dd61052b Fix UUID not being updated when changing world of MapView
By: Phoenix616 <max@themoep.de>
2023-04-04 19:36:37 +01:00
CraftBukkit/Spigot
7b627056c1 #1164, MC-227255, MC-253819: Fix rotation of beehives and bells
By: Jishuna <joshl5324@gmail.com>
2023-04-04 07:01:54 +10:00
CraftBukkit/Spigot
496189d962 #1160: Add more bell API
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-04-02 14:35:13 +10:00
CraftBukkit/Spigot
df5cb9bc3a #1144: Add more Guardian API, particularly for its laser
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-04-02 13:49:05 +10:00
CraftBukkit/Spigot
ad8f95c3df #1159: Add missing API for explosive minecarts
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-04-02 13:21:31 +10:00
CraftBukkit/Spigot
c48c822440 #1155: Allow getting chunks without generating them and optimize chunk data request for ungenerated chunks
By: DerFrZocker <derrieple@gmail.com>
2023-04-02 13:06:59 +10:00
CraftBukkit/Spigot
26ae05b48f SPIGOT-7313: More accurately edit data on Jukeboxes
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-03-29 19:23:41 +11:00
CraftBukkit/Spigot
8a53e8b4eb SPIGOT-7310: PlayerToggleSneakEvent is not called when a player sneaks while riding an entity
By: md_5 <git@md-5.net>
2023-03-25 11:33:49 +11:00
CraftBukkit/Spigot
4f394499b7 SPIGOT-7316: Cancelling EntityUnmountEvent does not stop the all effects of the unmounting
By: md_5 <git@md-5.net>
2023-03-25 11:26:10 +11:00
CraftBukkit/Spigot
2a51332a0c #1153: Handle teleport reason in spreadplayers command
By: Doc <nachito94@msn.com>
2023-03-23 20:52:34 +11:00
CraftBukkit/Spigot
bc7c41cfbc SPIGOT-7308: Fix NullPointerException when calling Jukebox#setRecord()
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-03-22 14:21:06 -04:00
CraftBukkit/Spigot
c9cdfcc603 SPIGOT-7306: Fix reset of coords in default teleportTo in EntityPlayer
By: Doc <nachito94@msn.com>
2023-03-22 14:43:49 +11:00
CraftBukkit/Spigot
c7648eb04e #1150: Add Sniffer API and handle EntityItemDropEvent
By: Doc <nachito94@msn.com>
2023-03-20 19:03:53 +11:00
CraftBukkit/Spigot
33e9c807c6 SPIGOT-7294: Call EntityDamageEvent for Interaction entity
By: md_5 <git@md-5.net>
2023-03-16 07:15:33 +11:00
CraftBukkit/Spigot
4b03485bd2 SPIGOT-7295: Fix Sniffer data defined in incorrect position
By: md_5 <git@md-5.net>
2023-03-16 06:48:37 +11:00
CraftBukkit/Spigot
28c4b7531f Fix crash with juke boxes
By: md_5 <git@md-5.net>
2023-03-15 18:14:15 +11:00
CraftBukkit/Spigot
71f7114fdb SPIGOT-7291: Fix spurious invert in ender pearl disconnect check
By: md_5 <git@md-5.net>
2023-03-15 04:14:08 +11:00
CraftBukkit/Spigot
40076782ed Update to Minecraft 1.19.4
By: md_5 <git@md-5.net>
2023-03-15 03:30:00 +11:00
CraftBukkit/Spigot
7bf6f20cec SPIGOT-7220: TNT drop rate isn't 100%
By: md_5 <git@md-5.net>
2023-03-04 11:47:05 +11:00
CraftBukkit/Spigot
b6f6246c5d #1136: Add API to allow entities to be invisible by default
Designed to make creating per-player entities easier

By: md_5 <git@md-5.net>
2023-03-04 09:15:52 +11:00
CraftBukkit/Spigot
14206127d6 #1119: Add HopperInventorySearchEvent to select the Inventory that the Hopper pulls/pushes into
By: James Peters <email@jamesdpeters.com>
2023-03-04 09:05:17 +11:00
CraftBukkit/Spigot
c8aa873369 SPIGOT-7261: Add AsyncStructureSpawnEvent
By: Lauriichan <laura.endress@syntaxphoenix.com>
2023-03-04 08:36:00 +11:00
CraftBukkit/Spigot
ed2f6b4efc #1142: Calculate explosion damage separately for each affected EntityComplexPart
Currently the Ender Dragon takes roughly 3x the explosion damage when compared to vanilla 1.19.3. This is caused by a single damage value being calculated for the EntityEnderDragon and then being uniformly applied to every EntityComplexPart belonging to that dragon.

This is resolved by restoring the vanilla behavior of calculating explosion damage separately for each EntityComplexPart.

By: Jacob Martin <jjm_223@hotmail.com>
2023-02-27 20:34:19 +11:00
CraftBukkit/Spigot
9cb4cf919d SPIGOT-7262: Improve visibility API
By: md_5 <git@md-5.net>
2023-02-16 19:45:56 +11:00
CraftBukkit/Spigot
db08041df9 SPIGOT-7224: Add events for brewing stands and campfires starting their actions
By: FreeSoccerHDX <freesoccerhdx@gmail.com>
2023-02-05 11:06:25 +11:00
CraftBukkit/Spigot
c3fa9fc5b8 SPIGOT-7248: Bone mealing grass triggers piston block update detector
By: md_5 <git@md-5.net>
2023-01-31 19:44:37 +11:00
CraftBukkit/Spigot
fed3e5b5bc SPIGOT-7239: Getter/setter for player's enchantment seed
By: FreeSoccerHDX <freesoccerhdx@gmail.com>
2023-01-28 11:55:40 +11:00
CraftBukkit/Spigot
3b6d547a25 SPIGOT-7244: Unable to open Shulker Inventory when more than 8 blocks away
By: md_5 <git@md-5.net>
2023-01-28 11:43:55 +11:00
CraftBukkit/Spigot
a7effc38ed SPIGOT-7236: Bone meal doesn't increase use statistic
By: md_5 <git@md-5.net>
2023-01-21 11:00:43 +11:00
CraftBukkit/Spigot
a5b2050ee5 #1129: Fix state corruption while handling explosion damage on EntityComplexPart
An IllegalStateException may occur when an entity is damaged by fire or a potion effect immediately after an EntityComplexPart is damaged by an explosion.

This is fixed by performing the instanceof EntityComplexPart check prior to setting CraftEventFactory.entityDamage.

By: Jacob Martin <jjm_223@hotmail.com>
2022-12-29 14:06:51 +11:00
CraftBukkit/Spigot
b718d5f0b0 SPIGOT-7218: Player's outer layer of skin disappears after respawn
By: md_5 <git@md-5.net>
2022-12-27 16:04:45 +11:00
CraftBukkit/Spigot
be664f5cc4 #1125: Add support for NoteBlock sounds in Skulls
By: Doc <nachito94@msn.com>
2022-12-23 12:26:06 +11:00
CraftBukkit/Spigot
bd71072036 SPIGOT-7210: Fix structures in custom worlds
By: md_5 <git@md-5.net>
2022-12-16 11:13:10 +11:00
CraftBukkit/Spigot
eb88aa7b90 SPIGOT-7207: WorldCreator creates world as super flat even when normal is specified
By: md_5 <git@md-5.net>
2022-12-14 13:47:32 +11:00
CraftBukkit/Spigot
4fcfe1390d #1123: Add PrepareGrindstoneEvent
By: FreeSoccerHDX <freesoccerhdx@gmail.com>
2022-12-13 19:28:47 +11:00
CraftBukkit/Spigot
8fa77efef6 SPIGOT-7204: Add TeleportCause#DISMOUNT
By: md_5 <git@md-5.net>
2022-12-13 19:22:46 +11:00
CraftBukkit/Spigot
c0d9b8db7c SPIGOT-7192: Call PlayerInteractEvent with Action.LEFT_CLICK_AIR if the entity interacted is hidden to the player
By: Doc <nachito94@msn.com>
2022-12-13 18:54:22 +11:00
CraftBukkit/Spigot
0cb9e6122e SPIGOT-7200: CreatureSpawnEvent is called with incorrect SpawnReason when using spawn eggs
By: md_5 <git@md-5.net>
2022-12-10 21:48:22 +11:00
CraftBukkit/Spigot
8b26bb8f3e Update to Minecraft 1.19.3
By: md_5 <git@md-5.net>
2022-12-08 03:00:00 +11:00
CraftBukkit/Spigot
7daeaa49a5 SPIGOT-7191: TNT minecart explosions crash the server
By: md_5 <git@md-5.net>
2022-12-02 08:52:54 +11:00
CraftBukkit/Spigot
fb99448954 SPIGOT-7184: ExplosionPrimeEvent not called for ExplosiveMinecart
By: md_5 <git@md-5.net>
2022-11-20 12:10:31 +11:00
CraftBukkit/Spigot
d3a49598fe SPIGOT-7179: PortalCreateEvent doesn't fire for players
By: Doc <nachito94@msn.com>
2022-11-06 18:14:38 +11:00
CraftBukkit/Spigot
814c67ace8 SPIGOT-7171: Ability to get the IP/hostname players are requesting status of
By: md_5 <git@md-5.net>
2022-10-28 20:19:11 +11:00
CraftBukkit/Spigot
a8d96f30a4 SPIGOT-7177: Certain blocks don't call BlockCanBuildEvent
By: md_5 <git@md-5.net>
2022-10-28 20:07:09 +11:00
CraftBukkit/Spigot
159ae52462 #1107: Add getHand() to all relevant events
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-10-02 09:07:14 +11:00
CraftBukkit/Spigot
34ab403aa0 SPIGOT-7045: Ocelots never spawn with babies with spawn reason OCELOT_BABY
By: DerFrZocker <derrieple@gmail.com>
2022-09-28 20:09:43 +10:00
CraftBukkit/Spigot
b42b04fecd SPIGOT-2620: Add Player#sendBlockChanges()
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-09-24 11:05:14 +10:00
CraftBukkit/Spigot
c397b790df SPIGOT-7152: Handle hand item changing during air interact event
By: md_5 <git@md-5.net>
2022-09-12 19:27:14 +10:00
CraftBukkit/Spigot
42e5db32af SPIGOT-7154: Players get kicked when interacting with a conversation
By: md_5 <git@md-5.net>
2022-09-12 19:15:46 +10:00
CraftBukkit/Spigot
7d96f4be6d SPIGOT-3842: Add Player#fireworkBoost() and expand Firework API
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-09-12 19:04:24 +10:00
CraftBukkit/Spigot
d41367ee6d #1100: Add methods to get sounds from entities
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-09-11 22:24:15 +10:00
CraftBukkit/Spigot
ccb7421c43 SPIGOT-5607: PlayerInteractEvent Left-Click Bug
By: DerFrZocker <derrieple@gmail.com>
2022-08-30 21:50:53 +10:00
CraftBukkit/Spigot
8f8c4a60b5 SPIGOT-5761: initSettings is not a recognized option
By: DerFrZocker <derrieple@gmail.com>
2022-08-30 21:50:50 +10:00
CraftBukkit/Spigot
75dd67a23b SPIGOT-7112: Mobs added 1.17 and after do not create an EntityTargetEvent properly
By: Doc <nachito94@msn.com>
2022-08-16 20:00:57 +10:00
CraftBukkit/Spigot
cfd23ec524 SPIGOT-7079: Allays don't call EntityTargetEvent on ground items
By: Doc <nachito94@msn.com>
2022-08-16 19:53:20 +10:00
CraftBukkit/Spigot
9c845eac07 SPIGOT-7136: Cancelling PlayerInteractEntityEvent with the Allay desyncs
By: md_5 <git@md-5.net>
2022-08-14 11:27:22 +10:00
CraftBukkit/Spigot
8b2749a446 SPIGOT-7137: StructureGrowEvent isFromBonemeal and getPlayer have incorrect values
By: md_5 <git@md-5.net>
2022-08-14 10:54:23 +10:00
CraftBukkit/Spigot
5fa8a6d631 SPIGOT-7089: Crash when command blocks attempt to load worlds
By: md_5 <git@md-5.net>
2022-08-14 10:46:41 +10:00
CraftBukkit/Spigot
ba6d980d80 SPIGOT-7122: New Allay Methods from 1.19.1
By: Doc <nachito94@msn.com>
2022-08-08 21:39:21 +10:00
CraftBukkit/Spigot
808a4dedfe Update to Minecraft 1.19.2
By: md_5 <git@md-5.net>
2022-08-06 07:40:00 +10:00
CraftBukkit/Spigot
0b6cdcc0c4 SPIGOT-7127: /say doesn't work from console
By: md_5 <git@md-5.net>
2022-08-01 22:07:48 +10:00
CraftBukkit/Spigot
f8db65033c Update to Minecraft 1.19.1
By: md_5 <git@md-5.net>
2022-07-28 04:00:00 +10:00
CraftBukkit/Spigot
7c33b52741 #1091: Fix exit position in entity travel with portals
By: Doc <nachito94@msn.com>
2022-07-25 18:00:57 +10:00
CraftBukkit/Spigot
35388a73b0 SPIGOT-7095: StructureGrowEvent doesn't fire for mangrove propagules growing to a tree
By: md_5 <git@md-5.net>
2022-07-10 14:12:30 +10:00
CraftBukkit/Spigot
2f0d31aa17 SPIGOT-7083: Add Boat.WoodenType, Boat.Status; deprecate TreeSpecies
By: Doc <nachito94@msn.com>
2022-07-05 20:40:35 +10:00
CraftBukkit/Spigot
60fb93349f SPIGOT-1729, SPIGOT-7090: Keep precision in teleportation between worlds
By: Doc <nachito94@msn.com>
2022-07-02 12:26:55 +10:00
CraftBukkit/Spigot
23815db283 SPIGOT-7078: Add EntityPotionEffectEvent.Cause#WARDEN
By: Doc <nachito94@msn.com>
2022-06-23 20:34:34 +10:00
CraftBukkit/Spigot
c6f488dfd5 SPIGOT-7072: Call events for stepping on sculk sensors and sculk shriekers
By: BlackHole <black-hole@live.com>
2022-06-23 20:25:36 +10:00
CraftBukkit/Spigot
6e92592b55 SPIGOT-7068: SKULK and SKULK_VEIN BlockSpreadEvents Still do not reference the correct source (SKULK_CATALYST)
By: DerFrZocker <derrieple@gmail.com>
2022-06-19 21:48:24 +10:00
CraftBukkit/Spigot
9fdd99d4ce SPIGOT-7066: Fix custom END worlds not generating DragonBattle
By: Doc <nachito94@msn.com>
2022-06-18 21:06:59 +10:00
CraftBukkit/Spigot
30fe2b464e SPIGOT-2420: Can't set exp drops for EnderDragon death
By: DerFrZocker <derrieple@gmail.com>
2022-06-18 20:59:19 +10:00
CraftBukkit/Spigot
40a58283ca #1067: Add preview chat option in ServerListPingEvent
By: Doc <nachito94@msn.com>
2022-06-18 20:55:26 +10:00
CraftBukkit/Spigot
0d983f9b9a SPIGOT-7060: SCULK and SCULK_VEIN BlockSpreadEvents do not reference the correct source
By: md_5 <git@md-5.net>
2022-06-14 21:21:46 +10:00
CraftBukkit/Spigot
8a00d6f5d1 #1070: Add SpawnReason and TransformReason for Tadpole metamorphosis into Frog
By: Doc <nachito94@msn.com>
2022-06-13 15:24:58 +10:00
CraftBukkit/Spigot
52f9281656 #1065: Add missing calls for BlockSpreadEvent when Sculk spreads
By: Brokkonaut <hannos17@gmx.de>
2022-06-11 13:20:38 +10:00
CraftBukkit/Spigot
46523c1525 SPIGOT-7051: Worldgen API does not run vanilla noise generation when shouldGenerateNoise is true
By: DerFrZocker <derrieple@gmail.com>
2022-06-10 19:08:36 +10:00
CraftBukkit/Spigot
766668f0db SPIGOT-7041: Custom BiomeProvider not used when world set to type FLAT
By: md_5 <git@md-5.net>
2022-06-10 11:08:00 +10:00
CraftBukkit/Spigot
d9d74754ba SPIGOT-7043: EnderChest does not implement Lidded
By: md_5 <git@md-5.net>
2022-06-10 10:57:43 +10:00
CraftBukkit/Spigot
29db051e6e SPIGOT-7048: addPassenger() not working when vehicle is player
By: md_5 <git@md-5.net>
2022-06-10 10:39:19 +10:00
CraftBukkit/Spigot
79086ef520 SPIGOT-7003: Add missing PlayerAnimationType
By: Doc <nachito94@msn.com>
2022-06-09 21:30:25 +10:00
CraftBukkit/Spigot
25f3b50f6b Update to Minecraft 1.19
By: md_5 <git@md-5.net>
2022-06-08 02:00:00 +10:00
CraftBukkit/Spigot
0fb296468e SPIGOT-7025: Use existing item in hand for ranged Drowned attack
By: Doc <nachito94@msn.com>
2022-06-05 16:30:03 +10:00
CraftBukkit/Spigot
462a5fddbf SPIGOT-7009: Stuck on "Loading terrain..." after disconnecting on respawn screen
By: DerFrZocker <derrieple@gmail.com>
2022-06-03 09:19:53 +10:00
CraftBukkit/Spigot
77f366d383 SPIGOT-1807: PlayerTeleportEvent is called twice
By: DerFrZocker <derrieple@gmail.com>
2022-05-24 20:45:57 +10:00
CraftBukkit/Spigot
5e503c9e28 SPIGOT-6948: Motion from Explosion after Respawn
By: DerFrZocker <derrieple@gmail.com>
2022-05-17 19:22:58 +10:00
CraftBukkit/Spigot
aba0972e9a #1045: Revert changes to persistence required checks
By: DerFrZocker <derrieple@gmail.com>
2022-05-03 23:13:03 +10:00
CraftBukkit/Spigot
465b2801f1 SPIGOT-7010: Changing dropper item results in using dispensing behaviour
By: md_5 <git@md-5.net>
2022-04-28 19:16:28 +10:00
CraftBukkit/Spigot
ed0354be30 SPIGOT-6992: Add LimitedLife/LifeTicks/Bound APIs to Vex
By: Doc <nachito94@msn.com>
2022-04-21 06:45:42 +10:00
CraftBukkit/Spigot
94eb19b9fc Pass in SpawnReason rather than boolean
By: md_5 <git@md-5.net>
2022-04-18 11:05:15 +10:00
CraftBukkit/Spigot
14aabc2648 SPIGOT-7001: Fix entity already exists in CraftWorld#spawnFallingBlock
By: Doc <nachito94@msn.com>
2022-04-18 11:05:12 +10:00
CraftBukkit/Spigot
ef79686997 #1033: Add Villager#zombify
By: Doc <nachito94@msn.com>
2022-04-15 13:48:55 +10:00
CraftBukkit/Spigot
9340d95f92 SPIGOT-6990: Fix setRepairCost(0) in Anvil
By: Doc <nachito94@msn.com>
2022-04-09 09:42:11 +10:00
CraftBukkit/Spigot
b0e366dc99 SPIGOT-6829: Add per-player world border API
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-04-09 09:39:33 +10:00
CraftBukkit/Spigot
6cd6b91c36 Remove broken quickMoveStack implementation
By: md_5 <git@md-5.net>
2022-04-04 20:17:00 +10:00
CraftBukkit/Spigot
8ea55f306a SPIGOT-6973: Setting biome calls String#intern for every biome placed
By: md_5 <git@md-5.net>
2022-04-03 09:20:16 +10:00
CraftBukkit/Spigot
c9a265249c #1039: Use correct ops in GeneratorSettings
By: Martoph <sager1018@gmail.com>
2022-03-27 16:24:09 +11:00
CraftBukkit/Spigot
813ab8f174 #1038: Removed the no longer needed getChunkUnchecked method from ChunkProviderServer.
This method was added in 373ed1ddd5 to fix SPIGOT-5228. But since Minecraft 1.17 changed how entities are added and removed from chunks, this method has no longer been used.

By: blablubbabc <lukas@wirsindwir.de>
2022-03-27 16:24:09 +11:00
CraftBukkit/Spigot
475d10469d SPIGOT-6980: Since 1.18.2, World#isChunkLoaded returned false for chunks that have just been loaded (e.g. inside ChunkLoadEvent).
Some changes of the 1.18.2 update have been reverted to resolve this regression.

By: blablubbabc <lukas@wirsindwir.de>
2022-03-27 16:24:06 +11:00
CraftBukkit/Spigot
f046a30653 SPIGOT-5140: Call EntityChangeBlockEvent when a ChorusFlower is destroyed by a projectile
By: Brokkonaut <hannos17@gmx.de>
2022-03-21 13:17:54 +11:00
CraftBukkit/Spigot
6796896e63 SPIGOT-3034: PlayerKickEvent.setLeaveMessage(String) doesn't actually do anything
By: DerFrZocker <derrieple@gmail.com>
2022-03-16 19:49:07 +11:00
CraftBukkit/Spigot
85cc664060 SPIGOT-6138, SPIGOT-6415: Don't call CreatureSpawnEvent after cross-dimensional travel
By: DerFrZocker <derrieple@gmail.com>
2022-03-13 07:48:22 +11:00
CraftBukkit/Spigot
06bac38719 SPIGOT-2942: give command fires PlayerDropItemEvent, cancelling it causes Item Duplication
By: DerFrZocker <derrieple@gmail.com>
2022-03-11 21:47:13 +01:00
CraftBukkit/Spigot
1a135e792f SPIGOT-6962: Call EntityChangeBlockEvent when when FallingBlockEntity starts to fall
By: BlackHole <black-hole@live.com>
2022-03-11 16:24:02 +11:00
CraftBukkit/Spigot
ad484e5f73 SPIGOT-6959: Make /loot command ignore empty items for spawn
By: Doc <nachito94@msn.com>
2022-03-08 07:25:44 +11:00
CraftBukkit/Spigot
390618e170 SPIGOT-6956: Reduce differences caused by setKeepSpawnInMemory(false)
By: md_5 <git@md-5.net>
2022-03-04 18:53:19 +11:00
CraftBukkit/Spigot
9ee989ea81 Update to Minecraft 1.18.2
By: md_5 <git@md-5.net>
2022-03-01 02:00:00 +11:00
CraftBukkit/Spigot
2271fc314d SPIGOT-6900, SPIGOT-6330: Make /difficulty command per-world
By: Doc <nachito94@msn.com>
2022-02-21 11:59:30 +11:00
CraftBukkit/Spigot
8216743085 SPIGOT-6936: Cancelling EntityAirChangeEvent doesn't stop player's bubbles from decreasing client side
By: md_5 <git@md-5.net>
2022-02-20 09:25:32 +11:00
CraftBukkit/Spigot
8d542f0b21 SPIGOT-6937: Ramming goat does not throw EntityTargetLivingEntityEvent
By: md_5 <git@md-5.net>
2022-02-20 09:07:37 +11:00
CraftBukkit/Spigot
c48241fce5 SPIGOT-6934: Bring plugin chunk tickets back in line with forceload tickets
By: md_5 <git@md-5.net>
2022-02-20 08:55:27 +11:00
CraftBukkit/Spigot
b9534e1c48 #1009: Add Furnace#getRecipesUsed
By: Doc <nachito94@msn.com>
2022-02-15 18:48:54 +11:00
CraftBukkit/Spigot
77b8e4803a #1010: Add PDC to World
By: DerFrZocker <derrieple@gmail.com>
2022-02-15 09:36:00 +11:00
CraftBukkit/Spigot
314b83ffae SPIGOT-6918: Add SpawnCategory API and configurations for Axolotls
By: Doc <nachito94@msn.com>
2022-02-07 18:47:27 +11:00
CraftBukkit/Spigot
f01afaf08f Don't send updates over large distances
By: md_5 <git@md-5.net>
2022-02-07 08:35:20 +11:00
CraftBukkit/Spigot
765eadbac1 SPIGOT-6782: EntityPortalEvent should not destroy entity when setTo() uses same world as getFrom()
By: DerFrZocker <derrieple@gmail.com>
2022-02-05 18:51:46 +01:00
CraftBukkit/Spigot
9523f87f1c SPIGOT-6917: Use main scoreboard for /trigger
Restores pre-1.13 behaviour. See linked ticket for further discussion.

By: md_5 <git@md-5.net>
2022-02-02 08:59:18 +11:00
CraftBukkit/Spigot
d5e124a72d Clean up callBlockDamageEvent
By: md_5 <git@md-5.net>
2022-02-02 08:56:24 +11:00
CraftBukkit/Spigot
e664c2bf5f SPIGOT-6910: Add BlockDamageAbortEvent
By: FreeSoccerHDX <unconfigured@null.spigotmc.org>
2022-02-02 08:56:23 +11:00
CraftBukkit/Spigot
e2b1313f00 #1004: Call WorldInitEvent before any chunks are generated
By: DerFrZocker <derrieple@gmail.com>
2022-02-01 08:13:13 +11:00
CraftBukkit/Spigot
2fb7e5202f #1003: Fix cancellation of TradeSelectEvent
By: pop4959 <pop4959@gmail.com>
2022-01-29 09:27:01 +11:00
CraftBukkit/Spigot
f46c4e64ea SPIGOT-6890: Add repair cost amount in AnvilInventory
By: Doc <nachito94@msn.com>
2022-01-26 09:30:35 +11:00
CraftBukkit/Spigot
b80113b447 SPIGOT-6907: Oxygen does not restore up to value set by LivingEntity#setMaximumAir()
By: DerFrZocker <derrieple@gmail.com>
2022-01-23 09:06:19 +11:00
CraftBukkit/Spigot
a8b86ea421 #994: Fix changing world in portal events not updating used world border
Also clamp the event's target location to the world border

By: Phoenix616 <max@themoep.de>
2022-01-20 18:36:14 +11:00
CraftBukkit/Spigot
ce2ac2868b SPIGOT-6888: Add SpawnReason for Vex spawned by Evokers
By: Doc <nachito94@msn.com>
2022-01-14 10:55:59 +11:00
CraftBukkit/Spigot
602f8cb433 #989: Add PDC to Structures
By: Martoph <sager1018@gmail.com>
2022-01-07 09:43:05 +11:00
CraftBukkit/Spigot
46f0dde817 SPIGOT-5339, SPIGOT-6252, SPIGOT-6777: Only cancel knockback if the damage event was canceled
By: DerFrZocker <derrieple@gmail.com>
2022-01-03 18:07:01 +01:00
CraftBukkit/Spigot
cc34358a3e SPIGOT-6496: /time functions affect entire server, not just the origin world
By: DerFrZocker <derrieple@gmail.com>
2022-01-03 08:29:31 +11:00
CraftBukkit/Spigot
f5b1ea90e2 SPIGOT-6278: Persistent piglins count towards mob cap
By: md_5 <git@md-5.net>
2022-01-02 11:45:52 +11:00
CraftBukkit/Spigot
1fa87773be #374: Add isJohnny / setJohnny for Vindicator
By: Matthew <stteg@hotmail.com>
2022-01-01 09:58:04 +11:00
CraftBukkit/Spigot
179dbe9592 #373: Add trap related methods to SkeletonHorse
By: Matthew <stteg@hotmail.com>
2022-01-01 09:58:04 +11:00
CraftBukkit/Spigot
7a54f9da31 SPIGOT-5766: The VillagerReplenishTradeEvent is now called when a villager restocks its trades.
By: blablubbabc <lukas@wirsindwir.de>
2021-12-25 10:14:17 +11:00
CraftBukkit/Spigot
aa53cef96f SPIGOT-5627: Leads vanish when transporting leashed entities through a Nether portal
By: DerFrZocker <derrieple@gmail.com>
2021-12-25 09:39:27 +11:00
CraftBukkit/Spigot
28ec7a3566 SPIGOT-6859: PlayerInteractEntityEvent#setCancelled desync with Axolotls
By: Doc <nachito94@msn.com>
2021-12-22 08:04:07 +11:00
CraftBukkit/Spigot
3736fd83de SPIGOT-6836: Add more API methods in MerchantRecipe
By: Doc <nachito94@msn.com>
2021-12-18 11:44:34 +11:00
CraftBukkit/Spigot
94c2fa1b14 SPIGOT-6852: BlockReceiveGameEvent#getBlock returning wrong block
By: md_5 <git@md-5.net>
2021-12-14 07:52:43 +11:00
CraftBukkit/Spigot
ef17571a38 SPIGOT-6851: removeRecipe not unregistering recipe ID
By: md_5 <git@md-5.net>
2021-12-13 11:25:22 +11:00
CraftBukkit/Spigot
667cb32115 Update to Minecraft 1.18.1
By: md_5 <git@md-5.net>
2021-12-11 00:11:02 +11:00
CraftBukkit/Spigot
35fdc9103d SPIGOT-6831: Fix llama strength crash
By: md_5 <git@md-5.net>
2021-12-06 15:15:09 +11:00
CraftBukkit/Spigot
24b8f3c641 #971: Remove strong chunk reference in PDC
A previous fix for SPIGOT-6814 implemented a callback function for the
PDC implementation that could be set to actively define a chunk as
unsaved, allowing chunks that have not been mutated through block
changes to still require saving if the chunks pdc was mutated.

This implementation however would pass a callback that references the
chunk access internally, meaning the PDC now actively holds onto a
callback that holds a reference to the entire chunk.

Aditionally, this change also impacted the pdc for item metas and
entities for really no reason whatsoever.

This commit re-implements the fix by introducing a new child of the pdc
implementation that the chunk now uses as its pdc. This specific
implementation maintains a dirty flag that is set to `true` on any form
of mutation and set back to false by the chunk that owns the PDC
whenever the chunk itself is flag as no longer dirty.

By: Bjarne Koll <lynxplay101@gmail.com>
2021-12-05 08:52:51 +11:00
CraftBukkit/Spigot
6646c417c5 Purge hidden entities on unload too
By: md_5 <git@md-5.net>
2021-12-04 08:23:26 +11:00
CraftBukkit/Spigot
4f6a5feac8 #967: Store last lava contact location for events
By: Rafael S. M. Santos <eu@rafaelsms.com>
2021-12-04 08:06:32 +11:00
CraftBukkit/Spigot
77f4cb35ff SPIGOT-6833: Do not drop items into unrestricted world during world generation
By: md_5 <git@md-5.net>
2021-12-04 07:19:56 +11:00
CraftBukkit/Spigot
05d379a339 Release POIs when villagers are removed by plugins
By: md_5 <git@md-5.net>
2021-12-03 15:05:20 +11:00
CraftBukkit/Spigot
ea74321d65 SPIGOT-6823: Fix loading custom world in combination with superflat
By: md_5 <git@md-5.net>
2021-12-03 08:34:38 +11:00
CraftBukkit/Spigot
9f2d553877 Fix per-world worldborder command
By: md_5 <git@md-5.net>
2021-12-03 07:34:39 +11:00
CraftBukkit/Spigot
ee342addea Better preserve broken PlayerMoveEvent behaviour
By: md_5 <git@md-5.net>
2021-12-02 12:45:58 +11:00
CraftBukkit/Spigot
7dd6dfc7a4 SPIGOT-6828: <player> fell off a ladder/vines death message not supported
By: md_5 <git@md-5.net>
2021-12-02 12:29:35 +11:00
CraftBukkit/Spigot
a0201b0f02 SPIGOT-6795: Fix BlockFertilizeEvent not being triggered for Azaleas
By: Rafael S. M. Santos <eu@rafaelsms.com>
2021-12-01 08:27:58 +11:00
CraftBukkit/Spigot
cc70f18bef SPIGOT-6820: VillagerCareerChangeEvent's ChangeReason is sometimes incorrect
By: Doc <nachito94@msn.com>
2021-12-01 08:26:14 +11:00
CraftBukkit/Spigot
4dbb83e45d SPIGOT-6817: Revert back to old block state behaviour again
By: md_5 <git@md-5.net>
2021-11-29 11:03:16 +11:00
CraftBukkit/Spigot
6b0484122e SPIGOT-6814: (Chunk) PersistentData is lost after restart
By: DerFrZocker <derrieple@gmail.com>
2021-11-29 09:28:19 +11:00
CraftBukkit/Spigot
95ab0e27a8 Add hideEntity / showEntity API
By: md_5 <git@md-5.net>
2021-11-29 09:18:52 +11:00
CraftBukkit/Spigot
27643e5df2 Update to Minecraft 1.18-rc3
By: md_5 <git@md-5.net>
2021-11-27 08:00:00 +11:00
CraftBukkit/Spigot
799bfc92e2 Update to Minecraft 1.18-pre8
By: md_5 <git@md-5.net>
2021-11-25 08:00:00 +11:00
CraftBukkit/Spigot
34c3a49371 SPIGOT-6803: Fix ServerPing not using the new logic for show players in 1.18
By: Doc <nachito94@msn.com>
2021-11-24 07:28:22 +11:00
CraftBukkit/Spigot
3e7bd2643c Improve multi-dimension code
By: md_5 <git@md-5.net>
2021-11-23 18:39:43 +11:00
CraftBukkit/Spigot
820ad30036 SPIGOT-6802: Fix major issues with --forceUpgrade
More to come

By: md_5 <git@md-5.net>
2021-11-23 17:13:52 +11:00
CraftBukkit/Spigot
90f6dfa935 Fix loading / creating secondary worlds (nether/end)
By: md_5 <git@md-5.net>
2021-11-23 15:03:34 +11:00
CraftBukkit/Spigot
43702a9e10 Update to Minecraft 1.18-pre5
By: md_5 <git@md-5.net>
2021-11-22 09:00:00 +11:00
CraftBukkit/Spigot
306648dc4c SPIGOT-6797: EntityInteractEvent called with incorrect location
By: md_5 <git@md-5.net>
2021-11-21 11:22:07 +11:00
CraftBukkit/Spigot
99916e6058 SPIGOT-6798: EntityChangeBlockEvent called with incorrect location
By: md_5 <git@md-5.net>
2021-11-21 11:18:06 +11:00
CraftBukkit/Spigot
9e3a0e859f SPIGOT-6772: Use entity mailbox and re-schedule entities if they get unloaded
By: DerFrZocker <derrieple@gmail.com>
2021-11-01 18:54:44 +11:00
CraftBukkit/Spigot
a2a88c50af #945: Allow setting BrewEvent results
By: Doc <nachito94@msn.com>
2021-10-30 18:16:35 +11:00
CraftBukkit/Spigot
ab1a1deb6b SPIGOT-5988: Bedspawn doesn't clear after dying when spawn is blocked
By: DerFrZocker <derrieple@gmail.com>
2021-10-16 19:39:14 +11:00
CraftBukkit/Spigot
ea404e3d82 SPIGOT-6758: Reset ItemSign#openSign when aborting the block placement early
By: blablubbabc <lukas@wirsindwir.de>
2021-10-16 18:48:22 +11:00
CraftBukkit/Spigot
55f4d6c7cb SPIGOT-6760: Chest#getInventory only returns one half of a double chest when one or both halves are blocked
By: md_5 <git@md-5.net>
2021-10-16 18:48:21 +11:00
CraftBukkit/Spigot
82e8261d70 SPIGOT-6754: We ignore any still present TileEntity now when we create a BlockState for a block of type AIR.
During block destruction, the type of the block may already have been set to AIR while the TileEntity has not yet been removed.
Also, TileEntity#getOwner() skips the whole BlockState construction now if the block is of type AIR.

This removes the previous workaround again of returning a dummy CraftBlockEntityState in this case.

By: blablubbabc <lukas@wirsindwir.de>
2021-10-10 07:55:53 +11:00
CraftBukkit/Spigot
188d3b23d0 SPIGOT-2903: Add Structure API
By: Sander Knauff <sanderknauff@hotmail.com>
2021-10-05 11:56:35 +11:00
CraftBukkit/Spigot
2d0a775210 #934: Support for configuring Water Underground Creatures spawn settings
By: Doc <nachito94@msn.com>
2021-10-05 11:29:52 +11:00
CraftBukkit/Spigot
f27c8f74f8 #877: Improve and simplify CraftBlockState
By: blablubbabc <lukas@wirsindwir.de>
2021-09-29 18:56:16 +10:00
CraftBukkit/Spigot
50d4716e9f SPIGOT-6023, SPIGOT-6745: Fix missing BlockDispenseArmorEvents
By: Lars Dormans <lars.dormans@live.nl>
2021-09-26 00:24:33 +02:00
CraftBukkit/Spigot
b4da42047a #929: Call EntityBlockFormEvent for Wither Rose placed by dead entity
By: Doc <nachito94@msn.com>
2021-09-06 18:57:16 +10:00
CraftBukkit/Spigot
77dcaefa51 SPIGOT-6708: Fix Experience Orb value not being updated in mend event
By: Phoenix616 <max@themoep.de>
2021-09-03 18:37:44 +10:00
CraftBukkit/Spigot
9d22657139 Rebuild patch
By: md_5 <git@md-5.net>
2021-09-01 19:02:09 +10:00
CraftBukkit/Spigot
5c075d59dc SPIGOT-6547: Chunk#getEntities() doesn't return all entities immediately after chunk load
By: DerFrZocker <derrieple@gmail.com>
2021-09-01 18:55:18 +10:00
CraftBukkit/Spigot
08e5ad2b2f SPIGOT-6720: Fix bed explosion checks
By: Doc <nachito94@msn.com>
2021-08-27 19:17:43 +10:00
CraftBukkit/Spigot
c8ef43f1b5 SPIGOT-6722: Close entity manager when unloading world
By: DerFrZocker <derrieple@gmail.com>
2021-08-27 19:14:09 +10:00
CraftBukkit/Spigot
dd503b542b SPIGOT-6686: Changes in MaximumRepairCost for Anvil Rename cause inconsistency
By: DerFrZocker <derrieple@gmail.com>
2021-08-27 19:14:09 +10:00
CraftBukkit/Spigot
49c30227d2 Rebuild patch
By: md_5 <git@md-5.net>
2021-08-22 18:07:39 +10:00
CraftBukkit/Spigot
00c0964347 SPIGOT-6713: Cancelling EntityTransformEvent Causes Deceased Slimes To Not Despawn
By: md_5 <git@md-5.net>
2021-08-22 18:07:31 +10:00
CraftBukkit/Spigot
03aecfb428 SPIGOT-6714: Don't fire PlayerBucketEvent when empty
By: Noah van der Aa <ndvdaa@gmail.com>
2021-08-18 17:06:40 +10:00
CraftBukkit/Spigot
c2e4e91b1b SPIGOT-5880, SPIGOT-5567: New ChunkGenerator API
## **Current API**
The current world generation API is very old and limited when you want to make more complex world generation. Resulting in some hard to fix bugs such as that you cannot modify blocks outside the chunk in the BlockPopulator (which should and was per the docs possible), or strange behavior such as SPIGOT-5880.

## **New API**
With the new API, the generation is more separate in multiple methods and is more in line with Vanilla chunk generation. The new API is designed to as future proof as possible. If for example a new generation step is added it can easily also be added as a step in API by simply creating the method for it. On the other side if a generation step gets removed, the method can easily be called after another, which is the case with surface and bedrock. The new API and changes are also fully backwards compatible with old chunk generators.

### **Changes in the new api**
**Extra generation steps:**
Noise, surface, bedrock and caves are added as steps. With those generation steps three extra methods for Vanilla generation are also added. Those new methods provide the ChunkData instead of returning one. The reason for this is, that the ChunkData is now backed by a ChunkAccess. With this, each step has the information of the step before and the Vanilla information (if chosen by setting a 'should' method to true). The old method is deprecated.

**New class BiomeProvider**
The BiomeProvider acts as Biome source and wrapper for the NMS class WorldChunkManager. With this the underlying Vanilla ChunkGeneration knows which Biome to use for the structure and decoration generation. (Fixes: SPIGOT-5880). Although the List of Biomes which is required in BiomeProvider, is currently not much in use in Vanilla, I decided to add it to future proof the API when it may be required in later versions of Minecraft.
The BiomeProvider is also separated from the ChunkGenerator for plugins which only want to change the biome map, such as single Biome worlds or if some biomes should be more present than others.

**Deprecated isParallelCapable**
Mojang has and is pushing to a more multi threaded chunk generation. This should also be the case for custom chunk generators. This is why the new API only supports multi threaded generation. This does not affect the old API, which is still checking this.

**Base height method added**
This method was added to also bring the Minecraft generator and Bukkit generator more in line. With this it is possible to return the max height of a location (before decorations). This is useful to let most structures know were to place them. This fixes SPIGOT-5567. (This fixes not all structures placement, desert pyramids for example are still way up at y-level 64, This however is more a vanilla bug and should be fixed at Mojangs end).

**WorldInfo Class**
The World object was swapped for a WorldInfo object. This is because many methods of the World object won't work during world generation and would mostly likely result in a deadlock. It contains any information a plugin should need to identify the world.

**BlockPopulator Changes**
Instead of directly manipulating a chunk, changes are now made to a new class LimitedRegion, this class provides methods to populated the chunk and its surrounding area. The wrapping is done so that the population can be moved into the place where Minecraft generates decorations. Where there is no chunk to access yet. By moving it into this place the generation is now async and the surrounding area of the chunk can also be used.

For common methods between the World and LimitedRegion a RegionAccessor was added.

By: DerFrZocker <derrieple@gmail.com>
2021-08-15 08:08:16 +10:00