Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.material.Sandstone Class Reference
Inheritance diagram for org.bukkit.material.Sandstone:
org.bukkit.material.MaterialData

Public Member Functions

 Sandstone (SandstoneType type)
 
 Sandstone (final int type)
 
 Sandstone (final Material type)
 
 Sandstone (final int type, final byte data)
 
 Sandstone (final Material type, final byte data)
 
SandstoneType getType ()
 
void setType (SandstoneType type)
 
String toString ()
 
Sandstone clone ()
 
- Public Member Functions inherited from org.bukkit.material.MaterialData
 MaterialData (final int type)
 
 MaterialData (final Material type)
 
 MaterialData (final int type, final byte data)
 
 MaterialData (final Material type, final byte data)
 
byte getData ()
 
void setData (byte data)
 
Material getItemType ()
 
int getItemTypeId ()
 
ItemStack toItemStack ()
 
ItemStack toItemStack (int amount)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Detailed Description

Represents the different types of sandstone.

Definition at line 9 of file Sandstone.java.

Constructor & Destructor Documentation

org.bukkit.material.Sandstone.Sandstone ( final int  type)
Deprecated:
Magic value

Definition at line 24 of file Sandstone.java.

24  {
25  super(type);
26  }
org.bukkit.material.Sandstone.Sandstone ( final int  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 37 of file Sandstone.java.

37  {
38  super(type, data);
39  }
org.bukkit.material.Sandstone.Sandstone ( final Material  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 46 of file Sandstone.java.

46  {
47  super(type, data);
48  }

Member Function Documentation

SandstoneType org.bukkit.material.Sandstone.getType ( )

Gets the current type of this sandstone

Returns
SandstoneType of this sandstone

Definition at line 55 of file Sandstone.java.

References org.bukkit.SandstoneType.getByData(), and org.bukkit.material.MaterialData.getData().

55  {
56  return SandstoneType.getByData(getData());
57  }
void org.bukkit.material.Sandstone.setType ( SandstoneType  type)

Sets the type of this sandstone

Parameters
typeNew type of this sandstone

Definition at line 64 of file Sandstone.java.

References org.bukkit.SandstoneType.getData(), and org.bukkit.material.MaterialData.setData().

64  {
65  setData(type.getData());
66  }

The documentation for this class was generated from the following file: