Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getRawText(MemorySegment)
- getRawText(MemorySegment, int)
- getMessageId(MemorySegment)
- getMessageId(MemorySegment, int)
- getChildren(MemorySegment)
- getChildren(MemorySegment, int)
- getParams(MemorySegment)
- getParams(MemorySegment, int)
- getMessageParams(MemorySegment)
- getMessageParams(MemorySegment, int)
- getColor(MemorySegment)
- getColor(MemorySegment, int)
- getBold(MemorySegment)
- getBold(MemorySegment, int)
- getItalic(MemorySegment)
- getItalic(MemorySegment, int)
- getMonospace(MemorySegment)
- getMonospace(MemorySegment, int)
- getUnderlined(MemorySegment)
- getUnderlined(MemorySegment, int)
- getStrikethrough(MemorySegment)
- getStrikethrough(MemorySegment, int)
- getLink(MemorySegment)
- getLink(MemorySegment, int)
- getMarkupEnabled(MemorySegment)
- getMarkupEnabled(MemorySegment, int)
- getImage(MemorySegment)
- getImage(MemorySegment, int)
- hasBold(MemorySegment, int)
- hasItalic(MemorySegment, int)
- hasMonospace(MemorySegment, int)
- hasUnderlined(MemorySegment, int)
- hasStrikethrough(MemorySegment, int)
- hasRawText(MemorySegment, int)
- hasMessageId(MemorySegment, int)
- hasChildren(MemorySegment, int)
- hasParams(MemorySegment, int)
- hasMessageParams(MemorySegment, int)
- hasColor(MemorySegment, int)
- hasLink(MemorySegment, int)
- hasImage(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class FormattedMessage
java.lang.Object
com.hypixel.hytale.protocol.FormattedMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intbooleanstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionFormattedMessage(FormattedMessage other) FormattedMessage(String rawText, String messageId, FormattedMessage[] children, Map<String, ParamValue> params, Map<String, FormattedMessage> messageParams, String color, Boolean bold, Boolean italic, Boolean monospace, Boolean underlined, Boolean strikethrough, String link, boolean markupEnabled, FormattedMessageImage image) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic BooleangetBold(MemorySegment mem) static BooleangetBold(MemorySegment mem, int offset) static FormattedMessage[]getChildren(MemorySegment mem) static FormattedMessage[]getChildren(MemorySegment mem, int offset) static StringgetColor(MemorySegment mem) static StringgetColor(MemorySegment mem, int offset) static FormattedMessageImagegetImage(MemorySegment mem) static FormattedMessageImagegetImage(MemorySegment mem, int offset) static BooleangetItalic(MemorySegment mem) static BooleangetItalic(MemorySegment mem, int offset) static StringgetLink(MemorySegment mem) static StringgetLink(MemorySegment mem, int offset) static booleanstatic booleangetMarkupEnabled(MemorySegment mem, int offset) static Stringstatic StringgetMessageId(MemorySegment mem, int offset) static Map<String, FormattedMessage> static Map<String, FormattedMessage> getMessageParams(MemorySegment mem, int offset) static Booleanstatic BooleangetMonospace(MemorySegment mem, int offset) static Map<String, ParamValue> getParams(MemorySegment mem) static Map<String, ParamValue> getParams(MemorySegment mem, int offset) static StringgetRawText(MemorySegment mem) static StringgetRawText(MemorySegment mem, int offset) static Booleanstatic BooleangetStrikethrough(MemorySegment mem, int offset) static Booleanstatic BooleangetUnderlined(MemorySegment mem, int offset) static booleanhasBold(MemorySegment mem, int offset) static booleanhasChildren(MemorySegment mem, int offset) static booleanhasColor(MemorySegment mem, int offset) inthashCode()static booleanhasImage(MemorySegment mem, int offset) static booleanhasItalic(MemorySegment mem, int offset) static booleanhasLink(MemorySegment mem, int offset) static booleanhasMessageId(MemorySegment mem, int offset) static booleanhasMessageParams(MemorySegment mem, int offset) static booleanhasMonospace(MemorySegment mem, int offset) static booleanhasParams(MemorySegment mem, int offset) static booleanhasRawText(MemorySegment mem, int offset) static booleanhasStrikethrough(MemorySegment mem, int offset) static booleanhasUnderlined(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static FormattedMessagetoObject(MemorySegment mem) static FormattedMessagetoObject(MemorySegment mem, int offset) static FormattedMessagetoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one FormattedMessage 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:
-
rawText
-
messageId
-
children
-
params
-
messageParams
-
color
-
bold
-
italic
-
monospace
-
underlined
-
strikethrough
-
link
-
markupEnabled
public boolean markupEnabled -
image
-
-
Constructor Details
-
FormattedMessage
public FormattedMessage() -
FormattedMessage
public FormattedMessage(@Nullable String rawText, @Nullable String messageId, @Nullable FormattedMessage[] children, @Nullable Map<String, ParamValue> params, @Nullable Map<String, FormattedMessage> messageParams, @Nullable String color, @Nullable Boolean bold, @Nullable Boolean italic, @Nullable Boolean monospace, @Nullable Boolean underlined, @Nullable Boolean strikethrough, @Nullable String link, boolean markupEnabled, @Nullable FormattedMessageImage image) -
FormattedMessage
-
-
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. -
getRawText
-
getRawText
-
getMessageId
-
getMessageId
-
getChildren
-
getChildren
-
getParams
-
getParams
-
getMessageParams
-
getMessageParams
@Nullable public static Map<String, FormattedMessage> getMessageParams(MemorySegment mem, int offset) -
getColor
-
getColor
-
getBold
-
getBold
-
getItalic
-
getItalic
-
getMonospace
-
getMonospace
-
getUnderlined
-
getUnderlined
-
getStrikethrough
-
getStrikethrough
-
getLink
-
getLink
-
getMarkupEnabled
-
getMarkupEnabled
-
getImage
-
getImage
-
hasBold
-
hasItalic
-
hasMonospace
-
hasUnderlined
-
hasStrikethrough
-
hasRawText
-
hasMessageId
-
hasChildren
-
hasParams
-
hasMessageParams
-
hasColor
-
hasLink
-
hasImage
-
toObject
-
toObject
-
toObject
Decodes one FormattedMessage and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked. -
serialize
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-