2022-10-02 18:31:08 +08:00
|
|
|
|
namespace MinecraftClient.Mapping
|
2022-09-18 00:18:27 +02:00
|
|
|
|
{
|
Modernize data carriers to records and add primary constructors
Convert 14 data carrier classes to records:
- VillagerInfo, MapIcon, EnchantmentData: non-positional records (mutable properties)
- ForgeMod, SkinInfo, VillagerTrade, Node, Response: positional records
- CommandNode: sealed positional record
- CommandArgumentDescriptor: readonly record struct
- ColorRGBA: record struct (multiple constructors preserved)
- RecipeConfig, Recipe, BannerLayer: non-positional records
Add primary constructors to 6 classes:
- DataTypes, Protocol18Terrain, Protocol18Forge, ItemMovingHelper,
LastSeenMessageList, Acknowledgment, SuggestionTooltip
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 01:31:17 +00:00
|
|
|
|
public record MapIcon
|
2022-09-18 00:18:27 +02:00
|
|
|
|
{
|
Modernize data carriers to records and add primary constructors
Convert 14 data carrier classes to records:
- VillagerInfo, MapIcon, EnchantmentData: non-positional records (mutable properties)
- ForgeMod, SkinInfo, VillagerTrade, Node, Response: positional records
- CommandNode: sealed positional record
- CommandArgumentDescriptor: readonly record struct
- ColorRGBA: record struct (multiple constructors preserved)
- RecipeConfig, Recipe, BannerLayer: non-positional records
Add primary constructors to 6 classes:
- DataTypes, Protocol18Terrain, Protocol18Forge, ItemMovingHelper,
LastSeenMessageList, Acknowledgment, SuggestionTooltip
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 01:31:17 +00:00
|
|
|
|
public MapIconType Type { get; set; }
|
|
|
|
|
|
public byte X { get; set; }
|
|
|
|
|
|
public byte Z { get; set; }
|
|
|
|
|
|
public byte Direction { get; set; }
|
|
|
|
|
|
public string? DisplayName { get; set; } = null;
|
2022-09-18 00:18:27 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|