354 Commits

Author SHA1 Message Date
Doc
2f038f2de0
#886: Add new Causes for LightningStrikeEvent 2021-07-13 19:16:36 +10:00
Bjarne Koll
85b8c1fda6
SPIGOT-6507: Implement abstract skeleton and stray conversion
The previous layout and class hierarchy of the skeleton API defined
variances of the skeleton, such as the wither skeleton or the stray, as
child types of the normal skeleton variance, which is technically
incorrect, yet did not produce any specific issue as the normal skeleton
variance did not have any unique logic.

With the introduction of powdered snow in the 1.17 update, the normal
skeleton variance now has unique logic, specifically the conversion to
a stay when stuck inside powdered snow, which cannot be represented in
the current API layout due to the prior mentioned hierarchy.

This commit implements the hierarchy changes made in the bukkit
repository by representing the new hierarchy on the craftbukkit side
through the CraftAbstractSkeleton and the respective additions to the
skeleton implementation in regards to the stray conversion.

This commit does not break ABI yet breaks backwards compatibility due to
the mentioned hierarchy changes. Plugins that previously used the
Skelton interface to compute whether or not an entity is skeleton-like
through instanceOf checks will now only match the normal skeleton variance
instead of any skeleton-like entity.
2021-06-14 10:01:19 +10:00
md_5
c9a92ad08e
SPIGOT-6536: Marker position not set on spawn 2021-06-13 10:25:21 +10:00
md_5
d747f8ed15
Fix NPE with World.getNearbyEntities 2021-06-11 17:24:50 +10:00
md_5
e2f5ea34e9
Update to Minecraft 1.17 2021-06-11 15:00:00 +10:00
DerFrZocker
f3ed1ac1dc
SPIGOT-6430: Fix fungi tree not generating 2021-04-29 07:43:26 +10:00
md_5
28d72c4bd8
SPIGOT-6428: World.generateTree does not generate bee nests 2021-04-18 17:42:35 +10:00
Martoph
0e26ddb6a3
SPIGOT-5877: Add scaffolding for custom dimensions and biomes 2021-04-11 17:54:48 +10:00
md_5
e9ad7cba9b
SPIGOT-6357: Add World#getMinHeight 2021-03-28 19:31:50 +11:00
md_5
90d6905b15
Repackage NMS 2021-03-16 09:00:00 +11:00
Martoph
ee5006d187
#810: Add option for a consumer before spawning an item 2021-03-09 08:47:34 +11:00
md_5
0c24068ad6
Organise imports 2021-03-09 08:47:33 +11:00
Jakub Zacek
8aa6a953fe
SPIGOT-5778: Added World.getGameTime method 2021-02-13 10:33:16 +11:00
md_5
f3f30947e0
Update to Minecraft 1.16.5 2021-01-16 12:00:00 +11:00
Parker Hawke
e1ebdd927a
#771: Add clear weather World API 2020-11-26 10:08:19 +11:00
Martoph
424598d294
#752: Add the ability to retrieve hit, step, fall, and other sounds from blocks. 2020-11-26 09:36:57 +11:00
Parker Hawke
2e178b09c6
#730: Let World#setSpawnLocation() support an angle 2020-08-18 17:54:36 +10:00
md_5
2ee7318ae1
SPIGOT-6064: world.getBiome() null Error 2020-08-12 10:51:29 +10:00
md_5
9c9fb593f5
Update to Minecraft 1.16.2 2020-08-12 07:00:00 +10:00
Parker Hawke
c3184f875d
SPIGOT-6053: World#setHardcore() cannot be set to false 2020-08-11 17:35:56 +10:00
md_5
29cce6714a
SPIGOT-6034: World.getWorldFolder() includes the dot in the path 2020-07-28 18:04:06 +10:00
md_5
2f18108123
Improve physics code 2020-07-07 09:35:47 +10:00
md_5
5a6c529833
SPIGOT-5906: Huge Fungi tree generation 2020-07-01 09:50:58 +10:00
md_5
c99846cc76
Add configuration options for water_ambient spawning 2020-06-26 18:39:42 +10:00
md_5
b136f8430d
SPIGOT-5804: Cannot launch Entity Firework 2020-06-25 12:57:58 +10:00
md_5
7ea3c040bc
Update to Minecraft 1.16.1 2020-06-25 10:00:00 +10:00
Spottedleaf
fad2494af1 #673: Fix Craftworld#isChunkLoaded
The flag for getChunkAt(int, int, ChunkStatus, boolean)
is actually a flag for whether to bring the underlying
PlayerChunk up to the required ticket level to load the
chunk. So, if the chunk is already at the required level,
but has not yet loaded, the call will actually either
start the load if it has not already been started and
block until completion.

This behaviour is not suitable for just
checking if the chunk is loaded.
2020-06-06 19:23:46 +10:00
md_5
41712eddeb SPIGOT-5707: PersistentDataHolder not Persistent on API dropped Item 2020-04-29 17:21:06 +10:00
md_5
a8ec1d60f3 Add a couple of method null checks to CraftWorld 2020-04-17 08:39:22 +10:00
md_5
ce66f6937b Misc checkstyle fixes 2020-04-14 12:34:43 +10:00
Parker Hawke
fc318cc10e #642: Add a DragonBattle API to manipulate respawn phases etc 2020-03-24 19:53:47 +11:00
Phoenix616
fc24934098 SPIGOT-5484: Add more spawn tick settings 2020-03-08 19:43:47 +11:00
ysl3000
2d151f4c33 #624: Add an API for passing the heightmap to getHighestBlockAt* method 2020-02-09 10:32:24 +11:00
ysl3000
807a677e9a SPIGOT-5558: Fix World#getHighestBlockAt, previously off by +1 2020-02-03 09:42:48 +11:00
md_5
e82b5477ae SPIGOT-5556: Some biome methods use incorrect positions
See SPIGOT-5529
2020-02-01 17:30:40 +11:00
md_5
6515ea4957 SPIGOT-5537: Bee nests generated by growing trees near flower have no bees 2020-01-28 09:48:28 +11:00
md_5
d82b314944 Remove unused CraftWorld.getId method 2020-01-27 19:30:17 +11:00
md_5
6881a10803 Update to Minecraft 1.15.2 2020-01-22 08:00:00 +11:00
md_5
e7202cd444 SPIGOT-5496: API to create and manipulate hardcore worlds 2020-01-04 10:14:23 +11:00
ShaneBee
2d9db47fb5 Add TimeSkipEvent 2019-12-21 18:33:20 +11:00
md_5
db0dafb17c SPIGOT-5422: Add support for 3-dimensional biomes 2019-12-11 15:28:37 +11:00
md_5
de42aa13f3 Update to Minecraft 1.15 2019-12-11 09:00:00 +11:00
md_5
c2d1201118 SPIGOT-5353: Expand explosion API by adding source entity 2019-10-05 17:16:52 +10:00
anhcraft
cbdd713908 SPIGOT-5211: Add Raid API 2019-08-28 19:52:32 +10:00
md_5
1ec1b05e2a SPIGOT-5245: Unneeded cast to WorldNBTStorage in CraftWorld#getWorldFolder 2019-08-05 20:20:38 +10:00
BlackHole
c98d61bfcd SPIGOT-4712: Allow spawning of upwards or downwards facing item frames
Also use correct block position for spawning hanging entities
2019-07-23 13:02:23 +10:00
md_5
e73aabd666 Update to Minecraft 1.14.4 2019-07-20 09:00:00 +10:00
Spottedleaf
07b5b06d2c Add Plugin Chunk Ticket API
Allows plugins to force certain chunks to be kept loaded for as long as they are enabled.
2019-07-08 12:16:01 +10:00
md_5
a2275f19e9 SPIGOT-5141: World.generateTree() causes ClassCastException with huge mushrooms 2019-07-06 10:13:00 +10:00
md_5
38fa220f69 Fix setting game rules via the API 2019-06-21 20:35:22 +10:00