public final class UpdateSignMessage extends Object implements com.flowpowered.network.Message
Constructor and Description |
---|
UpdateSignMessage(int x,
int y,
int z,
TextMessage[] message)
Creates a message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static UpdateSignMessage |
fromPlainText(int x,
int y,
int z,
String... message)
Builds an UpdateSignMessage from 4 strings.
|
TextMessage[] |
getMessage() |
int |
getX() |
int |
getY() |
int |
getZ() |
int |
hashCode() |
String |
toString() |
public UpdateSignMessage(int x, int y, int z, TextMessage[] message)
x
- the sign X coordinatey
- the sign Y coordinatez
- the sign Z coordinatemessage
- 4 messages, each containing a line of the sign's new contentsIllegalArgumentException
- if message.length != 4
public static UpdateSignMessage fromPlainText(int x, int y, int z, String... message)
x
- the sign X coordinatey
- the sign Y coordinatez
- the sign Z coordinatemessage
- 4 strings, each containing a line of the sign's new contentsIllegalArgumentException
- if message
isn't exactly 4 stringspublic int getX()
public int getY()
public int getZ()
public TextMessage[] getMessage()
public boolean equals(Object o)
public int hashCode()
Copyright © 2021. All rights reserved.