public class EndermanDisguise extends MobDisguise
Disguise.Visibility
Modifier and Type | Field | Description |
---|---|---|
static java.util.Set<org.bukkit.Material> |
INVALID_MATERIALS |
A set containing all invalid materials.
These materials are invalid because the associated disguise would be invisible. |
Constructor | 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 | Description |
---|---|---|
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.
This also resets the block data to 0. |
void |
setBlockInHandData(int blockInHandData) |
Sets the carried block's data value.
|
java.lang.String |
toString() |
Returns a string representation of the object.
|
clone, equals, fromString, getType, getVisibility, getVisibilityParameter, hashCode, isVisibleTo, setVisibility, setVisibilityParameter
getCustomName, isCustomNameVisible, setCustomName, setCustomNameVisible
public static final java.util.Set<org.bukkit.Material> INVALID_MATERIALS
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 java.lang.String toString()
toString
in class MobDisguise