Class UpdateSignMessage
java.lang.Object
net.glowstone.net.message.play.game.UpdateSignMessage
- All Implemented Interfaces:
com.flowpowered.network.Message
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateSignMessage(int x, int y, int z, TextMessage[] message) Creates a message. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UpdateSignMessagefromPlainText(int x, int y, int z, String... message) Builds an UpdateSignMessage from 4 strings.intgetX()intgetY()intgetZ()inthashCode()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- ifmessageisn't exactly 4 strings
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getMessage
-
equals
-
hashCode
public int hashCode() -
toString
-