|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSign
public class Sign extends java.lang.Object implements ComplexBlock
Sign.java - Interface to signs
Constructor and Description |
---|
Sign(lv localay)
Creates a sign interface |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Tests the given object to see if it equals this object |
Block |
getBlock()
Returns the Block associated with this ComplexBlock |
java.lang.String |
getText(int index)
Returns the line of text |
int |
getX()
Returns the X coordinates of this block |
int |
getY()
Returns the Y coordinates of this block |
int |
getZ()
Returns the Z coordinates of this block |
int |
hashCode()
Returns a semi-unique hashcode for this block |
void |
setText(int index,
java.lang.String text)
Sets the line of text at specified index |
java.lang.String |
toString()
Returns a String value representing this Block |
void |
update()
Sends the updated block information to clients. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Sign(lv localay)
localav
- Method Detail |
---|
public void setText(int index, java.lang.String text)
index
- linetext
- textpublic java.lang.String getText(int index)
index
- line of textpublic int getX()
ComplexBlock
getX
in interface ComplexBlock
public int getY()
ComplexBlock
getY
in interface ComplexBlock
public int getZ()
ComplexBlock
getZ
in interface ComplexBlock
public Block getBlock()
ComplexBlock
getBlock
in interface ComplexBlock
public void update()
ComplexBlock
update
in interface ComplexBlock
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to testpublic int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |