Commit Graph

2811 Commits

Author SHA1 Message Date
Bukkit/Spigot
17deecda82 Add support for Java 20
By: md_5 <git@md-5.net>
2023-02-23 07:19:49 +11:00
Bukkit/Spigot
ab2503b967 #812: Add Registry#match(String)
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-02-13 21:31:07 +11:00
Bukkit/Spigot
f72dbc96cd SPIGOT-4569: Add more BlockData API
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-02-11 18:59:06 +11:00
Bukkit/Spigot
d6d7c1a64f #809: Throw a more clear error for BlockIterators with zero direction, add Vector#isZero()
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-02-11 09:44:56 +11:00
Bukkit/Spigot
e17edb7785 #804: Added methods to get translation keys for materials, itemstacks and more
By: mfnalex <mfnalex@gmail.com>
2023-02-10 20:51:15 +11:00
Bukkit/Spigot
cd28159b45 #795: Add new BiomeParameterPoint passed to BiomeProvider#getBiome
By: FreeSoccerHDX <freesoccerhdx@gmail.com>
2023-02-07 21:23:20 +11:00
Bukkit/Spigot
eb1da343c8 SPIGOT-7224: Add events for brewing stands and campfires starting their actions
By: FreeSoccerHDX <freesoccerhdx@gmail.com>
2023-02-05 11:01:36 +11:00
Bukkit/Spigot
a74a60046d SPIGOT-7246: Optimize NamespacedKey construction
By: md_5 <git@md-5.net>
2023-01-31 21:02:28 +11:00
Bukkit/Spigot
73bd1a1c85 SPIGOT-7239: Getter/setter for player's enchantment seed
By: FreeSoccerHDX <freesoccerhdx@gmail.com>
2023-01-28 11:55:38 +11:00
Bukkit/Spigot
c68938c935 SPIGOT-7214: Add CraftChunk and CraftChunkSnapshot contains biome method
By: md_5 <git@md-5.net>
2023-01-28 11:49:44 +11:00
Bukkit/Spigot
0bb0794be6 #808: Add custom sound parameter option for playSound with entity as source
By: Gero <gecam59@gmail.com>
2023-01-28 11:38:58 +11:00
Bukkit/Spigot
3242c70da4 SPIGOT-7242: Fix bugged AdvancementDisplayType enum
By: md_5 <git@md-5.net>
2023-01-26 12:48:27 +11:00
Bukkit/Spigot
0171060ae2 SPIGOT-7034: Add methods for set/get instrument in Goat Horn
By: byquanton <32410361+byquanton@users.noreply.github.com>
2023-01-08 20:36:06 +11:00
Bukkit/Spigot
5c925130eb SPIGOT-7221: Add Enemy (Entity) interface
By: ShaneBee <shanebolenback@me.com>
2022-12-31 10:23:59 +11:00
Bukkit/Spigot
9048c2fc06 #800: Add support for NoteBlock sounds in Skulls
By: Doc <nachito94@msn.com>
2022-12-23 12:26:04 +11:00
Bukkit/Spigot
05e63c40e1 #798: Add PrepareGrindstoneEvent and refactor related events to use PrepareInventoryResultEvent
By: FreeSoccerHDX <freesoccerhdx@gmail.com>
2022-12-13 19:29:48 +11:00
Bukkit/Spigot
12020621c8 SPIGOT-7204: Add TeleportCause#DISMOUNT
By: md_5 <git@md-5.net>
2022-12-13 19:22:42 +11:00
Bukkit/Spigot
d670f11766 SPIGOT-7202: Deprecate removed door effects
By: md_5 <git@md-5.net>
2022-12-11 10:04:14 +11:00
Bukkit/Spigot
db7ac0823b SPIGOT-7198: Add Sittable interface to Camel
By: md_5 <git@md-5.net>
2022-12-08 17:53:55 +11:00
Bukkit/Spigot
7a87d86241 Update to Minecraft 1.19.3
By: md_5 <git@md-5.net>
2022-12-08 03:13:00 +11:00
Bukkit/Spigot
6ea8b24628 SPIGOT-6765: Pass WorldInfo, Random and coordinates to ChunkGenerator should methods
By: DerFrZocker <derrieple@gmail.com>
2022-11-15 17:56:35 +11:00
Bukkit/Spigot
b5059609a9 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:07 +11:00
Bukkit/Spigot
cbb1dd46c0 Remove obsolete workaround for SnakeYAML 100 comment limit
By: md_5 <git@md-5.net>
2022-10-09 11:45:05 +11:00
Bukkit/Spigot
cc4b84e4fb SPIGOT-7161: SnakeYaml 1.32 changed the default file size limit
By: md_5 <git@md-5.net>
2022-10-09 11:40:29 +11:00
Bukkit/Spigot
f7fac3540b Update SnakeYAML version
By: md_5 <git@md-5.net>
2022-10-02 09:18:56 +11:00
Bukkit/Spigot
90bc66e868 SPIGOT-7162: Incorrect description for Entity#getVehicle javadoc
By: md_5 <git@md-5.net>
2022-10-02 09:14:33 +11:00
Bukkit/Spigot
385b26cb81 #788: Add getHand() to all relevant events
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-10-02 09:07:09 +11:00
Bukkit/Spigot
273e3081de SPIGOT-2620: Add Player#sendBlockChanges()
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-09-24 11:05:09 +10:00
Bukkit/Spigot
3455cde270 Improve annotation test on parameters
By: md_5 <git@md-5.net>
2022-09-24 09:31:44 +10:00
Bukkit/Spigot
869f647744 SPIGOT-1244, SPIGOT-6860, SPIGOT-6874: Various Javadoc and formatting fixes
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-09-24 09:31:42 +10:00
Bukkit/Spigot
fc3825afec #793: Ignore .checkstyle file generated by Eclipse IDE
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-09-24 09:20:42 +10:00
Bukkit/Spigot
ed674a6a4a Update SnakeYAML version
By: md_5 <git@md-5.net>
2022-09-22 10:15:39 +10:00
Bukkit/Spigot
8891e2079c SPIGOT-3842: Add Player#fireworkBoost() and expand Firework API
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-09-12 19:04:19 +10:00
Bukkit/Spigot
38ba2e3273 #786: Add methods to get sounds from entities
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-09-11 22:24:08 +10:00
Bukkit/Spigot
04574c48bb #787: Add LivingEntity#canBreatheUnderwater()
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-09-04 21:34:17 +10:00
Bukkit/Spigot
6ac3e7166b SPIGOT-7128: ChunkGenerator#shouldGenerateBedrock doesn't work
By: DerFrZocker <derrieple@gmail.com>
2022-08-25 22:44:59 +02:00
Bukkit/Spigot
bcc7b10e0c #755: Add more Warden methods
By: Doc <nachito94@msn.com>
2022-08-20 16:28:19 +10:00
Bukkit/Spigot
f59a848387 #782: ThrownPotion now extends ThrowableProjectile
By: Martoph <sager1018@gmail.com>
2022-08-17 19:51:55 +10:00
Bukkit/Spigot
3a4c583278 SPIGOT-7138: Can't retrieve pixel color from map
By: DerFrZocker <derrieple@gmail.com>
2022-08-16 19:52:48 +10:00
Bukkit/Spigot
9802bd131d SPIGOT-2450: Improve scoreboard criteria API, add missing DisplaySlots
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-08-08 21:48:35 +10:00
Bukkit/Spigot
ee7f1a0800 SPIGOT-7122: New Allay Methods from 1.19.1
By: Doc <nachito94@msn.com>
2022-08-08 21:39:14 +10:00
Bukkit/Spigot
eec7e6905c Update to Minecraft 1.19.2
By: md_5 <git@md-5.net>
2022-08-06 07:40:00 +10:00
Bukkit/Spigot
3ff3d973e8 SPIGOT-7109: Add WorldBorder#setSize using TimeUnit
By: Doc <nachito94@msn.com>
2022-08-04 20:30:57 +10:00
Bukkit/Spigot
60497ed077 #776: Fixed javadocs for ItemFlag#HIDE_POTION_EFFECTS
By: mfnalex <mail@jeff-media.de>
2022-08-03 20:53:05 +10:00
Bukkit/Spigot
4c2dd40231 SPIGOT-7124: MapPalette.getColor(0) returns the wrong color
By: DerFrZocker <derrieple@gmail.com>
2022-08-01 22:08:48 +10:00
Bukkit/Spigot
8d30515576 Update to Minecraft 1.19.1
By: md_5 <git@md-5.net>
2022-07-28 04:00:00 +10:00
Bukkit/Spigot
ecc4ce98ab SPIGOT-5380, SPIGOT-6958, #772: Add some missing entity API
By: Ollie <69084614+olijeffers0n@users.noreply.github.com>
2022-07-21 21:01:23 +10:00
Bukkit/Spigot
8c38fbb68a #771: Throw IllegalAccessException with non-static getHandlerList
Also add specifier for which event causes the issue

By: Martoph <sager1018@gmail.com>
2022-07-12 21:32:00 +10:00
Bukkit/Spigot
b2eb98d8eb SPIGOT-7069: Material.BARREL has Directional data class, should also be Openable
By: md_5 <git@md-5.net>
2022-07-10 15:10:05 +10:00
Bukkit/Spigot
417f0ad4a4 SPIGOT-7070: Material.SCULK_VEIN has Waterlogged data class, should also be MultipleFacing
By: md_5 <git@md-5.net>
2022-07-10 15:04:41 +10:00
Bukkit/Spigot
a4a0b99e49 #767: Add support checking/survivability methods for BlockData
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-07-09 20:04:45 +10:00
Bukkit/Spigot
73d53d00e8 SPIGOT-7083: Add Boat.WoodenType, Boat.Status; deprecate TreeSpecies
By: Doc <nachito94@msn.com>
2022-07-05 20:40:27 +10:00
Bukkit/Spigot
16583c1d7c SPIGOT-7071: Add Player#stopSound(SoundCategory category)
By: SkytAsul <skytasul@gmail.com>
2022-07-01 20:44:34 +10:00
Bukkit/Spigot
24ea881685 SPIGOT-7011, SPIGOT-7065: Overhaul of structures
By: DerFrZocker <derrieple@gmail.com>
2022-07-01 20:41:02 +10:00
Bukkit/Spigot
515ae6f2cc SPIGOT-7078: Add EntityPotionEffectEvent.Cause#WARDEN
By: Doc <nachito94@msn.com>
2022-06-23 20:27:51 +10:00
Bukkit/Spigot
2ca50720e4 #746: Add option to use cached map color palette
This reduces the conversion time drastically with the cost of slightly more memory usage.

By: DerFrZocker <derrieple@gmail.com>
2022-06-18 21:13:40 +10:00
Bukkit/Spigot
1a5ff83244 #759: Add preview chat option in ServerListPingEvent
By: Doc <nachito94@msn.com>
2022-06-18 20:55:23 +10:00
Bukkit/Spigot
3cdd9f03ce #758: Add missing server properties methods from 1.19
By: Doc <nachito94@msn.com>
2022-06-18 20:48:59 +10:00
Bukkit/Spigot
f786e8cff4 #762: Add SpawnReason and TransformReason for Tadpole metamorphosis into Frog
By: Doc <nachito94@msn.com>
2022-06-13 15:24:49 +10:00
Bukkit/Spigot
b1a97476be #761: Add Hangable interface to MangrovePropagule
By: chickeneer <emcchickeneer@gmail.com>
2022-06-12 18:12:47 +10:00
Bukkit/Spigot
5148d2950b Add compat constructor to PlayerAnimationEvent
By: md_5 <git@md-5.net>
2022-06-11 13:22:25 +10:00
Bukkit/Spigot
8bbd39c170 SPIGOT-7043: EnderChest does not implement Lidded
By: md_5 <git@md-5.net>
2022-06-10 10:57:48 +10:00
Bukkit/Spigot
a0619b4d67 SPIGOT-7047: Add Player#getLastDeathLocation
By: Doc <nachito94@msn.com>
2022-06-10 09:56:47 +10:00
Bukkit/Spigot
4834aca6ed SPIGOT-7003: Add missing PlayerAnimationType
By: Doc <nachito94@msn.com>
2022-06-09 21:30:20 +10:00
Bukkit/Spigot
276f86cc29 SPIGOT-5984: Add non deprecated / magic value way to set pixel in MapCanvas
By: DerFrZocker <derrieple@gmail.com>
2022-06-09 21:27:21 +10:00
Bukkit/Spigot
2624d0d54f #754: Add DamageCause.SONIC_BOOM
By: Doc <nachito94@msn.com>
2022-06-09 21:03:33 +10:00
Bukkit/Spigot
b456a7cd08 #752: Make Leaves Waterlogged
By: Doc <nachito94@msn.com>
2022-06-08 17:30:29 +10:00
Bukkit/Spigot
6243f50313 Downgrade dependency version
By: md_5 <git@md-5.net>
2022-06-08 09:01:11 +10:00
Bukkit/Spigot
ec575f5252 Update to Minecraft 1.19
By: md_5 <git@md-5.net>
2022-06-08 02:00:00 +10:00
Bukkit/Spigot
9bfa9ca85b #745: Expose more information about advancements
By: MartenM <marten.struijk@gmail.com>
2022-06-05 16:23:46 +10:00
Bukkit/Spigot
5e9386f3e0 #749: Various javadoc improvements
By: DerFrZocker <derrieple@gmail.com>
2022-06-05 10:05:54 +10:00
Bukkit/Spigot
eafbc2ba3a #748: Remove permissible recalculation from Permission constructor
This fixes issues that simply creating a new Permission instance would lead
to permission defaults and permissibles to get recalcuated even if the
permission itself was never added to the server or was already present.

By: Phoenix616 <max@themoep.de>
2022-06-05 10:05:51 +10:00
Bukkit/Spigot
1c96f9a8e8 SPIGOT-7027: Documentation for ItemMeta#getCustomModelData is incorrect
By: Doc <nachito94@msn.com>
2022-06-01 19:02:49 +10:00
Bukkit/Spigot
7eccce6d6f #743: Support setting individual Wither head targets
By: Yannick Lamprecht <yannicklamprecht@live.de>
2022-05-17 19:26:59 +10:00
Bukkit/Spigot
4dea0ab04a #742: Make World implement Keyed
By: pop4959 <pop4959@gmail.com>
2022-05-09 18:07:47 +10:00
Bukkit/Spigot
0854352e80 SPIGOT-6949: Configuration sections that are nested within Maps or Lists are not properly serialized.
This broke with the configuration changes in
ed8a152b3a.

This commit reverts one of the changes of this other commit so that
nested configuration sections are serialized as Maps again.

Although the types of these nested configuration sections are not
preserved when reloading a configuration (they turn into Maps), their
contents should at least be preserved, as it has been the case in
earlier Bukkit versions.

By: blablubbabc <lukas@wirsindwir.de>
2022-04-22 19:38:45 +10:00
Bukkit/Spigot
212f79b449 SPIGOT-6992: Add LimitedLife/LifeTicks/Bound APIs to Vex
By: Doc <nachito94@msn.com>
2022-04-21 06:47:24 +10:00
Bukkit/Spigot
46877fe5a4 #735: Add Villager#zombify
By: Doc <nachito94@msn.com>
2022-04-15 13:48:49 +10:00
Bukkit/Spigot
dfc7a87b61 #690: Add method to read ItemStack input
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-04-15 12:54:03 +10:00
Bukkit/Spigot
2d304809b5 SPIGOT-6829: Add per-player world border API
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-04-09 09:39:19 +10:00
Bukkit/Spigot
e795b5d12f #737: Update WorldCreator#generatorSettings docs
By: Martoph <sager1018@gmail.com>
2022-03-27 16:25:51 +11:00
Bukkit/Spigot
d72a32d114 #736: Update README
By: Doc <nachito94@msn.com>
2022-03-24 13:39:30 +11:00
Bukkit/Spigot
3c7b2251cf #734: Make PlayerInventory#getItem Nullable
By: Doc <nachito94@msn.com>
2022-03-15 07:32:19 +11:00
Bukkit/Spigot
1019bd7464 #725: Add Item Unlimited Lifetime APIs
By: Gero <gecam59@gmail.com>
2022-03-12 09:26:12 +11:00
Bukkit/Spigot
7c60ceee2c #638: Add CreativeCategory API for Materials
By: Parker Hawke <hawkeboyz2@hotmail.com>
2022-03-03 18:55:54 +11:00
Bukkit/Spigot
6b7d2d9a91 Update to Minecraft 1.18.2
By: md_5 <git@md-5.net>
2022-03-01 02:00:00 +11:00
Bukkit/Spigot
f37d1372b3 SPIGOT-6944: Correct TabCompleter docs
By: md_5 <git@md-5.net>
2022-02-21 12:02:28 +11:00
Bukkit/Spigot
c70f8f252c SPIGOT-6935: Make Arrow color nullable
By: Doc <nachito94@msn.com>
2022-02-19 09:36:06 +11:00
Bukkit/Spigot
0f857065bd #730: Added a checkstyle rule to check for missing package declarations.
Added a suppression to ignore the test sources.

By: blablubbabc <lukas@wirsindwir.de>
2022-02-19 09:33:06 +11:00
Bukkit/Spigot
9d127bc843 #730: Added missing declaration of the org.bukkit.profile package.
By: blablubbabc <lukas@wirsindwir.de>
2022-02-19 09:33:05 +11:00
Bukkit/Spigot
6173d64a2e #727: Fix typo in StriderTemperatureChangeEvent javadocs
By: Ollie <69084614+olijeffers0n@users.noreply.github.com>
2022-02-17 08:08:57 +11:00
Bukkit/Spigot
91ffd11c33 #723: Add Furnace#getRecipesUsed
By: Doc <nachito94@msn.com>
2022-02-15 18:48:12 +11:00
Bukkit/Spigot
2ee538ec02 #726: Add Particle dataTypes to javadocs
By: mfnalex <1122571+mfnalex@users.noreply.github.com>
2022-02-15 09:50:10 +11:00
Bukkit/Spigot
0458eb0bfc #724: Add PDC to World
By: DerFrZocker <derrieple@gmail.com>
2022-02-15 09:35:32 +11:00
Bukkit/Spigot
dd8840cd02 SPIGOT-6918: Add SpawnCategory API and configurations for Axolotls
By: Doc <nachito94@msn.com>
2022-02-07 18:47:24 +11:00
Bukkit/Spigot
7c667b37d9 #719: Add Player Profile API
Slight changes may occur as this API is stabilized.

This PR is based on work previously done by DerFrZocker in #663.

By: blablubbabc <lukas@wirsindwir.de>
2022-02-03 09:25:35 +11:00
Bukkit/Spigot
e6392d1992 SPIGOT-6910: Add BlockDamageAbortEvent
By: FreeSoccerHDX <unconfigured@null.spigotmc.org>
2022-02-02 08:56:20 +11:00
Bukkit/Spigot
7bcd1d10f2 #717: Add PlayerHideEntityEvent and PlayerShowEntityEvent
By: Gero <gecam59@gmail.com>
2022-02-01 18:01:00 +11:00
Bukkit/Spigot
8b26bf228f SPIGOT-6914: Remove confusing loadbefore message for dependency issues
By: md_5 <git@md-5.net>
2022-01-29 11:50:51 +11:00
Bukkit/Spigot
4504a6a32d #720: Fix bounds in documentation about power in FireworkMeta
By: Doc <nachito94@msn.com>
2022-01-28 08:29:00 +11:00
Bukkit/Spigot
945ba17577 SPIGOT-6890: Add repair cost amount in AnvilInventory
By: Doc <nachito94@msn.com>
2022-01-26 09:30:16 +11:00
Bukkit/Spigot
2ea9616224 #716: Fix scheduler javadocs (previously, the <b> tag broke the rendering)
By: mfnalex <1122571+mfnalex@users.noreply.github.com>
2022-01-25 08:41:00 +11:00
Bukkit/Spigot
c9a9a92427 Improve item cooldown JavaDocs
By: md_5 <git@md-5.net>
2022-01-25 08:28:49 +11:00
Bukkit/Spigot
a959ba09e0 Clarify documentation of Block#getBreakSpeed
By: md_5 <git@md-5.net>
2022-01-22 08:56:42 +11:00
Bukkit/Spigot
b8a1538537 SPIGOT-6899: Add Player#getPreviousGameMode
By: Doc <nachito94@msn.com>
2022-01-17 10:11:47 +11:00
Bukkit/Spigot
ab18a979b8 SPIGOT-6901: Make Random Nullable in LootTable
By: Doc <nachito94@msn.com>
2022-01-17 10:09:22 +11:00
Bukkit/Spigot
b1dcda93fd Fix typo in CreatureSpawnEvent documentation
By: md_5 <git@md-5.net>
2022-01-14 10:56:29 +11:00
Bukkit/Spigot
c502bcdc99 SPIGOT-6888: Add SpawnReason for Vex spawned by Evokers
By: Doc <nachito94@msn.com>
2022-01-14 10:56:03 +11:00
Bukkit/Spigot
1973ad7228 #713: Repairable should extend ItemMeta
By: Doc <nachito94@msn.com>
2022-01-14 10:18:25 +11:00
Bukkit/Spigot
64aa0d9c60 #704: Add generateTree method with a predicate
By: DerFrZocker <derrieple@gmail.com>
2022-01-12 10:52:28 +11:00
Bukkit/Spigot
5dd0f2a5b6 #706: Add playSound with Entity as source
By: Gero <gecam59@gmail.com>
2022-01-11 18:53:34 +11:00
Bukkit/Spigot
9003a55038 SPIGOT-6886: Restore previous behaviour of loading unusual config keys
By: blablubbabc <lukas@wirsindwir.de>
2022-01-09 10:04:49 +11:00
Bukkit/Spigot
215952d23f Fix saving configs which are only a header
By: md_5 <git@md-5.net>
2022-01-08 09:39:38 +11:00
Bukkit/Spigot
78dab8fe52 #705: Add PDC to Structures
By: Martoph <sager1018@gmail.com>
2022-01-07 09:40:30 +11:00
Bukkit/Spigot
7aec97546b Add workaround for SnakeYAML 100 comment limit
By: md_5 <git@md-5.net>
2022-01-04 09:25:20 +11:00
Bukkit/Spigot
4fd0026eb5 #703: Fix/test yaml anchors and merge
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2022-01-02 21:08:01 +01:00
Bukkit/Spigot
014fc854ad SPIGOT-6875: Update references to old world height limits
By: md_5 <git@md-5.net>
2022-01-02 11:58:32 +11:00
Bukkit/Spigot
7454ac76ed #278: Add API to check and set if horses are grazing hay
By: Matthew <stteg@hotmail.com>
2022-01-01 09:58:01 +11:00
Bukkit/Spigot
f976377367 #275: Add isJohnny / setJohnny for Vindicator
By: Matthew <stteg@hotmail.com>
2022-01-01 09:58:00 +11:00
Bukkit/Spigot
245124a723 #274: Add trap related methods to SkeletonHorse
By: Matthew <stteg@hotmail.com>
2022-01-01 09:58:00 +11:00
Bukkit/Spigot
6c398630e8 Make EnderDragon extend/implement Mob
By: md_5 <git@md-5.net>
2021-12-30 09:35:43 +11:00
Bukkit/Spigot
fc98731c16 #702: fromNodeTree is now private, this does not belong to the API
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-29 07:52:44 +11:00
Bukkit/Spigot
b911613abe #701: Option to configure the max width of a line in the config
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-27 09:47:14 +11:00
Bukkit/Spigot
a4c6cce830 #699: Add missing information to javadoc of ItemFlag#HIDE_POTION_EFFECTS
By: SkytAsul <skytasul@gmail.com>
2021-12-26 08:57:12 +11:00
Bukkit/Spigot
e9b09df87c SPIGOT-5766: Updates related to the villager trading changes introduced in MC 1.14.
* The VillagerReplenishTradeEvent is now called whenever a villager restocks one of its trades. Previously, it was called in some (but not all) cases in which a villager updates the special price values of its merchant recipes.
* VillagerReplenishTradeEvent#get/setBonus have been deprecated and #setBonus has no effect anymore. The way villagers restock their trades has changed in MC 1.14: Instead of adjusting the max uses of their trades, they reset their uses to 0. #getBonus returns the value of MerchantRecipe#getUses now.
* Updated various outdated and inaccurate javadoc in MerchantRecipe.

By: blablubbabc <lukas@wirsindwir.de>
2021-12-25 10:14:12 +11:00
Bukkit/Spigot
489aef2efc #691: Add Material#getDefaultAttributeModifiers
By: coll1234567 <joshl5324@gmail.com>
2021-12-24 12:06:21 +11:00
Bukkit/Spigot
0503e4faed SPIGOT-6866: Fixed spaces a between comment indicator and actual comment
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-23 23:07:00 +01:00
Bukkit/Spigot
46d8d2cd11 Restore protected members to YamlConfiguration
By: md_5 <git@md-5.net>
2021-12-23 11:33:21 +11:00
Bukkit/Spigot
7ccab27756 #693: Add proper javadocs for dolphins grace, bad omen, and hero of the village
By: coll1234567 <joshl5324@gmail.com>
2021-12-22 09:03:22 +11:00
Bukkit/Spigot
ed8a152b3a SPIGOT-3247: Comment support for YAML files
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-21 08:35:19 +11:00
Bukkit/Spigot
e61faa55b8 Dependency upgrades
By: md_5 <git@md-5.net>
2021-12-18 12:09:21 +11:00
Bukkit/Spigot
a44ad8b54a SPIGOT-6789: Improve resource pack related API
By: Patrick Choe <mailpatrickkr@gmail.com>
2021-12-18 11:46:20 +11:00
Bukkit/Spigot
7f87269fa8 SPIGOT-6836: Add more API methods in MerchantRecipe
By: Doc <nachito94@msn.com>
2021-12-18 11:44:31 +11:00
Bukkit/Spigot
d4062d0461 Upgrade to SnakeYAML 1.30 release
By: md_5 <git@md-5.net>
2021-12-18 11:36:31 +11:00
Bukkit/Spigot
203cfd5697 Update to Minecraft 1.18.1
By: md_5 <git@md-5.net>
2021-12-11 00:00:00 +11:00
Bukkit/Spigot
308cc50afa #687: Fix NPE from previous commits
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-06 07:22:16 +11:00
Bukkit/Spigot
ab0429fddc #686: Fix contains for default section generating real sections
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-04 22:05:54 +01:00
Bukkit/Spigot
3ddde21487 SPIGOT-6830: Fix addDefaults with Configuration overrides child Sections in the defaults
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-04 21:38:45 +01:00
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
Bukkit/Spigot
146a88e577 SPIGOT-6641: Use varargs in sendMessage
By: DerFrZocker <derrieple@gmail.com>
2021-07-22 09:38:11 +10:00
Bukkit/Spigot
95cc961f13 SPIGOT-6545: Unable to set Guardian target via API while awareness is disabled
By: DerFrZocker <derrieple@gmail.com>
2021-07-22 09:36:51 +10:00
Bukkit/Spigot
be93ac366d SPIGOT-6661: Fix missing radius from GenericGameEvent
By: md_5 <git@md-5.net>
2021-07-21 09:34:12 +10:00
Bukkit/Spigot
a2f69a4ad8 SPIGOT-6369: Add ItemStack to HangingPlaceEvent
By: DerFrZocker <derrieple@gmail.com>
2021-07-21 09:32:48 +10:00
Bukkit/Spigot
2e77f4180e SPIGOT-6657: Add getPlayer to SheepDyeWoolEvent
By: md_5 <git@md-5.net>
2021-07-18 11:07:59 +10:00
Bukkit/Spigot
ba6c523bf3 SPIGOT-6656: CauldronLevelChangeEvent is not fired correctly when dripstone fills the cauldron
By: md_5 <git@md-5.net>
2021-07-18 10:14:43 +10:00
Bukkit/Spigot
581806d851 SPIGOT-6642: Throw better message if plugin.yml is empty
By: md_5 <git@md-5.net>
2021-07-17 11:25:17 +10:00
Bukkit/Spigot
c30e6c45cd #636: Add FurnaceStartSmeltEvent
By: Rabbitual <38820203+Rabbitual@users.noreply.github.com>
2021-07-17 11:19:48 +10:00
Bukkit/Spigot
16922e92de SPIGOT-6646: Issue with map palette ranges
By: md_5 <git@md-5.net>
2021-07-15 20:32:47 +10:00
Bukkit/Spigot
64a83e2da9 #640: Add new Causes for LightningStrikeEvent
By: Doc <nachito94@msn.com>
2021-07-13 19:16:08 +10:00
Bukkit/Spigot
d4eef77474 SPIGOT-6637: Revert "#636: Add FurnaceStartSmeltEvent"
This reverts commit 09f5cdf4f8.

By: md_5 <git@md-5.net>
2021-07-11 12:26:48 +10:00
Bukkit/Spigot
730e0df7e4 SPIGOT-6623: Missing API reasons for entity freezing
By: Doc <nachito94@msn.com>
2021-07-11 09:32:32 +10:00