public class LobbySign
extends java.lang.Object
Constructor and Description |
---|
LobbySign(int x,
int y,
int z,
java.lang.String plugin,
java.lang.String world,
java.lang.String arena,
int number,
LobbyType type)
Creates a new
LobbySign object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherSign) |
java.lang.String |
getArena()
Retrieves the arena associated with this lobby sign.
|
int |
getIndex()
Retrieves the internal index of this lobby sign.
|
int |
getNumber()
Retrieves the number of this lobby sign.
|
java.lang.String |
getPlugin()
Retrieves the plugin this lobby sign is associated with.
|
LobbyType |
getType()
Retrieves the
type of this lobby sign. |
java.lang.String |
getWorld()
Retrieves the name of the world containing this physical lobby sign.
|
int |
getX()
Retrieves the physical x-coordinate of this lobby sign.
|
int |
getY()
Retrieves the physical y-coordinate of this lobby sign.
|
int |
getZ()
Retrieves the physical z-coordinate of this lobby sign.
|
int |
hashCode() |
void |
remove()
Saves this lobby sign's data to disk and removes it from memory.
|
void |
reset()
Resets this lobby sign's text as if its arena was empty and in
Stage.WAITING . |
void |
save()
Saves this lobby sign's data to disk.
|
void |
setArena(java.lang.String arena)
Sets the arena associated with this lobby sign.
|
void |
setIndex(int index)
Sets the internal index of this lobby sign.
|
void |
setNumber(int number)
Sets the number of this lobby sign.
|
void |
setType(LobbyType type)
Sets the
type of this lobby sign. |
void |
setWorld(java.lang.String world)
Sets the name of the world containing this physical lobby sign.
|
void |
setX(int x)
Sets the physical x-coordinate of this lobby sign.
|
void |
setY(int y)
Sets the physical y-coordinate of this lobby sign.
|
void |
setZ(int z)
Sets the physical z-coordinate of this lobby sign.
|
void |
update()
Updates this lobby sign's text based on its arena's current status.
|
public LobbySign(int x, int y, int z, java.lang.String plugin, java.lang.String world, java.lang.String arena, int number, LobbyType type)
LobbySign
object.x
- the x-coordinate of the physical signy
- the y-coordinate of the physical signz
- the z-coordinate of the physical signplugin
- the name of the plugin the sign is to be associated withworld
- the world containing the physical signarena
- the arena the sign should tracknumber
- the number of the sign (used for player signs
)type
- the type
of the signpublic int getX()
public void setX(int x)
x
- the physical x-coordinate of this lobby signpublic int getY()
public void setY(int y)
y
- the physical y-coordinate of this lobby signpublic int getZ()
public void setZ(int z)
z
- the physical z-coordinate of this lobby signpublic java.lang.String getPlugin()
public java.lang.String getWorld()
public void setWorld(java.lang.String world)
world
- the name of the world containing this physical lobby signpublic java.lang.String getArena()
public void setArena(java.lang.String arena)
arena
- the arena associated with this lobby signpublic int getNumber()
public void setNumber(int number)
number
- the number of this lobby signpublic LobbyType getType()
type
of this lobby sign.type
of this lobby signpublic void setType(LobbyType type)
type
of this lobby sign.type
- the type
of this lobby signpublic int getIndex()
public void setIndex(int index)
index
- the internal index of this lobby signpublic void save()
public void remove()
public void update()
public void reset()
Stage.WAITING
.public boolean equals(java.lang.Object otherSign)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object