Class Node
java.lang.Object
com.github.retrooper.packetevents.protocol.chat.Node
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static final byte
static final byte
Added with 1.21.6static final byte
static final byte
static final byte
static final byte
-
Constructor Summary
ConstructorsConstructorDescriptionNode
(byte flags, List<Integer> children, int redirectNodeIndex, @Nullable String name, @Nullable Parsers.Parser parser, @Nullable List<Object> properties, @Nullable ResourceLocation suggestionsType) Node
(byte flags, List<Integer> children, int redirectNodeIndex, @Nullable String name, @Nullable Integer parserID, @Nullable List<Object> properties, @Nullable ResourceLocation suggestionsType) -
Method Summary
Modifier and TypeMethodDescriptionbyte
getFlags()
getName()
int
void
setChildren
(List<Integer> children) void
setFlags
(byte flags) void
void
setParser
(Optional<Parsers.Parser> parser) void
setParserID
(Optional<Integer> parserID) void
setProperties
(Optional<List<Object>> properties) void
setRedirectNodeIndex
(int redirectNodeIndex) void
setSuggestionsType
(Optional<ResourceLocation> suggestionsType)
-
Field Details
-
TYPE_MASK
public static final byte TYPE_MASK- See Also:
-
TYPE_ROOT
public static final byte TYPE_ROOT- See Also:
-
TYPE_LITERAL
public static final byte TYPE_LITERAL- See Also:
-
TYPE_ARGUMENT
public static final byte TYPE_ARGUMENT- See Also:
-
FLAG_MASK
public static final byte FLAG_MASK- See Also:
-
FLAG_EXECUTABLE
public static final byte FLAG_EXECUTABLE- See Also:
-
FLAG_REDIRECT
public static final byte FLAG_REDIRECT- See Also:
-
FLAG_CUSTOM_SUGGESTIONS
public static final byte FLAG_CUSTOM_SUGGESTIONS- See Also:
-
FLAG_RESTRICTED
public static final byte FLAG_RESTRICTEDAdded with 1.21.6- See Also:
-
-
Constructor Details
-
Node
-
Node
public Node(byte flags, List<Integer> children, int redirectNodeIndex, @Nullable @Nullable String name, @Nullable @Nullable Parsers.Parser parser, @Nullable @Nullable List<Object> properties, @Nullable @Nullable ResourceLocation suggestionsType)
-
-
Method Details
-
getFlags
public byte getFlags() -
setFlags
public void setFlags(byte flags) -
getChildren
-
setChildren
-
getRedirectNodeIndex
public int getRedirectNodeIndex() -
setRedirectNodeIndex
public void setRedirectNodeIndex(int redirectNodeIndex) -
getName
-
setName
-
getParser
-
setParser
-
getParserID
-
setParserID
-
getProperties
-
setProperties
-
getSuggestionsType
-
setSuggestionsType
-