public class WSBlockTypeDirection extends WSBlockType implements WSDataValuable
Constructor and Description |
---|
WSBlockTypeDirection(int id,
java.lang.String stringId,
java.lang.String stringId13,
int maxStackQuantity,
EnumBlockDirection direction) |
Modifier and Type | Method and Description |
---|---|
WSBlockTypeDirection |
clone() |
boolean |
equals(java.lang.Object o) |
short |
getDataValue()
This method returns the DataValue of the
WSMaterial . |
EnumBlockDirection |
getDirection() |
int |
hashCode() |
void |
setDataValue(int dataValue)
This method sets the DataValue of the
WSMaterial . |
WSBlockTypeDirection |
setDirection(EnumBlockDirection direction)
Sets the
EnumBlockDirection of this WSBlockTypeDirection . |
getId, getMaxStackQuantity, getStringId, getStringId13, getTranslation
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
of, of
public WSBlockTypeDirection(int id, java.lang.String stringId, java.lang.String stringId13, int maxStackQuantity, EnumBlockDirection direction)
public EnumBlockDirection getDirection()
EnumBlockDirection
of this WSBlockTypeDirection
.public WSBlockTypeDirection setDirection(EnumBlockDirection direction)
EnumBlockDirection
of this WSBlockTypeDirection
.direction
- the EnumBlockDirection
WSBlockTypeDirection
.public WSBlockTypeDirection clone()
clone
in interface WSMaterial
clone
in class WSBlockType
public short getDataValue()
WSDataValuable
WSMaterial
.
DataValues are used by Spigot.getDataValue
in interface WSDataValuable
public void setDataValue(int dataValue)
WSDataValuable
WSMaterial
.
DataValues are used by Spigot.setDataValue
in interface WSDataValuable
dataValue
- the DataValue.public boolean equals(java.lang.Object o)
equals
in class WSBlockType
public int hashCode()
hashCode
in class WSBlockType
Copyright ©2017 Degoos Team. All rights reserved.