92 Commits

Author SHA1 Message Date
Jishuna
563d422268
SPIGOT-519: Add TNTPrimeEvent
Thanks to Pokechu22 for an earlier implementation
2023-05-03 20:46:43 +10:00
Doc
f92a41c396
#1181: Consolidate Location conversion code 2023-04-19 19:59:19 +10:00
Doc
82f7b658aa
#1095: Add PlayerSpawnChangeEvent 2023-04-17 19:33:17 +10:00
DerFrZocker
19de3550d8
SPIGOT-7315: Bed placement duplicates crops if cancelled 2023-04-07 10:56:58 +02:00
Phoenix616
3ae90697f3
Fix UUID not being updated when changing world of MapView 2023-04-04 19:44:29 +01:00
Jishuna
e43000601d
#1164, MC-227255, MC-253819: Fix rotation of beehives and bells 2023-04-04 07:01:54 +10:00
Parker Hawke
187bdd463f
#1160: Add more bell API 2023-04-02 14:35:13 +10:00
DerFrZocker
1fddefce1c
#1155: Allow getting chunks without generating them and optimize chunk data request for ungenerated chunks 2023-04-02 13:06:59 +10:00
Parker Hawke
eff1743b9c
SPIGOT-7313: More accurately edit data on Jukeboxes 2023-03-29 19:23:41 +11:00
Parker Hawke
f5b61387e1
SPIGOT-7308: Fix NullPointerException when calling Jukebox#setRecord() 2023-03-22 14:21:06 -04:00
md_5
04dfb921de
Fix crash with juke boxes 2023-03-15 18:14:15 +11:00
md_5
bcedf28a1b
Update to Minecraft 1.19.4 2023-03-15 03:30:00 +11:00
md_5
f150cfbd45
SPIGOT-7220: TNT drop rate isn't 100% 2023-03-04 11:47:05 +11:00
James Peters
2cdd5883b5
#1119: Add HopperInventorySearchEvent to select the Inventory that the Hopper pulls/pushes into 2023-03-04 09:05:17 +11:00
Lauriichan
7b11c7ba0f
SPIGOT-7261: Add AsyncStructureSpawnEvent 2023-03-04 08:36:00 +11:00
Jacob Martin
b56426c7ae
#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.
2023-02-27 20:34:19 +11:00
FreeSoccerHDX
7c44152eba
SPIGOT-7224: Add events for brewing stands and campfires starting their actions 2023-02-05 11:06:25 +11:00
Jacob Martin
a0d3dfaf28
#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.
2022-12-29 14:06:51 +11:00
Doc
ae8f5fc025
#1125: Add support for NoteBlock sounds in Skulls 2022-12-23 12:26:06 +11:00
md_5
2ed3e3e6e5
SPIGOT-7210: Fix structures in custom worlds 2022-12-16 11:13:10 +11:00
md_5
19e6be0209
Update to Minecraft 1.19.3 2022-12-08 03:00:00 +11:00
Parker Hawke
5329dd6fd2
#1107: Add getHand() to all relevant events 2022-10-02 09:07:14 +11:00
DerFrZocker
93061706eb
SPIGOT-7045: Ocelots never spawn with babies with spawn reason OCELOT_BABY 2022-09-28 20:09:43 +10:00
md_5
8468e167ef
SPIGOT-7137: StructureGrowEvent isFromBonemeal and getPlayer have incorrect values 2022-08-14 10:54:23 +10:00
md_5
6da82662bb
Update to Minecraft 1.19.1 2022-07-28 04:00:00 +10:00
md_5
7ba06e15b7
SPIGOT-7095: StructureGrowEvent doesn't fire for mangrove propagules growing to a tree 2022-07-10 14:12:30 +10:00
BlackHole
c924fa5315
SPIGOT-7072: Call events for stepping on sculk sensors and sculk shriekers 2022-06-23 20:25:36 +10:00
DerFrZocker
622dbe6c24
SPIGOT-7068: SKULK and SKULK_VEIN BlockSpreadEvents Still do not reference the correct source (SKULK_CATALYST) 2022-06-19 21:48:24 +10:00
md_5
8fda4b12fd
SPIGOT-7060: SCULK and SCULK_VEIN BlockSpreadEvents do not reference the correct source 2022-06-14 21:21:46 +10:00
Brokkonaut
effea36a28
#1065: Add missing calls for BlockSpreadEvent when Sculk spreads 2022-06-11 13:20:38 +10:00
md_5
b2557f6acd
SPIGOT-7041: Custom BiomeProvider not used when world set to type FLAT 2022-06-10 11:08:00 +10:00
md_5
732c50cab7
SPIGOT-7043: EnderChest does not implement Lidded 2022-06-10 10:57:43 +10:00
md_5
64c15270e7
Update to Minecraft 1.19 2022-06-08 02:00:00 +10:00
DerFrZocker
7bc728a6b8
#1045: Revert changes to persistence required checks 2022-05-03 23:13:03 +10:00
md_5
9cc7d766dc
SPIGOT-7010: Changing dropper item results in using dispensing behaviour 2022-04-28 19:16:28 +10:00
Martoph
d53c4fb65c
#1039: Use correct ops in GeneratorSettings 2022-03-27 16:24:09 +11:00
Brokkonaut
3ec79a27d4
SPIGOT-5140: Call EntityChangeBlockEvent when a ChorusFlower is destroyed by a projectile 2022-03-21 13:17:54 +11:00
md_5
05a38da190
Update to Minecraft 1.18.2 2022-03-01 02:00:00 +11:00
Doc
c0326c2840
#1009: Add Furnace#getRecipesUsed 2022-02-15 18:49:39 +11:00
DerFrZocker
cc5ddd7936
#1010: Add PDC to World 2022-02-15 09:36:00 +11:00
Doc
febaa1c6f5
SPIGOT-6918: Add SpawnCategory API and configurations for Axolotls 2022-02-07 18:52:16 +11:00
Martoph
f3828bbee6
#989: Add PDC to Structures 2022-01-07 09:43:38 +11:00
DerFrZocker
cc86ab1886
SPIGOT-5339, SPIGOT-6252, SPIGOT-6777: Only cancel knockback if the damage event was canceled 2022-01-03 18:07:01 +01:00
md_5
e36f7599d6
SPIGOT-6852: BlockReceiveGameEvent#getBlock returning wrong block 2021-12-14 07:52:43 +11:00
md_5
c2e0bbda4e
Update to Minecraft 1.18.1 2021-12-11 00:12:31 +11:00
Bjarne Koll
f49e9d1932
#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.
2021-12-05 08:53:46 +11:00
Rafael S. M. Santos
a0087010ac
SPIGOT-6795: Fix BlockFertilizeEvent not being triggered for Azaleas 2021-12-01 08:27:58 +11:00
md_5
9fb3aa4c7a
SPIGOT-6817: Revert back to old block state behaviour again 2021-11-29 11:03:16 +11:00
DerFrZocker
04f8e7e21f
SPIGOT-6814: (Chunk) PersistentData is lost after restart 2021-11-29 09:28:19 +11:00
md_5
5a39a236c1
Update to Minecraft 1.18-pre8 2021-11-25 08:00:00 +11:00