Minecraft-Console-Client/MinecraftClient
copilot-swe-agent[bot] 446c6e7739 refactor: convert redundant new TypeName() to target-typed new()
Replace explicit constructor calls with target-typed new() expressions
where the type is already specified on the left side of the assignment.
This is a C# 9+ feature that reduces redundancy.

Files changed:
- Container.cs: field assignments in constructors
- EntityPalette18/112/113.cs: static field initializers
- ChatParser.cs: StringBuilder local variable
- Movement.cs: field assignments in constructor
- PacketPalette18.cs: field initializers
- EnchantmentMapping.cs: field reassignments

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 00:37:35 +00:00
..
ChatBots Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
CommandHandler [skip ci] Miscellaneous scripting QoL improvements and fixes (#2740) 2024-06-22 06:40:23 +08:00
Commands Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
config Modernize lock object declarations from object to System.Threading.Lock 2026-03-24 00:15:21 +00:00
Crypto Trim 2023-01-14 21:07:09 +08:00
Inventory refactor: convert redundant new TypeName() to target-typed new() 2026-03-24 00:37:35 +00:00
Logger Modernize lock object declarations from object to System.Threading.Lock 2026-03-24 00:15:21 +00:00
Mapping refactor: convert redundant new TypeName() to target-typed new() 2026-03-24 00:37:35 +00:00
Physics fix: correct global state indexing in block shape processing 2026-03-22 16:34:12 +08:00
Properties Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
Protocol refactor: convert redundant new TypeName() to target-typed new() 2026-03-24 00:37:35 +00:00
Proxy Tooltip support & Bug fix 2022-12-11 13:00:19 +08:00
Resources Add Discord RPC setup tutorial, Discord Bridge AllowOtherBotMessages config, and enhance integration tests 2026-03-23 00:41:40 +00:00
Scripting Convert switch statements to expressions and adopt collection expressions 2026-03-24 00:34:00 +00:00
WinAPI Bug fix 2022-10-10 10:56:12 +08:00
AutoTimeout.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
ColorHelper.cs legacy color support 2022-12-14 14:45:51 +08:00
Command.cs Bug fix 2022-12-11 16:30:45 +08:00
ConsoleIO.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
ExtensionMethods.cs Better translation 2022-10-17 20:00:33 +08:00
FileMonitor.cs Remove color code from text 2022-11-30 16:08:55 +08:00
INIFile.cs [skip ci] Normalize all line endings 2023-09-15 14:44:11 +08:00
Json.cs Fix ParseJson crash on non-JSON plain-text input (e.g. vanilla MOTD) 2026-03-22 19:53:15 +01:00
McClient.cs Convert switch statements to expressions and adopt collection expressions 2026-03-24 00:34:00 +00:00
MinecraftClient.csproj Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
Program.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
Settings.cs Modernize lock object declarations from object to System.Threading.Lock 2026-03-24 00:15:21 +00:00
TaskWithDelay.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
TaskWithResult.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
UpgradeHelper.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00