Commit graph

3343 commits

Author SHA1 Message Date
Minecrell
36723cdd60 Use TerminalConsoleAppender for console improvements
Rewrite console improvements (console colors, tab completion,
persistent input line, ...) using JLine 3.x and TerminalConsoleAppender.

Also uses the new ANSIComponentSerializer to serialize components when
logging them via the ComponentLogger, or when sending messages to the
console, for hex color support.

New features:
  - Support console colors for Vanilla commands
  - Add console colors for warnings and errors
  - Server can now be turned off safely using CTRL + C. JLine catches
    the signal and the implementation shuts down the server cleanly.
  - Support console colors and persistent input line when running in
    IntelliJ IDEA

Other changes:
  - Server starts 1-2 seconds faster thanks to optimizations in Log4j
    configuration

Co-Authored-By: Emilia Kond <emilia@rymiel.space>
2017-06-09 19:03:43 +02:00
Riley Park
66779f5c86 Adventure
== AT ==
public net.minecraft.network.chat.HoverEvent$ItemStackInfo item
public net.minecraft.network.chat.HoverEvent$ItemStackInfo count
public net.minecraft.network.chat.HoverEvent$ItemStackInfo components
public net.minecraft.network.chat.contents.TranslatableContents filterAllowedArguments(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;

Co-authored-by: zml <zml@stellardrift.ca>
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2021-01-29 17:54:03 +01:00
Aikar
b01c811c2f MC Utils
== AT ==
public net.minecraft.server.level.ServerChunkCache mainThread
public net.minecraft.server.level.ServerLevel chunkSource
public org.bukkit.craftbukkit.inventory.CraftItemStack handle
public net.minecraft.server.level.ChunkMap getVisibleChunkIfPresent(J)Lnet/minecraft/server/level/ChunkHolder;
public net.minecraft.server.level.ServerChunkCache mainThreadProcessor
public net.minecraft.server.level.ServerChunkCache$MainThreadExecutor
public net.minecraft.world.level.chunk.LevelChunkSection states
2016-03-28 20:55:47 -04:00
Jake Potrebic
a82a09d198 CB fixes
* Missing Level -> LevelStem generic in StructureCheck
  Need to use the right for injectDatafixingContext (Spottedleaf)

* Fix summon_entity effect attempting to add incorrect entity (granny)

* Removed incorrect parent perm for `minecraft.debugstick.always` (Machine_Maker)

* Fixed method signature of Marker#addPassenger (Machine_Maker)

* Removed unneeded UOE in CustomWorldChunkManager (extends BiomeSource) (Machine_Maker)

* Honor Server#getLootTable method contract (Machine_Maker)

Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
2022-02-25 07:14:48 -08:00
Jake Potrebic
769119f918 Paper config files
== AT ==
public org.spigotmc.SpigotWorldConfig getBoolean(Ljava/lang/String;Z)Z
public org.spigotmc.SpigotWorldConfig getDouble(Ljava/lang/String;)D
public org.spigotmc.SpigotWorldConfig getDouble(Ljava/lang/String;D)D
public org.spigotmc.SpigotWorldConfig getInt(Ljava/lang/String;)I
public org.spigotmc.SpigotWorldConfig getInt(Ljava/lang/String;I)I
public org.spigotmc.SpigotWorldConfig getList(Ljava/lang/String;Ljava/lang/Object;)Ljava/util/List;
public org.spigotmc.SpigotWorldConfig getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
public net.minecraft.server.dedicated.DedicatedServerProperties reload(Lnet/minecraft/core/RegistryAccess;Ljava/util/Properties;Ljoptsimple/OptionSet;)Lnet/minecraft/server/dedicated/DedicatedServerProperties;
public net.minecraft.world.level.NaturalSpawner SPAWNING_CATEGORIES
2022-06-08 22:20:16 -07:00
Jake Potrebic
e954a5a260 Test changes
- configure mockito agent to address changes in newer java versions see https://openjdk.org/jeps/451

Co-authored-by: yannnicklamprecht <yannicklamprecht@live.de>
2023-02-13 14:14:56 -08:00
Zach Brown
bc10922ef3 Build system changes
== AT ==
public net.minecraft.server.packs.VanillaPackResourcesBuilder safeGetPath(Ljava/net/URI;)Ljava/nio/file/Path;

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2016-02-29 20:40:33 -06:00
Kyle Wood
f161aac557 Remap fixes 2021-06-11 05:25:03 -05:00
CraftBukkit/Spigot
9940174241 Add unload-frozen-chunks option
By: md_5 <git@md-5.net>
2024-05-18 11:39:58 +10:00
CraftBukkit/Spigot
479ce445d6 Configurable Below Zero Generation
By: DerFrZocker <derrieple@gmail.com>
2021-11-28 12:09:29 +11:00
CraftBukkit/Spigot
7cfc37b17d Configurable Thunder Chance
By: md_5 <git@md-5.net>
2021-10-24 20:29:25 +11:00
CraftBukkit/Spigot
e81bcdf643 Allow Disabling Player Data Saving
By: Sander Knauff <sanderknauff@hotmail.com>
2020-11-07 18:23:42 +11:00
CraftBukkit/Spigot
76c24a1454 Add log-villager-deaths option
By: md_5 <git@md-5.net>
2019-12-14 10:26:52 +11:00
CraftBukkit/Spigot
6fcc9cce6d Add creative mode NBT permissions
By: md_5 <git@md-5.net>
2019-02-25 19:26:56 +11:00
CraftBukkit/Spigot
d16d3c3548 Configurable Advancement Disabling
Allow disabling any (or all) inbuilt advancements with a configuration option.

By: md_5 <git@md-5.net>
2017-06-09 16:29:31 +10:00
CraftBukkit/Spigot
d0a65bc995 Allow Capping (Tile)Entity Tick Time.
This patch adds world configuration options for max-tick-time.entity / max-tick-time.tile which allows setting a hard cap on the amount of time (in milliseconds) that a tick can consume. The default values of 50ms each are very conservative and mean this feature will not activate until the server is well below 15tps (minimum). Values of 20ms each have been reported to provide a good performance increase, however I personally think 25ms for entities and 10-15ms for tiles would give even more significant gains, assuming that these things are not a large priority on your server.

For tiles there is very little tradeoff for this option, as tile ticks are based on wall time for most things, however for entities setting this option too low could lead to jerkiness / lag. The gain however is a faster and more responsive server to other actions such as blocks, chat, combat etc.

This feature was commisioned by Chunkr.

By: md_5 <git@md-5.net>
2015-02-20 21:39:31 +11:00
CraftBukkit/Spigot
49288f7f95 BungeeCord Chat API
By: md_5 <git@md-5.net>
2014-12-13 03:06:05 +01:00
CraftBukkit/Spigot
5ec1e1bc24 Configurable Hanging Tick
By: drXor <mcyoung@mit.edu>
2014-08-09 13:56:51 -04:00
CraftBukkit/Spigot
d7f3ba3df3 Limit TNT Detonations per tick
This gives a per-world control on how much TNT will be processed per-tick,
preventing a massive TNT detonation from lagging out the server.

By: Aikar <aikar@aikar.co>
2014-08-20 18:12:32 -04:00
CraftBukkit/Spigot
c34736a0d2 Make debug logging togglable.
By: Minecrell <dev@minecrell.net>
2014-08-17 12:42:53 +02:00
CraftBukkit/Spigot
f026f7905e Add Hunger Config Values
By: lazertester <austin.techhead@gmail.com>
2014-08-17 19:56:17 +10:00
CraftBukkit/Spigot
0098808c9e Allow Attribute Capping.
Apply some sensible defaults and allow server owners to customize the maximum values of selected common attributes.

By: md_5 <git@md-5.net>
2014-07-28 16:55:51 +10:00
CraftBukkit/Spigot
5b20d95920 Apply NBTReadLimiter to more things.
By: md_5 <git@md-5.net>
2014-07-27 20:46:04 +10:00
CraftBukkit/Spigot
f972379105 Make "moved too quickly" limit configurable
By: Jonas Konrad <me@yawk.at>
2014-07-22 15:59:01 +02:00
CraftBukkit/Spigot
7b951a7ec6 Make "moved wrongly" limit configurable
By: Jonas Konrad <me@yawk.at>
2014-07-04 23:03:13 +02:00
CraftBukkit/Spigot
0166f71409 Prevent a crash involving attributes
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2014-07-19 19:54:41 +01:00
CraftBukkit/Spigot
c4d2bdfd85 Further Seed Customisation
Allow server admins that really want to to customise the seeds used in world generation even further.

By: md_5 <git@md-5.net>
2014-07-04 13:28:45 +10:00
CraftBukkit/Spigot
7bee9a20b3 Configurable save-on-stop-only for UserCache
By: drXor <mcyoungsota@gmail.com>
2014-05-23 18:05:10 -04:00
CraftBukkit/Spigot
542b7a7eb1 Configurable UserCache cap
By: drXor <mcyoungsota@gmail.com>
2014-04-25 18:17:30 -04:00
CraftBukkit/Spigot
8b9d2faa11 Prevent NoClassDefError crash and notify on crash
By: David <dmck2b@gmail.com>
2014-04-21 12:43:08 +01:00
CraftBukkit/Spigot
1cb6ba6942 Configurable dragon death and wither spawn sounds
By: drXor <mcyoungsota@gmail.com>
2014-03-29 13:44:25 -04:00
CraftBukkit/Spigot
59b0d3d6b2 Implement Silenceable Lightning API
By: drXor <mcyoungsota@gmail.com>
2014-02-23 16:16:59 -04:00
CraftBukkit/Spigot
9c8d5eefd0 Allow vanilla commands to be the main version of a command
By: Thinkofdeath <thethinkofdeath@gmail.com>
2014-02-12 20:44:14 +00:00
CraftBukkit/Spigot
8440092f32 Add support for fetching hidden players
By: Tux <write@imaginarycode.com>
2014-02-09 14:03:03 -05:00
CraftBukkit/Spigot
c3ce457c08 Add Option to Silence CommandBlock Console
By: md_5 <git@md-5.net>
2014-02-09 14:39:01 +11:00
CraftBukkit/Spigot
ff6d4b2d90 Spam Filter Exclusions
By: md_5 <git@md-5.net>
2014-02-08 08:13:40 +00:00
CraftBukkit/Spigot
b26b6dadb0 Add Optional Tick Shuffling
This prevents players from 'gaming' the server, and strategically relogging to increase their position in the tick order.

By: md_5 <git@md-5.net>
2014-01-27 08:39:26 +11:00
CraftBukkit/Spigot
23c02d0942 Configurable Ping Sample Size
By: md_5 <git@md-5.net>
2014-01-26 21:48:34 +11:00
CraftBukkit/Spigot
cd82f21617 Highly Optimized Tick Loop
By: md_5 <git@md-5.net>
2017-01-26 21:50:51 +00:00
CraftBukkit/Spigot
68214fb1a0 Allow toggling of ZombiePigmen spawning in portal blocks
By: Dmck2b <dmck2b+github@gmail.com>
2014-01-20 20:18:23 +00:00
CraftBukkit/Spigot
1f67404bb9 Allow statistics to be disabled/forced
By: Thinkofdeath <thethinkofdeath@gmail.com>
2014-01-07 15:56:26 +00:00
CraftBukkit/Spigot
fc81df77cf Add Option to Nerf Mobs from Spawners
By: md_5 <git@md-5.net>
2014-02-02 16:55:46 +00:00
CraftBukkit/Spigot
cbf16b353d Configurable Amount of Netty Threads
This brings back the option that the Spigot version of netty saw. By default Netty will try and use cores*2 threads, however if running multiple servers on the same machine, this can be too many threads. Additionally some people have 16 core servers. If 32 Netty threads are allowed in this setup, then the lock contention, and thus blocking between threads becomes much greater, leading to decreased performance.

By: md_5 <git@md-5.net>
2013-12-13 11:58:58 +11:00
CraftBukkit/Spigot
0abc9c4cd1 Allow Disabling Zombie Villager Aggression
Ability to configure if Zombies will be aggressive towards Villagers.

By: Dylan Xaldin <Puremin0rez515@gmail.com>
2013-12-12 18:05:03 -06:00
CraftBukkit/Spigot
3d4c222263 BungeeCord Support
* Provides support for IP forwarding via BungeeCord.
* Treats Bungee as Online Mode.

By: md_5 <git@md-5.net>
2014-04-12 21:23:58 +10:00
CraftBukkit/Spigot
496995ccaa Watchdog Thread.
By: md_5 <git@md-5.net>
2014-08-05 17:20:19 +01:00
CraftBukkit/Spigot
29a8c7f4b3 Arrow Despawn Rate
By: md_5 <git@md-5.net>
2013-10-14 19:20:10 +11:00
CraftBukkit/Spigot
9e02bc055b Implement respawn API.
By: ninja- <xninja@openmailbox.org>
2013-10-08 14:34:49 +02:00
CraftBukkit/Spigot
55148a3f2c Configurable Messages
By: md_5 <git@md-5.net>
2013-06-21 19:21:58 +10:00
CraftBukkit/Spigot
cabf908e4c Allow Disabling of Command TabComplete
By: md_5 <git@md-5.net>
2013-06-21 18:05:54 +10:00
CraftBukkit/Spigot
0eed728812 Allow Disabling of Command Logging
By: md_5 <git@md-5.net>
2013-06-21 18:01:29 +10:00
CraftBukkit/Spigot
135df938cc Hopper Customisations
Allows editing hopper cooldowns and amount transferred per tick.

By: erocs <github@erocs.org>
2013-09-08 12:06:15 -07:00
CraftBukkit/Spigot
831bf8fb7e Entity Tracking Ranges
This will let you configure how far to track entities in range from players, so that the entity does not render on the client if out of this range.
This has multiple benefits:

1) Less bandwidth. Not sending update packets for entities that are not even close to a player, or even close enough to clearly see.
2) Less lag by maps in item frames - Default range is 160 blocks... Many players can track that item frame and cause lag and not even see it.
3) Less lag in general - Less work for the server to do
4) Less client lag - Not trying to render distant item frames and paintings and entities will reduce entity count on the client, which is major for shop/town worlds which may use tons of item frames.

By: Aikar <aikar@aikar.co>
2013-02-20 11:58:47 -05:00
CraftBukkit/Spigot
94ccdc0d40 Metrics
By: md_5 <git@md-5.net>
2013-02-23 08:58:35 +11:00
CraftBukkit/Spigot
28c8009a16 Entity Activation Range
This feature gives 3 new configurable ranges that if an entity of the matching type is outside of this radius of any player, will tick at 5% of its normal rate.

This will drastically cut down on tick timings for entities that are not in range of a user to actually be "used".
This change can have dramatic impact on gameplay if configured too low. Balance according to your servers desired gameplay.

By: Aikar <aikar@aikar.co>
2024-11-02 18:16:11 +11:00
CraftBukkit/Spigot
54a84c6c79 Item Despawn Rate
By: md_5 <git@md-5.net>
2013-09-22 19:10:53 +10:00
CraftBukkit/Spigot
19bfb10583 Fix Mob Spawning Relative to View Distance
Changes the mob spawning algorithm to properly account for view distance and the range around players.

Needs better documentation.

By: md_5 <git@md-5.net>
2013-06-21 17:29:54 +10:00
CraftBukkit/Spigot
78524cb95e Spigot Timings
Overhauls the Timings System adding performance tracking all around the Minecraft Server

By: Aikar <aikar@aikar.co>
2013-01-10 00:18:11 -05:00
CraftBukkit/Spigot
127d8c1595 View Distance
This commit allows the user to select per world view distances.

By: md_5 <git@md-5.net>
2013-03-23 09:52:41 +11:00
CraftBukkit/Spigot
5240271410 Async Operation Catching
Catch and throw an exception when a potentially unsafe operation occurs on a thread other than the main server thread.

By: md_5 <git@md-5.net>
2014-03-25 16:10:01 +11:00
CraftBukkit/Spigot
973f52a650 Merge tweaks and configuration
This allows the merging of Experience orbs, as well as the configuration of the merge radius of items. Additionally it refactors the merge algorithm to be a better experience for players.

By: md_5 <git@md-5.net>
2013-03-23 09:46:33 +11:00
CraftBukkit/Spigot
df403168ff Crop Growth Rates
Allows configuring the growth rates of crops as a percentage of their normal growth rate.

By: md_5 <git@md-5.net>
2016-03-07 22:14:13 +11:00
CraftBukkit/Spigot
cba0d1f1ec Spigot Configuration
Provides the basic infrastructure to load and save the Spigot configuration file, spigot.yml

By: md_5 <git@md-5.net>
2013-07-07 09:32:53 +10:00
CraftBukkit/Spigot
6b0bae2fb6 Skeleton API Implementations
This contains the basic, empty implementations for some Spigot-API extensions. They are included early in the patching progress so that compilation will still succeed midway despite the APIs only being provided by subsequent patches.

By: md_5 <git@md-5.net>
2013-06-02 15:10:56 +10:00
CraftBukkit/Spigot
02380b2f27 POM Changes
Basic changes to the build system which mark the artifact as Spigot, and the necessary code changes to ensure proper functionality. Also disables the auto updater provided by CraftBukkit as it is useless to us.

By: md_5 <git@md-5.net>
2013-07-02 13:07:39 +10:00
CraftBukkit/Spigot
30e4583dbe Remap CraftBukkit to Mojang+Yarn Mappings
By: Initial Source <noreply+automated@papermc.io>
2024-12-11 22:26:55 +01:00
CraftBukkit/Spigot
a265d64138 Move CraftBukkit per-file patches
By: Initial <noreply+automated@papermc.io>
2024-12-11 22:26:36 +01:00
CraftBukkit/Spigot
5381ea78f7 Update to Minecraft 1.21.4
By: md_5 <git@md-5.net>
2024-12-04 03:20:00 +11:00
CraftBukkit/Spigot
267ae64dd6 Remove outdated build delay
By: md_5 <git@md-5.net>
2024-12-04 03:16:22 +11:00
CraftBukkit/Spigot
20071139d1 SPIGOT-7971: NotSerializableException on serialize CraftUseCooldownComponent
By: md_5 <git@md-5.net>
2024-12-01 09:52:58 +11:00
CraftBukkit/Spigot
9850cb85dd SPIGOT-7970: World#getMaxHeight() returning incorrect value
By: md_5 <git@md-5.net>
2024-11-30 15:12:42 +11:00
CraftBukkit/Spigot
b06cbec171 SPIGOT-7966: Some trees do not generate with #generateTree
By: md_5 <git@md-5.net>
2024-11-27 07:00:57 +11:00
CraftBukkit/Spigot
a11ca51ee1 #1515: Add a Class reader and Class node argument provider
By: DerFrZocker <derrieple@gmail.com>
2024-11-25 07:35:28 +11:00
CraftBukkit/Spigot
eba2b1e948 #1514: Add a test case for ClassTraverser
By: DerFrZocker <derrieple@gmail.com>
2024-11-25 07:35:18 +11:00
CraftBukkit/Spigot
4992aa1b5d Fix Inventory#addItem not respecting max stack size
By: md_5 <git@md-5.net>
2024-11-24 11:06:35 +11:00
CraftBukkit/Spigot
f642133483 #1490: Add method to get Advancement requirements
By: Nothixal <nothixal@gmail.com>
2024-11-23 21:25:14 +11:00
CraftBukkit/Spigot
4487df57e1 #1512: Test Art class based on specific values instead of the implementation, to better catch implementation changes
By: DerFrZocker <derrieple@gmail.com>
2024-11-23 21:14:14 +11:00
CraftBukkit/Spigot
5a6e315a79 #1503: Simplify CAS loop to getAndSet
By: sunmisc <jolyjdia@gmail.com>
2024-11-23 21:12:04 +11:00
CraftBukkit/Spigot
0f66e39e46 Make BlockDataMeta#setBlockData hide unspecified states
By: md_5 <git@md-5.net>
2024-11-23 21:08:50 +11:00
CraftBukkit/Spigot
8f7a88cc91 SPIGOT-7960: Fix inconsistency between natural item drop coordinates
By: md_5 <git@md-5.net>
2024-11-20 21:42:05 +11:00
CraftBukkit/Spigot
b3b4fd1c4b SPIGOT-7960: Improve natural item drop methods
By: md_5 <git@md-5.net>
2024-11-19 20:16:47 +11:00
CraftBukkit/Spigot
c7707ece4c SPIGOT-7957: Fix setTarget method for Breeze
By: Doc <nachito94@msn.com>
2024-11-17 11:22:36 +11:00
CraftBukkit/Spigot
a768ea0ddf SPIGOT-7953: Item cooldown must be greater than 0
By: md_5 <git@md-5.net>
2024-11-12 20:37:58 +11:00
CraftBukkit/Spigot
475a5576bc Increase outdated build delay
By: md_5 <git@md-5.net>
2024-11-10 21:20:09 +11:00
CraftBukkit/Spigot
bbe0572877 SPIGOT-7946: API for server pause when empty seconds
By: md_5 <git@md-5.net>
2024-11-06 20:38:09 +11:00
CraftBukkit/Spigot
30af9c34dd SPIGOT-7949: Registering a new scoreboard objective with an empty display name throws a NPE
By: md_5 <git@md-5.net>
2024-11-06 20:22:58 +11:00
CraftBukkit/Spigot
b9a4bb1cd1 SPIGOT-7948: Bukkit#dispatchCommand uses the wrong CommandListenerWrapper for Players
By: md_5 <git@md-5.net>
2024-11-06 20:20:36 +11:00
CraftBukkit/Spigot
8fc0f462c0 SPIGOT-7945: Bukkit#dispatchCommand throws UnsupportedOperationException
By: md_5 <git@md-5.net>
2024-11-04 07:25:07 +11:00
CraftBukkit/Spigot
83f48fb3c6 SPIGOT-7933: Improve custom Minecart max speed
By: md_5 <git@md-5.net>
2024-11-03 09:22:20 +11:00
CraftBukkit/Spigot
d580602ebb SPIGOT-7937: Cannot spawn minecart during world generation with minecart_improvements enabled
By: md_5 <git@md-5.net>
2024-11-02 17:40:23 +11:00
CraftBukkit/Spigot
aefa65b696 #1504: Make Art an interface
By: DerFrZocker <derrieple@gmail.com>
2024-11-02 11:00:13 +11:00
CraftBukkit/Spigot
42ebf1afa4 #1502: Make Sound an interface
By: DerFrZocker <derrieple@gmail.com>
2024-11-02 11:00:08 +11:00
CraftBukkit/Spigot
7b903b41cb #1501: Make Biome an interface
By: DerFrZocker <derrieple@gmail.com>
2024-11-01 08:05:35 +11:00
CraftBukkit/Spigot
2960bff05e #1500: Rename implementation for Vault State methods
By: Doc <nachito94@msn.com>
2024-10-29 06:43:27 +11:00
CraftBukkit/Spigot
af6f2c9b41 #1499: Make Fluid an interface and add missing entry
By: DerFrZocker <derrieple@gmail.com>
2024-10-29 06:43:20 +11:00
CraftBukkit/Spigot
08c83835f3 #1498: Make Attribute an interface and align names with the new minecraft ones
By: DerFrZocker <derrieple@gmail.com>
2024-10-29 06:43:14 +11:00
CraftBukkit/Spigot
a15be74be3 SPIGOT-7929: Error when setting EquippableComponent
By: md_5 <git@md-5.net>
2024-10-27 07:33:54 +11:00
CraftBukkit/Spigot
762b4f15ca #1497: Move boat field rename entries to below key renaming, so that keys are also renamed
By: DerFrZocker <derrieple@gmail.com>
2024-10-27 07:27:35 +11:00
CraftBukkit/Spigot
54caf1484d #1496: Use correct Fluid class on Tags type check
By: DerFrZocker <derrieple@gmail.com>
2024-10-27 07:26:23 +11:00
CraftBukkit/Spigot
e1673f9708 #1494: TreeType - add missing pale oak trees
By: shanebeee <shanebolenback@me.com>
2024-10-24 07:07:57 +11:00
CraftBukkit/Spigot
0821d18951 SPIGOT-7924: Registering a ShapelessRecipe throws an IndexOutOfBoundsException
By: md_5 <git@md-5.net>
2024-10-24 06:53:07 +11:00
CraftBukkit/Spigot
1236b98371 Update to Minecraft 1.21.3
By: md_5 <git@md-5.net>
2024-10-24 06:15:00 +11:00
CraftBukkit/Spigot
adbb925fc4 SPIGOT-7922: ExactChoice recipe fails to be added
By: md_5 <git@md-5.net>
2024-10-23 19:38:39 +11:00
CraftBukkit/Spigot
cd2a2a27ff SPIGOT-7919: Add API to access current player input
By: md_5 <git@md-5.net>
2024-10-23 08:04:17 +11:00
CraftBukkit/Spigot
d6c970b00b SPIGOT-7918: Make error message clearer for slot types not present in player inventories
By: md_5 <git@md-5.net>
2024-10-23 07:30:39 +11:00
CraftBukkit/Spigot
a24f08778b SPIGOT-7920: Expose enderpearls of Player
By: md_5 <git@md-5.net>
2024-10-23 07:20:07 +11:00
CraftBukkit/Spigot
d3a23f42c3 Update to Minecraft 1.21.2
By: md_5 <git@md-5.net>
2024-10-23 02:15:00 +11:00
CraftBukkit/Spigot
2c4beb962b Remove outdated build delay
By: md_5 <git@md-5.net>
2024-10-23 02:00:00 +11:00
CraftBukkit/Spigot
2a98825ddf #1493: Improve reroute performance and add some tests
By: DerFrZocker <derrieple@gmail.com>
2024-10-15 21:05:19 +11:00
CraftBukkit/Spigot
8484d46297 Add support for Java 23
By: md_5 <git@md-5.net>
2024-10-14 19:57:04 +11:00
CraftBukkit/Spigot
c8344ab49d SPIGOT-7915: Fix World#getKeepSpawnInMemory() using Spawn Radius rather than Spawn Chunk Radius
By: Doc <nachito94@msn.com>
2024-10-10 07:56:26 +11:00
CraftBukkit/Spigot
7be855108f Fix HIDE_ENCHANTS flag in items without enchantments
By: Doc <nachito94@msn.com>
2024-10-07 14:16:09 -03:00
CraftBukkit/Spigot
f77cb8d6c2 Bump asm to 9.7.1 and re-add ClassReader to ClassWriter
By: DerFrZocker <derrieple@gmail.com>
2024-10-06 14:38:13 +02:00
CraftBukkit/Spigot
adf5fecbbb #1487: Add specific getTopInventory methods for InventoryView derivatives
By: Miles Holder <mwholder@proton.me>
2024-10-06 18:45:12 +11:00
CraftBukkit/Spigot
d7d206b995 SPIGOT-7907, #1484: Improve merchant recipe item matching behavior to more closely align with older versions
Before the update for MC 1.20.5 (item components), merchant recipes
would accept items with additional NBT tags. Since 1.20.5, merchant
recipes created via the Bukkit API no longer accept additional
components.

This changes which component types we pick for merchant recipes created
via the API to more closely match the behavior from before the MC 1.20.5
update, i.e. ignore any empty / default components again.

By: blablubbabc <lukas@wirsindwir.de>
2024-10-06 18:32:00 +11:00
CraftBukkit/Spigot
54c12bdb6e SPIGOT-7909: Always set HIDE_ENCHANTS flag to item if flag is set
By: md_5 <git@md-5.net>
2024-10-06 18:25:07 +11:00
CraftBukkit/Spigot
bad69bdc04 Increase outdated build delay
By: md_5 <git@md-5.net>
2024-10-06 18:18:22 +11:00
CraftBukkit/Spigot
8fc133212d SPIGOT-7910: Fix launching breeze wind charge from API and improve dispenser launch API
By: md_5 <git@md-5.net>
2024-09-29 10:29:39 +10:00
CraftBukkit/Spigot
074c4c011e SPIGOT-7902, #1477: Fix CraftMetaPotion#hasCustomEffects() does not check if customEffects (List) is empty
By: James Perry <beanp02@yahoo.com>
2024-09-27 08:35:25 +10:00
CraftBukkit/Spigot
060be9b96a Implement base methods for tags
By: md_5 <git@md-5.net>
2024-09-27 08:28:45 +10:00
CraftBukkit/Spigot
0278929667 Improve Registry#getOrThrow messages
By: md_5 <git@md-5.net>
2024-09-27 08:21:32 +10:00
CraftBukkit/Spigot
eb72b9d8a3 #1475: Add tests for Minecraft registry <-> Bukkit fields
By: DerFrZocker <derrieple@gmail.com>
2024-09-27 08:15:18 +10:00
CraftBukkit/Spigot
fbf9dd80d4 #1473: Change tests to use suites, to run tests in different environments and feature flags
By: DerFrZocker <derrieple@gmail.com>
2024-09-26 20:01:56 +10:00
CraftBukkit/Spigot
18f63085bb #1481: Fix BeaconView#set[X]Effect(null)
By: Miles Holder <mwholder@proton.me>
2024-09-25 07:52:14 +10:00
CraftBukkit/Spigot
98e7025512 #1480: Fix PerMaterialTest#isEdible test running for legacy materials
By: DerFrZocker <derrieple@gmail.com>
2024-09-20 07:23:06 +10:00
CraftBukkit/Spigot
52e03b47a2 #1479: Use custom #isBlock method in legacy init instead of the one in Material, since it relies on legacy being init
By: DerFrZocker <derrieple@gmail.com>
2024-09-20 07:17:47 +10:00
CraftBukkit/Spigot
c33c116001 Fix missing hasJukeboxPlayable
By: md_5 <git@md-5.net>
2024-09-17 21:09:21 +10:00
CraftBukkit/Spigot
5f1cd5748b SPIGOT-7881: CTRL+Pick Block saves position data into item
By: md_5 <git@md-5.net>
2024-09-15 17:17:10 +10:00
CraftBukkit/Spigot
4b1526b609 SPIGOT-7899: Smithing recipes don't require inputs
By: md_5 <git@md-5.net>
2024-09-15 16:50:24 +10:00
CraftBukkit/Spigot
5bc6a90535 SPIGOT-7894: NPE when sending tile entity update
By: md_5 <git@md-5.net>
2024-09-09 21:04:38 +10:00
CraftBukkit/Spigot
b7359583f2 SPIGOT-7895: PlayerItemBreakEvent not firing
By: md_5 <git@md-5.net>
2024-09-09 20:57:37 +10:00
CraftBukkit/Spigot
616ec5f700 SPIGOT-7891: Can't remove second ingredient of MerchantRecipe
By: md_5 <git@md-5.net>
2024-09-07 18:57:55 +10:00
CraftBukkit/Spigot
fbea3cdc0c #1458: Add MenuType API
By: Miles Holder <mwholder2005@gmail.com>
2024-09-07 18:52:00 +10:00
CraftBukkit/Spigot
ac5e815b3e SPIGOT-7867: Merchant instanceof AbstractVillager always returns false
By: Miles Holder <mwholder2005@gmail.com>
2024-09-07 18:14:09 +10:00
CraftBukkit/Spigot
7657f347d2 #1468: Expand riptiding API
By: ShreyasAyyengar <shreyas.ayyengar@gmail.com>
2024-09-07 18:08:13 +10:00
CraftBukkit/Spigot
106225f127 Ignore checks in CraftPlayerProfile for ResolvableProfile used in profile components
By: Doc <nachito94@msn.com>
2024-08-31 10:25:23 -04:00
CraftBukkit/Spigot
3919314de0 SPIGOT-7889: Fix tool component deserialisation without speed and/or correct-for-drops
By: md_5 <git@md-5.net>
2024-08-31 08:49:31 +10:00
CraftBukkit/Spigot
b133887b85 SPIGOT-7882, #1467: Fix conversion of name in Profile Component to empty if it is missing
By: Doc <nachito94@msn.com>
2024-08-31 08:40:57 +10:00
CraftBukkit/Spigot
ab921984fc SPIGOT-7878: Server#getLootTable does not return null on invalid loot table
By: md_5 <git@md-5.net>
2024-08-24 08:02:44 +10:00
CraftBukkit/Spigot
0916d51f5d SPIGOT-7876: Can't kick player or disconnect player in PlayerLoginEvent when checking for cookies
By: md_5 <git@md-5.net>
2024-08-24 07:51:55 +10:00
CraftBukkit/Spigot
84f1d558c3 #1465: Add FireworkMeta#hasPower
By: Doc <nachito94@msn.com>
2024-08-24 07:44:52 +10:00
CraftBukkit/Spigot
51e69e6788 SPIGOT-7873: Add powered state for skulls
By: md_5 <git@md-5.net>
2024-08-24 07:42:35 +10:00
CraftBukkit/Spigot
9f0a790b3d SPIGOT-7868, #1463: Fix default and max power in FireworkMeta
By: Doc <nachito94@msn.com>
2024-08-17 08:37:46 +10:00
CraftBukkit/Spigot
71695536dd SPIGOT-7783, SPIGOT-7784, #1460: Add Trial Vault & Spawner event API
By: ShreyasAyyengar <shreyas.ayyengar@gmail.com>
2024-08-13 20:50:04 +10:00
CraftBukkit/Spigot
921fbc5f60 Update to Minecraft 1.21.1
By: md_5 <git@md-5.net>
2024-08-09 07:00:00 +10:00
CraftBukkit/Spigot
59b86b9837 SPIGOT-7857: Improve ItemMeta block data deserialization
By: blablubbabc <lukas@wirsindwir.de>
2024-08-08 07:44:52 +10:00
CraftBukkit/Spigot
8c7a0e888f SPIGOT-7857: Fix spurious internal NBT tag when deserializing BlockStateMeta
By: md_5 <git@md-5.net>
2024-08-06 19:07:10 +10:00
CraftBukkit/Spigot
3fb8f4b1d1 SPIGOT-7853: AnvilInventory#getRepairCost() always returns 0
By: Miles Holder <mwholder2005@gmail.com>
2024-07-30 07:11:55 +10:00
CraftBukkit/Spigot
9a7508c3ab #1450: Add CrafterCraftEvent
By: ploppyperson <nathat890@outlook.com>
Also-by: md_5 <git@md-5.net>
2024-07-30 07:07:10 +10:00
CraftBukkit/Spigot
1a0dce328a #1456: Fix inverted logic in CraftCrafterView#setSlotDisabled
By: Miles Holder <mwholder2005@gmail.com>
2024-07-28 08:34:00 +10:00
CraftBukkit/Spigot
57bb408920 SPIGOT-7850: Add API for Bogged shear state
By: md_5 <git@md-5.net>
2024-07-27 10:28:37 +10:00
CraftBukkit/Spigot
d2745c6491 SPIGOT-7837: Support data pack banner patterns
By: Doc <nachito94@msn.com>
2024-07-27 10:14:41 +10:00
CraftBukkit/Spigot
bfad1aa117 #1431: Add API for InventoryView derivatives
By: Miles Holder <mwholder2005@gmail.com>
2024-07-27 10:01:29 +10:00
CraftBukkit/Spigot
7fae51f18d SPIGOT-7849: Fix FoodComponent serialize with "using-converts-to" using null
By: Doc <nachito94@msn.com>
2024-07-26 07:25:02 +10:00
CraftBukkit/Spigot
983dd759e8 Don't rely on tags for CraftItemMetas
By: md_5 <git@md-5.net>
2024-07-24 19:40:55 +10:00
CraftBukkit/Spigot
af7b1e8dec SPIGOT-7846: Fix ItemMeta for hanging signs
By: md_5 <git@md-5.net>
2024-07-24 19:40:50 +10:00
CraftBukkit/Spigot
b9c7f251e4 SPIGOT-7839: Remove redundant Java version checks
By: md_5 <git@md-5.net>
2024-07-20 10:20:27 +10:00
CraftBukkit/Spigot
60eec22bd3 SPIGOT-7809: Add ShieldMeta and fix setting shield base colours
By: Doc <nachito94@msn.com>
Also-by: md_5 <git@md-5.net>
2024-07-20 10:15:22 +10:00
CraftBukkit/Spigot
92c33ca0c7 Increase outdated build delay
By: md_5 <git@md-5.net>
2024-07-15 20:06:23 +10:00
CraftBukkit/Spigot
71bc2b07ed SPIGOT-7827: Sync EntityPortalEvent with PlayerPortalEvent since non-players can now create portals
By: md_5 <git@md-5.net>
2024-07-10 19:43:43 +10:00
CraftBukkit/Spigot
4377eb6edb SPIGOT-7823: Suspicious sand and gravel material are not marked as having gravity correctly
By: md_5 <git@md-5.net>
2024-07-10 18:50:13 +10:00
CraftBukkit/Spigot
9d6d5d8dc5 SPIGOT-7820: Enum changes - duplicate method name
By: DerFrZocker <derrieple@gmail.com>
2024-07-08 07:01:03 +10:00
CraftBukkit/Spigot
d86a8b483e SPIGOT-7813: Material#isInteractable() always returns false
By: md_5 <git@md-5.net>
2024-07-07 09:24:47 +10:00
CraftBukkit/Spigot
d7c74a442e SPIGOT-7806: Handle both loot and inventory item drop behaviour in PlayerDeathEvent
By: Doc <nachito94@msn.com>
2024-07-06 17:25:39 +10:00
CraftBukkit/Spigot
b6655d093f SPIGOT-7799, #1436: Expose explosion world interaction in EntityExplodeEvent and BlockExplodeEvent
By: antiPerson <nathat890@outlook.com>
2024-07-06 17:19:45 +10:00
CraftBukkit/Spigot
41b8d833db #1424: Trial changing a small number of inner enums to classes/interfaces to better support custom values
This PR is a subset of the enum PR #931 and is designed as a low impact
trial run of the design and backwards compatibility to inform
subsequent development.

Additional plugin compatibility features may be available by setting
`settings.compatibility.enum-compatibility-mode` to `true` in
`bukkit.yml`.

By: DerFrZocker <derrieple@gmail.com>
2024-07-06 17:14:22 +10:00
CraftBukkit/Spigot
7288f31c8d SPIGOT-7812: Revert "SPIGOT-7809: Restore shield/banner conversion for base colours"
This reverts commit 09b9a2110e.

By: md_5 <git@md-5.net>
2024-07-04 07:01:08 +10:00
CraftBukkit/Spigot
376a4220bf SPIGOT-7808: Fix implementation of Enchantment#getName() for bad name return
By: Doc <nachito94@msn.com>
2024-07-03 20:21:17 +10:00
CraftBukkit/Spigot
09b9a2110e SPIGOT-7809: Restore shield/banner conversion for base colours
By: md_5 <git@md-5.net>
2024-07-03 20:21:13 +10:00
CraftBukkit/Spigot
292255a36a SPIGOT-7805: Fix jukebox deserialization
By: blablubbabc <lukas@wirsindwir.de>
2024-07-01 07:08:06 +10:00
CraftBukkit/Spigot
bc75f0bcb5 SPIGOT-7804: Fix written book serialization
* Account for null/missing values when deserializing the 'resolved' and
  'generation' fields.
* Serialize the book pages as JSON strings.
* Avoid redundant conversion from strings to components to JSON and back to
  components during deserialization.
  Add CraftChatMessage.fromJSONOrString that accepts a maxLength argument
  and remove the no longer used fromJSONOrStringToJSON, fromStringToJSON,
  and fromJSONComponent helper methods.

By: blablubbabc <lukas@wirsindwir.de>
2024-06-30 16:27:23 +10:00
CraftBukkit/Spigot
8821aa372c SPIGOT-7800, SPIGOT-7801: Keep vanilla behaviour for items dropped on player death
By: Doc <nachito94@msn.com>
2024-06-29 14:03:10 +10:00
CraftBukkit/Spigot
5f8cff3bb5 #1429: Implement TrialSpawnerSpawnEvent
By: Doc <nachito94@msn.com>
2024-06-28 07:06:36 +10:00
CraftBukkit/Spigot
820bc6423d #1354: Improve spawner API and add API for Trial Spawners
By: coll1234567 <joshl5324@gmail.com>
2024-06-28 07:06:20 +10:00
CraftBukkit/Spigot
c59410cfbc Increase outdated build delay
By: md_5 <git@md-5.net>
2024-06-26 07:00:34 +10:00
CraftBukkit/Spigot
0d64e2be4b SPIGOT-7796: Kickplayer newlines not working
By: md_5 <git@md-5.net>
2024-06-24 06:33:02 +10:00
CraftBukkit/Spigot
5d025bbee8 Improve cross-world teleportation handling
By: md_5 <git@md-5.net>
2024-06-23 16:45:29 +10:00
CraftBukkit/Spigot
477394d314 #1433: HumanEntity#openInventory(InventoryView) should only support views belonging to the player
By: Miles Holder <mwholder2005@gmail.com>
2024-06-22 18:48:51 +10:00
CraftBukkit/Spigot
aef018b9c4 SPIGOT-7732: Issue with the "hurt()" method of EntityLiving and invulnerable time
By: LoliColleen <76620594+LoliColleen@users.noreply.github.com>
2024-06-22 18:46:41 +10:00
CraftBukkit/Spigot
7667932681 SPIGOT-7791: Skull BlockState with null profile causes NullPointerException
By: md_5 <git@md-5.net>
2024-06-22 11:42:15 +10:00
CraftBukkit/Spigot
2f1800fa2e SPIGOT-7789: Fix NPE in CraftMetaFirework applyToItem
By: blablubbabc <lukas@wirsindwir.de>
2024-06-20 07:04:11 +10:00
CraftBukkit/Spigot
1128edadb2 #1428: Expose Creeper igniter
By: Doc <nachito94@msn.com>
2024-06-19 06:48:33 +10:00
CraftBukkit/Spigot
e43f607e6a #1425: Fix bytecode transformation taking care of class-to-interface compatibility.
By: Jannyboy11 <Jannyboy11@gmail.com>
2024-06-18 19:19:15 +10:00
CraftBukkit/Spigot
ac95e0b210 SPIGOT-7770: Fix certain shaped recipes not registering
By: 2008Choco <hawkeboyz2@hotmail.com>
2024-06-18 19:06:07 +10:00
CraftBukkit/Spigot
5f8b82d6cc #1426: Deprecate more unused methods in UnsafeValues
By: 2008Choco <hawkeboyz2@hotmail.com>
2024-06-17 20:56:19 +10:00
CraftBukkit/Spigot
8537c328d0 SPIGOT-7771: Material.getDefaultAttributes always returns an empty map
By: md_5 <git@md-5.net>
2024-06-17 19:44:14 +10:00
CraftBukkit/Spigot
d2d0972bc3 #1414: Convert InventoryView to interface
By: Miles Holder <mwholder2005@gmail.com>
2024-06-16 08:47:38 +10:00
CraftBukkit/Spigot
6af115230a Fix Implementation for DamageSource#isIndirect for internal custom causing entity
By: Doc <nachito94@msn.com>
2024-06-15 12:47:45 -04:00
CraftBukkit/Spigot
9f79c6f74e Remove unused import
By: md_5 <git@md-5.net>
2024-06-15 12:52:01 +10:00
CraftBukkit/Spigot
3e98b1bcbe SPIGOT-7757: Cannot set item in Stonecutter Inventory
By: md_5 <git@md-5.net>
2024-06-15 12:48:38 +10:00
CraftBukkit/Spigot
85df4599c9 Move deserialized removed unhandled tags to dedicated removedTags
By: md_5 <git@md-5.net>
2024-06-15 10:09:35 +10:00
CraftBukkit/Spigot
87c3fdad31 Fix potential mutability issue with CraftMetaItem copy constructor
By: md_5 <git@md-5.net>
2024-06-15 07:03:03 +10:00
CraftBukkit/Spigot
1e6fb15514 SPIGOT-7741: Vanilla ItemComponent in commands can't remove components
By: md_5 <git@md-5.net>
2024-06-15 07:03:03 +10:00
CraftBukkit/Spigot
26f44f56c1 #1284: Move ItemType <-> ItemMeta linking to a centralized place
By: DerFrZocker <derrieple@gmail.com>
2024-06-15 06:53:46 +10:00
CraftBukkit/Spigot
c985be99a6 #1420: Fix DirectEntity and CausingEntity Damager for Creepers ignited by Player
By: Doc <nachito94@msn.com>
2024-06-15 06:47:48 +10:00
CraftBukkit/Spigot
9c115e8fae Implement DamageCause#CAMPFIRE and minor improvement in exception for Unhandled block damage
By: Doc <nachito94@msn.com>
2024-06-13 12:23:28 -04:00
CraftBukkit/Spigot
eed041d629 Update to Minecraft 1.21
By: md_5 <git@md-5.net>
2024-06-14 01:05:00 +10:00
CraftBukkit/Spigot
7c6204e1a9 Remove outdated build delay
By: md_5 <git@md-5.net>
2024-06-14 01:00:00 +10:00
CraftBukkit/Spigot
1ded727925 SPIGOT-7737: Add separate TreeType.MEGA_PINE
By: md_5 <git@md-5.net>
2024-06-11 21:04:56 +10:00
CraftBukkit/Spigot
92a9fb31be Fix spawn egg equality check and copy constructor
By: md_5 <git@md-5.net>
2024-06-11 06:59:14 +10:00