public class WrappedBlockData extends AbstractWrapper
handle, handleType| Constructor and Description |
|---|
WrappedBlockData(Object handle) |
| Modifier and Type | Method and Description |
|---|---|
static WrappedBlockData |
createData(org.bukkit.Material type)
Creates a new BlockData instance with the given type and no data.
|
static WrappedBlockData |
createData(org.bukkit.Material type,
int data)
Creates a new BlockData instance with the given type and data.
|
WrappedBlockData |
deepClone()
Retrieve a deep copy of the current wrapper object.
|
boolean |
equals(Object o) |
int |
getData()
Retrieves the data of this BlockData.
|
org.bukkit.Material |
getType()
Retrieves the type of this BlockData.
|
int |
getTypeId()
Deprecated.
ID's are deprecated
|
int |
hashCode() |
void |
setData(int data)
Sets the data of this BlockData.
|
void |
setType(org.bukkit.Material type)
Sets the type of this BlockData.
|
void |
setTypeAndData(org.bukkit.Material type,
int data)
Sets the type and data of this BlockData.
|
String |
toString() |
getHandle, getHandleType, setHandlepublic WrappedBlockData(Object handle)
public org.bukkit.Material getType()
@Deprecated public int getTypeId()
public int getData()
public void setType(org.bukkit.Material type)
type - New typepublic void setData(int data)
data - New datapublic void setTypeAndData(org.bukkit.Material type,
int data)
type - New typedata - New datapublic static WrappedBlockData createData(org.bukkit.Material type)
type - Block typepublic static WrappedBlockData createData(org.bukkit.Material type, int data)
type - Block typedata - Block datapublic WrappedBlockData deepClone()
public String toString()
toString in class AbstractWrapperpublic int hashCode()
hashCode in class AbstractWrapperpublic boolean equals(Object o)
equals in class AbstractWrapperCopyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.