public class PlayerDisguise extends Disguise
Constructor and Description |
---|
PlayerDisguise(java.lang.String skinName)
Creates an instance.
|
PlayerDisguise(java.lang.String skinName,
boolean ghost)
Creates an instance.
|
PlayerDisguise(java.lang.String skinName,
java.lang.String displayName,
boolean ghost)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
PlayerDisguise |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one.
|
java.lang.String |
getDisplayName()
Returns the display name.
|
java.lang.String |
getName()
Deprecated.
replaced by
getSkinName() |
java.lang.String |
getSkinName()
Returns the skin name.
|
boolean |
isGhost()
Checks whether this disguise is a ghost.
|
void |
setDisplayName(java.lang.String displayName)
Sets the display name.
|
public PlayerDisguise(java.lang.String skinName)
skinName
- the player skinjava.lang.IllegalArgumentException
- the given skin name is not validpublic PlayerDisguise(java.lang.String skinName, boolean ghost)
skinName
- the player skinghost
- true
for a ghost, false
for a normal playerjava.lang.IllegalArgumentException
- the given skin name is not validpublic PlayerDisguise(java.lang.String skinName, java.lang.String displayName, boolean ghost)
skinName
- the player skindisplayName
- the display name (above player's head and player list)ghost
- true
for a ghost, false
for a normal playerjava.lang.IllegalArgumentException
- the given skin name is not valid@Deprecated public java.lang.String getName()
getSkinName()
public java.lang.String getSkinName()
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- the display name (above player's head and player list)public boolean isGhost()
true
if this is a ghostpublic PlayerDisguise clone()