Commit Graph

2523 Commits

Author SHA1 Message Date
Bukkit/Spigot
36fb1f9c00 Add Player#openSign API to edit a placed sign
By: md_5 <git@md-5.net>
2021-12-05 08:34:33 +11:00
Bukkit/Spigot
440c99dc37 SPIGOT-6832: Further improve Player#getPing docs
By: md_5 <git@md-5.net>
2021-12-04 08:19:20 +11:00
Bukkit/Spigot
9a4caaec10 SPIGOT-6832: Improve Player#getPing docs
By: md_5 <git@md-5.net>
2021-12-04 08:10:14 +11:00
Bukkit/Spigot
926db7c30b SPIGOT-6825: MapFont#getWidth ignores §, but not the color-byte and semicolon following it
By: md_5 <git@md-5.net>
2021-12-01 14:58:04 +11:00
Bukkit/Spigot
62f79aa905 SPIGOT-6822: Ensure library loader has same parent as plugin loader
This behaviour may need to be revisted in future to achieve greater isolation of plugins/libraries

By: md_5 <git@md-5.net>
2021-12-01 10:29:25 +11:00
Bukkit/Spigot
c5a7423ca0 Update to Minecraft 1.18
By: md_5 <git@md-5.net>
2021-12-01 03:00:00 +11:00
Bukkit/Spigot
a8f0ba31f2 Correct copied javadoc from previous commit
By: md_5 <git@md-5.net>
2021-11-29 15:59:20 +11:00
Bukkit/Spigot
c4bdb24f2a Add hideEntity / showEntity API
By: md_5 <git@md-5.net>
2021-11-29 09:17:57 +11:00
Bukkit/Spigot
45f7e75b02 #684: Make PotionEffectType implement Keyed
By: coll1234567 <joshl5324@gmail.com>
2021-11-28 11:49:39 +11:00
Bukkit/Spigot
c7d5155340 Revert SnakeYAML upgrade
By: md_5 <git@md-5.net>
2021-11-27 09:11:04 +11:00
Bukkit/Spigot
59be6efc2a Update to Minecraft 1.18-rc3
By: md_5 <git@md-5.net>
2021-11-27 08:00:00 +11:00
Bukkit/Spigot
0618087d5f #683: Add Player#showDemoScreen
By: coll1234567 <joshl5324@gmail.com>
2021-11-26 10:13:40 +11:00
Bukkit/Spigot
61af905f78 Update to Minecraft 1.18-pre8
By: md_5 <git@md-5.net>
2021-11-25 08:00:00 +11:00
Bukkit/Spigot
b06bd45d47 Add docs in ServerListPingEvent based on changes from 1.18
By: Doc <nachito94@msn.com>
2021-11-24 07:30:57 +11:00
Bukkit/Spigot
d0acafa8d8 SPIGOT-6781: Add Block#canPlace
By: coll1234567 <joshl5324@gmail.com>
2021-11-23 18:49:11 +11:00
Bukkit/Spigot
f3fd09df80 #679: Add getHideOnlinePlayers
By: Doc <nachito94@msn.com>
2021-11-22 22:30:30 -03:00
Bukkit/Spigot
a05a566ae7 #677: Add "Allow Server Listings" API
By: Noah van der Aa <ndvdaa@gmail.com>
2021-11-23 08:56:03 +11:00
Bukkit/Spigot
1594310d44 SPIGOT-6801: Wrong BlockData classes in Material enum for SOUL_FIRE and SOUL_TORCH
By: BlackHole <black-hole@live.com>
2021-11-23 08:06:39 +11:00
Bukkit/Spigot
bf2c5f3df0 Downgrade to Checkstyle 8.x as 9.x series has much larger memory usage
By: md_5 <git@md-5.net>
2021-11-22 15:27:06 +11:00
Bukkit/Spigot
31805744d2 Remove Player#sendChunkChange
Method is specified according to an obsolete internal format and has not been implemented for nearly 10 years.

By: md_5 <git@md-5.net>
2021-11-22 15:08:47 +11:00
Bukkit/Spigot
ccf26486ac #592: Add Player#sendEquipmentChange
By: Perzan <PerzanDevelopment@gmail.com>
2021-11-22 15:03:24 +11:00
Bukkit/Spigot
98195bb7a9 Update to Minecraft 1.18-pre5
By: md_5 <git@md-5.net>
2021-11-22 09:00:00 +11:00
Bukkit/Spigot
aa5b69a0ea #675: Fix typo in ItemFrame#setFixed
By: Cerus <m.dorn.2003@web.de>
2021-11-18 08:14:50 +11:00
Bukkit/Spigot
e3ed32721a #674: Optimize and cleanup PermissibleBase
By: JDIALIA <jdialia@gmail.com>
2021-11-16 07:27:40 +11:00
Bukkit/Spigot
80ca94de60 SPIGOT-6436: Add Player#stopAllSounds
By: Doc <nachito94@msn.com>
2021-11-05 21:02:12 +11:00
Bukkit/Spigot
3afdb08183 #667: Allow setting BrewEvent results
By: Doc <nachito94@msn.com>
2021-10-30 18:16:49 +11:00
Bukkit/Spigot
e887c31580 SPIGOT-6762: ChatPaginator.wordWrap only transfers one modifier
By: md_5 <git@md-5.net>
2021-10-29 18:45:29 +11:00
Bukkit/Spigot
283a637a66 SPIGOT-4590, SPIGOT-6769: Clarify DamageCause documentation
By: Doc <nachito94@msn.com>
2021-10-27 18:36:29 +11:00
Bukkit/Spigot
567948a8d1 SPIGOT-6771: Help command tab completion does not respect permissions
By: md_5 <git@md-5.net>
2021-10-24 20:33:42 +11:00
Bukkit/Spigot
ef5b7235a1 SPIGOT-6756: Clarify drop items in BlockBreakEvent
By: md_5 <git@md-5.net>
2021-10-16 19:01:10 +11:00
Bukkit/Spigot
5814757cc7 SPIGOT-6749: Library Loader does not correctly isolate dependencies
By: md_5 <git@md-5.net>
2021-10-13 08:12:16 +11:00
Bukkit/Spigot
6882afca7b SPIGOT-2903: Add Structure API
By: Sander Knauff <sanderknauff@hotmail.com>
2021-10-05 11:55:20 +11:00
Bukkit/Spigot
8b6e67635a #662: Support for configuring Water Underground Creatures spawn settings
By: Doc <nachito94@msn.com>
2021-10-05 11:31:21 +11:00
Bukkit/Spigot
f4b28573d2 #661: Fix Typo in ScoreboardManager documentation
By: olijeffers0n <69084614+olijeffers0n@users.noreply.github.com>
2021-10-04 21:08:43 +11:00
Bukkit/Spigot
1f934c6832 SPIGOT-6746: Clarify PlayerPortalEvent documentation
By: md_5 <git@md-5.net>
2021-09-25 08:02:58 +10:00
Bukkit/Spigot
e4ae7c57b7 SPIGOT-6738: Add entity type tags
By: md_5 <git@md-5.net>
2021-09-19 14:50:54 +10:00
Bukkit/Spigot
49c66e97e2 SPIGOT-6249: Add Missing Effect Constants
By: DerFrZocker <derrieple@gmail.com>
2021-09-11 18:39:43 +10:00
Bukkit/Spigot
eb1aaf62d4 SPIGOT-6729: Add Chunk.isEntitiesLoaded()
By: Brokkonaut <hannos17@gmx.de>
2021-09-06 18:51:44 +10:00
Bukkit/Spigot
891608deca SPIGOT-6547: Chunk#getEntities() doesn't return all entities immediately after chunk load
By: DerFrZocker <derrieple@gmail.com>
2021-09-01 18:55:16 +10:00
Bukkit/Spigot
5f7735a971 SPIGOT-6719: Add getTileEntities() to LimitedRegion
By: DerFrZocker <derrieple@gmail.com>
2021-08-30 18:44:39 +10:00
Bukkit/Spigot
74e1b5b72a #654: Clarify conditions where a bed can explode
By: Doc <nachito94@msn.com>
2021-08-28 18:57:58 +10:00
Bukkit/Spigot
99ce197044 SPIGOT-6697: Deprecate generateTree with BlockChangeDelegate as it does not handle tiles
By: md_5 <git@md-5.net>
2021-08-22 18:12:37 +10:00
Bukkit/Spigot
f84947b942 #653: Add World#spawn with randomizeData parameter
The current implementation of World#spawn or World#spawnEntity
respectively, always prepares/finalizes the spawn of every entity
spawned through the API. While this is great to simulate natural
spawning of entities in the world through the API, it fails at
reliably creating default entities for purposes other than vanilla
gameplay.

While the caller of the API could attempt to undo all of the
customization that is applied in the prepare/finalization step, they are
numerous (reaching from sheep colour to equipment) and in some cases,
such as the chicken jockey, even spawn in other entities.

Hence this commit introduces a new overload to the World#spawn and
World#spawnEntity methods that accepts the 'randomizeData' parameter
that, when set to false, skips the prior mentioned
preparation/finalization step.

By: Bjarne Koll <lynxplay101@gmail.com>
2021-08-18 18:04:51 +10:00
Bukkit/Spigot
923e0e64b5 Damageable should extend ItemMeta
By: md_5 <git@md-5.net>
2021-08-16 15:36:45 +10:00
Bukkit/Spigot
c255eb3333 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:11 +10:00
Bukkit/Spigot
511a9aba49 Update ASM
By: md_5 <git@md-5.net>
2021-08-13 08:45:11 +10:00
Bukkit/Spigot
7f258ff344 Add dimension setting getters to World
By: Doc <nachito94@msn.com>
2021-08-11 18:57:21 +10:00
Bukkit/Spigot
5fef84d43d SPIGOT-6692: Add sendSignChange overload with a hasGlowingText parameter
By: Brokkonaut <hannos17@gmx.de>
2021-08-05 08:43:00 +10:00
Bukkit/Spigot
f33444292a SPIGOT-6691: Material.LAVA_CAULDRON is not Levelled
By: Doc <nachito94@msn.com>
2021-08-04 17:10:14 +10:00
Bukkit/Spigot
338df40644 #642: Add Crafting methods to API
By: James Peters <jameslfc19@gmail.com>
2021-07-22 11:35:43 +10:00