public class MinecartDisguise extends ObjectDisguise
Constructor and Description |
---|
MinecartDisguise()
Creates an instance.
|
MinecartDisguise(org.bukkit.Material displayedBlock)
Creates an instance.
|
MinecartDisguise(org.bukkit.Material displayedBlock,
int displayedBlockData)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
MinecartDisguise |
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 |
getDisplayedBlock()
Gets the block displayed inside the cart.
|
int |
getDisplayedBlockData()
Gets the data of the block inside the cart.
|
void |
setDisplayedBlock(org.bukkit.Material displayedBlock)
Sets the block to display inside the cart.
|
void |
setDisplayedBlockData(int displayedBlockData)
Sets the data of the block inside the cart.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
getTypeId, getTypeId
public MinecartDisguise()
Material.AIR
public MinecartDisguise(org.bukkit.Material displayedBlock)
displayedBlock
- the block to display inside the cartjava.lang.IllegalArgumentException
- if the material is not a blockpublic MinecartDisguise(org.bukkit.Material displayedBlock, int displayedBlockData)
displayedBlock
- the block to display inside the cartdisplayedBlockData
- the data of the block insidejava.lang.IllegalArgumentException
- if the material is not a block, or if data is negative integerpublic org.bukkit.Material getDisplayedBlock()
public void setDisplayedBlock(org.bukkit.Material displayedBlock)
displayedBlock
- the block to display inside the cartjava.lang.IllegalArgumentException
- if the material is not a blockpublic int getDisplayedBlockData()
public void setDisplayedBlockData(int displayedBlockData)
displayedBlockData
- the data valuejava.lang.IllegalArgumentException
- if the given data value is negativepublic MinecartDisguise clone()
clone
in class ObjectDisguise
public boolean equals(java.lang.Object object)
equals
in class ObjectDisguise
true
if this object is the same as the object
argument; false
otherwise