public class MobDisguise extends Disguise
Constructor and Description |
---|
MobDisguise(DisguiseType type)
Creates an instance.
|
MobDisguise(DisguiseType type,
boolean adult)
Deprecated.
Functionality moved to AgeableDisguise.
|
Modifier and Type | Method and Description |
---|---|
MobDisguise |
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 |
getCustomName()
Gets the custom name of this entity.
|
boolean |
isAdult()
Deprecated.
Functionality moved to AgeableDisguise.
|
void |
setAdult(boolean adult)
Deprecated.
Functionality moved to AgeableDisguise.
|
void |
setCustomName(java.lang.String customName)
Sets the custom name of this entity.
|
public MobDisguise(DisguiseType type)
type
- the type to disguise as@Deprecated public MobDisguise(DisguiseType type, boolean adult)
type
- the type to disguise asadult
- should the disguise be an adultjava.lang.IllegalArgumentException
- DisguiseType is not a mob.@Deprecated public boolean isAdult()
@Deprecated public void setAdult(boolean adult)
adult
- should the disguise be an adultpublic java.lang.String getCustomName()
null
.public void setCustomName(java.lang.String customName)
null
.customName
- the custom namepublic MobDisguise clone()