82 Commits

Author SHA1 Message Date
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
md_5
2f6662d467
Improve multi-dimension code 2021-11-23 18:39:43 +11:00
md_5
6ac2e0325a
SPIGOT-6802: Fix major issues with --forceUpgrade
More to come
2021-11-23 17:13:52 +11:00
md_5
a7b8b0270a
Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
DerFrZocker
747a73ec92
SPIGOT-6772: Use entity mailbox and re-schedule entities if they get unloaded 2021-11-01 18:54:44 +11:00
Doc
eb9a0f34af
#945: Allow setting BrewEvent results 2021-10-30 18:16:39 +11:00
md_5
b86793136b
SPIGOT-6760: Chest#getInventory only returns one half of a double chest when one or both halves are blocked 2021-10-16 18:49:04 +11:00
blablubbabc
4faf479e6c
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.
2021-10-10 07:55:53 +11:00
Sander Knauff
1df303e707
SPIGOT-2903: Add Structure API 2021-10-05 12:24:21 +11:00
Doc
346ebb7a7a
#934: Support for configuring Water Underground Creatures spawn settings 2021-10-05 11:39:21 +11:00
blablubbabc
dc764e7a2f
#877: Improve and simplify CraftBlockState 2021-09-29 18:56:16 +10:00