Minecraft-Console-Client/MinecraftClient/Protocol
Ítalo Seara f34b8ba989 feat(inventory): expose NBT/component data in inventory MCP tools
Add a nullable `Nbt` field to `MccInventorySnapshotSlot`,
`MccInventorySearchMatch`, and `MccItemStackSnapshot` so that callers
can access the full item metadata beyond just material and count.

For 1.20.6+ servers the field is a map of component name
(e.g. "minecraft:custom_data") to the serialized component object.
For legacy servers it is the raw NBT dictionary. The field is omitted
entirely for vanilla items that carry no extra data, so there is no
noise for plain items like Stone or Dirt.

Implementation:
- `StructuredComponent`: add `ComponentName` property (set by the
  registry during parse) and mark both it and `TypeId` with
  `[JsonIgnore]` so they are excluded from component serialization.
- `StructuredComponentRegistry.ParseComponent`: assign `ComponentName`
  after instantiation.
- `MccGameCommon.BuildNbt`: new helper that serializes components by
  runtime type (fixing the polymorphism issue with System.Text.Json)
  keyed by component name, falling back to the legacy NBT dictionary.
- Snapshot and search query builders updated to call `BuildNbt`.
2026-06-27 14:41:41 -03:00
..
Dialogs Cosmetic changes, UX/UI improvements in TUI mode, added colored text support in dialogs 2026-06-14 02:11:04 +02:00
Handlers feat(inventory): expose NBT/component data in inventory MCP tools 2026-06-27 14:41:41 -03:00
Message Formatted the code and removed logs from Auto Attack 2026-06-04 11:42:41 +02:00
ProfileKey refactor: convert == null / != null to is null / is not null in 31 files 2026-03-24 00:42:59 +00:00
Session Formatted the code and removed logs from Auto Attack 2026-06-04 11:42:41 +02:00
DataTypeGenerator.cs Replace legacy custom JSON parser with System.Text.Json 2026-03-22 16:39:26 +00:00
EntityActionType.cs [SKIP_BUILD] Change file encoding to UTF-8 with BOM 2022-11-28 13:55:05 +08:00
GuidExtensions.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
IMinecraftCom.cs Dialog System First iteration, not tested 2026-06-13 23:59:44 +02:00
IMinecraftComHandler.cs Dialog System First iteration, not tested 2026-06-13 23:59:44 +02:00
JwtPayloadDecode.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
MicrosoftAuthentication.cs Address code review: add SlowDownIncrementSeconds constant, return OtherError for device code failures 2026-03-23 15:41:25 +00:00
MojangAPI.cs Modernize data carriers to records and add primary constructors 2026-03-24 01:31:17 +00:00
PlayerInfo.cs Added a /tab command 2026-04-04 16:17:49 +02:00
ProtocolHandler.cs Add server status display and protocol version upgrade handling 2026-03-30 01:39:37 +08:00
ProxiedWebRequest.cs Modernize data carriers to records and add primary constructors 2026-03-24 01:31:17 +00:00
ReplayHandler.cs feat: modernize ReplayCapture 2026-05-04 11:49:44 +02:00
ServerStatusDisplay.cs Enhance server status display and player information handling 2026-03-30 02:46:34 +08:00
ServerStatusInfo.cs Add server status display and protocol version upgrade handling 2026-03-30 01:39:37 +08:00