Class Sign

java.lang.Object
  extended by Sign
All Implemented Interfaces:
ComplexBlock

public class Sign
extends java.lang.Object
implements ComplexBlock

Sign.java - Interface to signs


Constructor Summary
Constructor and Description
Sign(lv localay)
          Creates a sign interface
 
Method Summary
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

Sign

public Sign(lv localay)
Creates a sign interface

Parameters:
localav -
Method Detail

setText

public void setText(int index,
                    java.lang.String text)
Sets the line of text at specified index

Parameters:
index - line
text - text

getText

public java.lang.String getText(int index)
Returns the line of text

Parameters:
index - line of text
Returns:
text

getX

public int getX()
Description copied from interface: ComplexBlock
Returns the X coordinates of this block

Specified by:
getX in interface ComplexBlock
Returns:
X

getY

public int getY()
Description copied from interface: ComplexBlock
Returns the Y coordinates of this block

Specified by:
getY in interface ComplexBlock
Returns:
Y

getZ

public int getZ()
Description copied from interface: ComplexBlock
Returns the Z coordinates of this block

Specified by:
getZ in interface ComplexBlock
Returns:
Z

getBlock

public Block getBlock()
Description copied from interface: ComplexBlock
Returns the Block associated with this ComplexBlock

Specified by:
getBlock in interface ComplexBlock
Returns:
Block

update

public void update()
Description copied from interface: ComplexBlock
Sends the updated block information to clients.

Specified by:
update in interface ComplexBlock

toString

public java.lang.String toString()
Returns a String value representing this Block

Overrides:
toString in class java.lang.Object
Returns:
String representation of this block

equals

public boolean equals(java.lang.Object obj)
Tests the given object to see if it equals this object

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to test
Returns:
true if the two objects match

hashCode

public int hashCode()
Returns a semi-unique hashcode for this block

Overrides:
hashCode in class java.lang.Object
Returns:
hashcode