Message

public class Message

Class Message. Provides message functionality for the Hytale server.

java.lang.Object > Message

Field Summary

val

final StringParamValue val

Field val.

children

final List children

Field children.

rawText

final String rawText

Field rawText.

messageId

final String messageId

Field messageId.

message

final String message

Field message.

rawMessage

final StringBuilder rawMessage

Field rawMessage.

value

final DoubleParamValue value

Field value.

value2

final StringParamValue value2

Field value2.

value3

final BoolParamValue value3

Field value3.

value4

final IntParamValue value4

Field value4.

value5

final LongParamValue value5

Field value5.

s

final StringParamValue s

Field s.

b

final BoolParamValue b

Field b.

d

final DoubleParamValue d

Field d.

i

final IntParamValue i

Field i.

l

final LongParamValue l

Field l.

param

final StringParamValue param

Field param.

param2

final DoubleParamValue param2

Field param2.

param3

final BoolParamValue param3

Field param3.

handle

final MethodHandle handle

Field handle.

Method Detail

Message

public protected Message (@Nonnull final String message, final boolean i18n)

Method Message.

Parameters:
@Nonnull final String message
final boolean i18n

param

public Message param (@Nonnull final String key, @Nonnull final String value)

Method param.

Parameters:
@Nonnull final String key
@Nonnull final String value

bold

public Message bold (final boolean bold)

Method bold.

Parameters:
final boolean bold

italic

public Message italic (final boolean italic)

Method italic.

Parameters:
final boolean italic

monospace

public Message monospace (final boolean monospace)

Method monospace.

Parameters:
final boolean monospace

color

public Message color (@Nonnull final String color)

Method color.

Parameters:
@Nonnull final String color

insert

public Message insert (@Nonnull final Message formattedMessage)

Method insert.

Parameters:
@Nonnull final Message formattedMessage

insertAll

public Message insertAll (@Nonnull final Message... formattedMessages)

Method insertAll.

Parameters:
@Nonnull final Message... formattedMessages

getRawText

public String getRawText ()

Method getRawText.

getMessageId

public String getMessageId ()

Method getMessageId.

getColor

public String getColor ()

Method getColor.

getChildren

public List getChildren ()

Method getChildren.

getAnsiMessage

public String getAnsiMessage ()

Method getAnsiMessage.

getFormattedMessage

public FormattedMessage getFormattedMessage ()

Method getFormattedMessage.

toString

public String toString ()

Method toString.

empty

static Message empty ()

Method empty.

translation

static Message translation (@Nonnull final String messageId)

Method translation.

Parameters:
@Nonnull final String messageId

raw

static Message raw (@Nonnull final String message)

Method raw.

Parameters:
@Nonnull final String message

parse

static Message parse (@Nonnull final String message)

Method parse.

Parameters:
@Nonnull final String message

RawJsonReader

public new RawJsonReader (message.toCharArray()

Method RawJsonReader.

Parameters:
message.toCharArray( message.toCharArray(

join

static Message join (@Nonnull final Message... messages)

Method join.

Parameters:
@Nonnull final Message... messages

decode

public ParamValue decode (final BsonValue bsonValue, final ExtraInfo extraInfo)

Method decode.

Parameters:
final BsonValue bsonValue
final ExtraInfo extraInfo

switch

public return switch (bsonValue.getBsonType()

Method switch.

Parameters:
bsonValue.getBsonType( bsonValue.getBsonType(

IllegalArgumentException

public new IllegalArgumentException ("Unsupported bson type: " + String.valueOf(bsonValue.getBsonType()

Method IllegalArgumentException.

Parameters:
"Unsupported bson type: " + String.valueOf(bsonValue.getBsonType(

encode

public BsonValue encode (final ParamValue paramValue, final ExtraInfo extraInfo)

Method encode.

Parameters:
final ParamValue paramValue
final ExtraInfo extraInfo

decodeJson

public ParamValue decodeJson (@Nonnull final RawJsonReader reader, final ExtraInfo extraInfo)

Method decodeJson.

Parameters:
@Nonnull final RawJsonReader reader
final ExtraInfo extraInfo

toSchema

public Schema toSchema (@Nonnull final SchemaContext context)

Method toSchema.

Parameters:
@Nonnull final SchemaContext context

BooleanSchema

public new BooleanSchema ()

Method BooleanSchema.

NumberSchema

public new NumberSchema ()

Method NumberSchema.

IntegerSchema

public new IntegerSchema ()

Method IntegerSchema.

StringSchema

public new StringSchema ()

Method StringSchema.

handle

static MethodHandle handle ()

Method handle.

ensureHandle

static MethodHandle ensureHandle ()

Method ensureHandle.

invoke

static int invoke (Object p0, int p1)

Method invoke.

Parameters:
Object p0
int p1

NullSchema

public new NullSchema ()

Method NullSchema.