mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Fixed the component system from 1.20.6 - 1.21.11
This commit is contained in:
parent
6f30f9b79a
commit
17808bb652
17 changed files with 749 additions and 25 deletions
|
|
@ -48,4 +48,16 @@ public class StructuredComponentsHandler
|
|||
{
|
||||
return ComponentRegistry.ParseComponent(componentId, data);
|
||||
}
|
||||
}
|
||||
|
||||
public string GetComponentName(int componentId)
|
||||
{
|
||||
try
|
||||
{
|
||||
return ComponentRegistry.GetComponentNameById(componentId);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return "<unknown>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue