Class CommandTranslationData

java.lang.Object
org.geysermc.geyser.translator.data.CommandTranslationData
All Implemented Interfaces:
JavaRegistryProvider.Provider, CommonTranslationData, CommonTranslationData.Provider, CommonTranslationData.RecordBased, TextTranslator, TextTranslator.LocaleBased

public final class CommandTranslationData extends Object implements CommonTranslationData.RecordBased
  • Constructor Details

    • CommandTranslationData

      public CommandTranslationData(GeyserSession session, org.geysermc.mcprotocollib.protocol.data.game.command.CommandNode[] nodes, int firstNodeIndex)
  • Method Details

    • getRegistryElements

      public String[] getRegistryElements(JavaRegistryKey<?> registry)
    • getRegistryElementsAndTags

      public String[] getRegistryElementsAndTags(JavaRegistryKey<?> registry)
    • builtInEnum

      public org.cloudburstmc.protocol.bedrock.data.command.CommandEnumData builtInEnum(BuiltInCommandEnums.Key key)
    • constructEnum

      public org.cloudburstmc.protocol.bedrock.data.command.CommandEnumData constructEnum(String commandName, String proposedName, Map<String,Set<org.cloudburstmc.protocol.bedrock.data.command.CommandEnumConstraint>> constraints)
    • commonData

      public CommonTranslationData commonData()
      Specified by:
      commonData in interface CommonTranslationData.Provider
    • commandSource

      public GeyserCommandSource commandSource()
    • commandRegistry

      public CommandRegistry commandRegistry()
    • nodes

      public org.geysermc.mcprotocollib.protocol.data.game.command.CommandNode[] nodes()
    • firstNodeIndex

      public int firstNodeIndex()