Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getName(MemorySegment)
- getName(MemorySegment, int)
- getAliases(MemorySegment)
- getAliases(MemorySegment, int)
- getUsageText(MemorySegment)
- getUsageText(MemorySegment, int)
- getDescription(MemorySegment)
- getDescription(MemorySegment, int)
- getVariants(MemorySegment)
- getVariants(MemorySegment, int)
- getSubcommands(MemorySegment)
- getSubcommands(MemorySegment, int)
- getSubcommandHints(MemorySegment)
- getSubcommandHints(MemorySegment, int)
- getRequiredArgs(MemorySegment)
- getRequiredArgs(MemorySegment, int)
- getOptionalArgs(MemorySegment)
- getOptionalArgs(MemorySegment, int)
- getSuggestionOverrides(MemorySegment)
- getSuggestionOverrides(MemorySegment, int)
- hasName(MemorySegment, int)
- hasAliases(MemorySegment, int)
- hasUsageText(MemorySegment, int)
- hasDescription(MemorySegment, int)
- hasVariants(MemorySegment, int)
- hasSubcommands(MemorySegment, int)
- hasSubcommandHints(MemorySegment, int)
- hasRequiredArgs(MemorySegment, int)
- hasOptionalArgs(MemorySegment, int)
- hasSuggestionOverrides(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class CommandTreeEntry
java.lang.Object
com.hypixel.hytale.protocol.packets.interface_.CommandTreeEntry
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommandTreeEntry(CommandTreeEntry other) CommandTreeEntry(String name, String[] aliases, String usageText, String description, CommandVariantEntry[] variants, CommandTreeEntry[] subcommands, String[] subcommandHints, CommandArgInfo[] requiredArgs, CommandOptionalArgEntry[] optionalArgs, CommandSuggestionOverride[] suggestionOverrides) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic String[]getAliases(MemorySegment mem) static String[]getAliases(MemorySegment mem, int offset) static Stringstatic StringgetDescription(MemorySegment mem, int offset) static StringgetName(MemorySegment mem) static StringgetName(MemorySegment mem, int offset) static CommandOptionalArgEntry[]static CommandOptionalArgEntry[]getOptionalArgs(MemorySegment mem, int offset) static CommandArgInfo[]static CommandArgInfo[]getRequiredArgs(MemorySegment mem, int offset) static String[]static String[]getSubcommandHints(MemorySegment mem, int offset) static CommandTreeEntry[]static CommandTreeEntry[]getSubcommands(MemorySegment mem, int offset) static CommandSuggestionOverride[]static CommandSuggestionOverride[]getSuggestionOverrides(MemorySegment mem, int offset) static Stringstatic StringgetUsageText(MemorySegment mem, int offset) static CommandVariantEntry[]getVariants(MemorySegment mem) static CommandVariantEntry[]getVariants(MemorySegment mem, int offset) static booleanhasAliases(MemorySegment mem, int offset) static booleanhasDescription(MemorySegment mem, int offset) inthashCode()static booleanhasName(MemorySegment mem, int offset) static booleanhasOptionalArgs(MemorySegment mem, int offset) static booleanhasRequiredArgs(MemorySegment mem, int offset) static booleanhasSubcommandHints(MemorySegment mem, int offset) static booleanhasSubcommands(MemorySegment mem, int offset) static booleanhasSuggestionOverrides(MemorySegment mem, int offset) static booleanhasUsageText(MemorySegment mem, int offset) static booleanhasVariants(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static CommandTreeEntrytoObject(MemorySegment mem) static CommandTreeEntrytoObject(MemorySegment mem, int offset) static CommandTreeEntrytoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one CommandTreeEntry and reports the end of its encoding through the cursor.
-
Field Details
-
NULLABLE_BIT_FIELD_SIZE
public static final int NULLABLE_BIT_FIELD_SIZE- See Also:
-
FIXED_BLOCK_SIZE
public static final int FIXED_BLOCK_SIZE- See Also:
-
VARIABLE_FIELD_COUNT
public static final int VARIABLE_FIELD_COUNT- See Also:
-
VARIABLE_BLOCK_START
public static final int VARIABLE_BLOCK_START- See Also:
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
-
name
-
aliases
-
usageText
-
description
-
variants
-
subcommands
-
subcommandHints
-
requiredArgs
-
optionalArgs
-
suggestionOverrides
-
-
Constructor Details
-
CommandTreeEntry
public CommandTreeEntry() -
CommandTreeEntry
public CommandTreeEntry(@Nullable String name, @Nullable String[] aliases, @Nullable String usageText, @Nullable String description, @Nullable CommandVariantEntry[] variants, @Nullable CommandTreeEntry[] subcommands, @Nullable String[] subcommandHints, @Nullable CommandArgInfo[] requiredArgs, @Nullable CommandOptionalArgEntry[] optionalArgs, @Nullable CommandSuggestionOverride[] suggestionOverrides) -
CommandTreeEntry
-
-
Method Details
-
requireBounds
Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment. -
getName
-
getName
-
getAliases
-
getAliases
-
getUsageText
-
getUsageText
-
getDescription
-
getDescription
-
getVariants
-
getVariants
-
getSubcommands
-
getSubcommands
-
getSubcommandHints
-
getSubcommandHints
-
getRequiredArgs
-
getRequiredArgs
-
getOptionalArgs
-
getOptionalArgs
-
getSuggestionOverrides
-
getSuggestionOverrides
@Nullable public static CommandSuggestionOverride[] getSuggestionOverrides(MemorySegment mem, int offset) -
hasName
-
hasAliases
-
hasUsageText
-
hasDescription
-
hasVariants
-
hasSubcommands
-
hasSubcommandHints
-
hasRequiredArgs
-
hasOptionalArgs
-
hasSuggestionOverrides
-
toObject
-
toObject
-
toObject
Decodes one CommandTreeEntry and reports the end of its encoding through the cursor. A value of this type may hold further values of it, and decoding such a chain recurses once per link. The cursor counts the links so the chain cannot outrun the stack. -
serialize
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-