public class EndermanDisguise extends MobDisguise
Constructor and Description |
---|
EndermanDisguise()
Creates an instance.
|
EndermanDisguise(org.bukkit.Material blockInHand)
Creates an instance.
|
EndermanDisguise(org.bukkit.Material blockInHand,
int blockInHandData)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
EndermanDisguise |
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.
|
org.bukkit.Material |
getBlockInHand()
Returns the carried block.
|
int |
getBlockInHandData()
Returns the carried block's data value.
|
void |
setBlockInHand(org.bukkit.Material blockInHand)
Sets the carried block.
|
void |
setBlockInHandData(int blockInHandData)
Sets the carried block's data value.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
getCustomName, isAdult, setAdult, setCustomName
public EndermanDisguise()
public EndermanDisguise(org.bukkit.Material blockInHand)
blockInHand
- the carried blockjava.lang.IllegalArgumentException
- Material is not a block.public EndermanDisguise(org.bukkit.Material blockInHand, int blockInHandData)
blockInHand
- the carried blockblockInHandData
- the carried block's data valuejava.lang.IllegalArgumentException
- Material is not a block or data value is negative.public org.bukkit.Material getBlockInHand()
public void setBlockInHand(org.bukkit.Material blockInHand)
blockInHand
- the carried blockjava.lang.IllegalArgumentException
- Material is not a block.public int getBlockInHandData()
public void setBlockInHandData(int blockInHandData)
blockInHandData
- the carried block's data valuejava.lang.IllegalArgumentException
- Data value is negative.public EndermanDisguise clone()
clone
in class MobDisguise
public boolean equals(java.lang.Object object)
equals
in class MobDisguise
true
if this object is the same as the object
argument; false
otherwise