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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.geysermc.geyser.translator.data.CommonTranslationData
CommonTranslationData.Impl, CommonTranslationData.Provider, CommonTranslationData.RecordBasedNested classes/interfaces inherited from interface org.geysermc.geyser.translator.text.TextTranslator
TextTranslator.LocaleBased -
Constructor Summary
ConstructorsConstructorDescriptionCommandTranslationData(GeyserSession session, org.geysermc.mcprotocollib.protocol.data.game.command.CommandNode[] nodes, int firstNodeIndex) -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.protocol.bedrock.data.command.CommandEnumDataorg.cloudburstmc.protocol.bedrock.data.command.CommandEnumDataconstructEnum(String commandName, String proposedName, Map<String, Set<org.cloudburstmc.protocol.bedrock.data.command.CommandEnumConstraint>> constraints) intString[]getRegistryElements(JavaRegistryKey<?> registry) String[]getRegistryElementsAndTags(JavaRegistryKey<?> registry) org.geysermc.mcprotocollib.protocol.data.game.command.CommandNode[]nodes()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.translator.data.CommonTranslationData
fireEventMethods inherited from interface org.geysermc.geyser.translator.data.CommonTranslationData.RecordBased
fireConnectionEvent, javaRegistries, locale, platformTypeMethods inherited from interface org.geysermc.geyser.translator.text.TextTranslator.LocaleBased
convertText
-
Constructor Details
-
CommandTranslationData
public CommandTranslationData(GeyserSession session, org.geysermc.mcprotocollib.protocol.data.game.command.CommandNode[] nodes, int firstNodeIndex)
-
-
Method Details
-
getRegistryElements
-
getRegistryElementsAndTags
-
builtInEnum
public org.cloudburstmc.protocol.bedrock.data.command.CommandEnumData builtInEnum(BuiltInCommandEnums.Key key) -
constructEnum
-
commonData
- Specified by:
commonDatain interfaceCommonTranslationData.Provider
-
commandSource
-
commandRegistry
-
nodes
public org.geysermc.mcprotocollib.protocol.data.game.command.CommandNode[] nodes() -
firstNodeIndex
public int firstNodeIndex()
-