Class UpdateSignMessage
java.lang.Object
net.glowstone.net.message.play.game.UpdateSignMessage
- All Implemented Interfaces:
com.flowpowered.network.Message
-
Constructor Summary
ConstructorDescriptionUpdateSignMessage
(int x, int y, int z, TextMessage[] message) Creates a message. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static UpdateSignMessage
fromPlainText
(int x, int y, int z, String... message) Builds an UpdateSignMessage from 4 strings.int
getX()
int
getY()
int
getZ()
int
hashCode()
toString()
-
Constructor Details
-
UpdateSignMessage
Creates a message.- Parameters:
x
- the sign X coordinatey
- the sign Y coordinatez
- the sign Z coordinatemessage
- 4 messages, each containing a line of the sign's new contents- Throws:
IllegalArgumentException
- ifmessage.length != 4
-
-
Method Details
-
fromPlainText
Builds an UpdateSignMessage from 4 strings.- Parameters:
x
- the sign X coordinatey
- the sign Y coordinatez
- the sign Z coordinatemessage
- 4 strings, each containing a line of the sign's new contents- Returns:
- an UpdateSignMessage for the parameters
- Throws:
IllegalArgumentException
- ifmessage
isn't exactly 4 strings
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getMessage
-
equals
-
hashCode
public int hashCode() -
toString
-