mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
feat: add block state data to all palettes
This commit is contained in:
parent
f1d844afbe
commit
cfb77088b6
21 changed files with 57289 additions and 26 deletions
|
|
@ -89,6 +89,14 @@ namespace MinecraftClient.Mapping
|
|||
/// </summary>
|
||||
public IReadOnlyDictionary<string, string> GetStateProperties()
|
||||
{
|
||||
if (Palette.IdHasMetadata)
|
||||
{
|
||||
return new Dictionary<string, string>
|
||||
{
|
||||
["metadata"] = BlockMeta.ToString(System.Globalization.CultureInfo.InvariantCulture)
|
||||
};
|
||||
}
|
||||
|
||||
return Palette.GetStateProperties(StateId);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue