public class PlayerDisguise extends Disguise
Disguise.Visibility
Constructor | Description |
---|---|
PlayerDisguise(java.lang.String skinName) |
Creates an instance.
|
PlayerDisguise(java.lang.String skinName,
boolean ghost) |
Deprecated.
ghost disguise is no longer available
|
PlayerDisguise(java.lang.String skinName,
java.lang.String displayName) |
Creates an instance.
|
PlayerDisguise(java.lang.String skinName,
java.lang.String displayName,
boolean ghost) |
Deprecated.
ghost disguise is no longer available
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getDisplayName() |
Returns the display name.
|
java.lang.String |
getName() |
Deprecated.
replaced by
getSkinName() |
java.lang.String |
getSkinName() |
Returns the skin name.
This is always lower case as of 5.5.2. |
boolean |
isGhost() |
Deprecated.
ghost disguise is no longer available
|
void |
setDisplayName(java.lang.String displayName) |
Sets the display name.
|
java.lang.String |
toString() |
Returns a string representation of the object.
|
clone, equals, fromString, getType, getVisibility, getVisibilityParameter, hashCode, isVisibleTo, setVisibility, setVisibilityParameter
public PlayerDisguise(java.lang.String skinName)
skinName
- the player skinjava.lang.IllegalArgumentException
- the given skin name is not validpublic PlayerDisguise(java.lang.String skinName, java.lang.String displayName)
skinName
- the player skindisplayName
- the display name (above player's head and player list)java.lang.IllegalArgumentException
- the given skin name is not valid@Deprecated public PlayerDisguise(java.lang.String skinName, boolean ghost)
skinName
- the player skinghost
- false
for a normal player, otherwise UnsupportedOperationException will be thrownjava.lang.IllegalArgumentException
- the given skin name is not valid@Deprecated public 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
- false
for a normal player, otherwise UnsupportedOperationException will be thrownjava.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)@Deprecated public boolean isGhost()
false