org.bukkit.material
Class Coal

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.Coal
All Implemented Interfaces:
Cloneable

public class Coal
extends MaterialData

Represents the different types of coals.


Constructor Summary
Coal()
           
Coal(CoalType type)
           
Coal(int type)
          Deprecated. Magic value
Coal(int type, byte data)
          Deprecated. Magic value
Coal(Material type)
           
Coal(Material type, byte data)
          Deprecated. Magic value
 
Method Summary
 Coal clone()
           
 CoalType getType()
          Gets the current type of this coal
 void setType(CoalType type)
          Sets the type of this coal
 String toString()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Coal

public Coal()

Coal

public Coal(CoalType type)

Coal

@Deprecated
public Coal(int type)
Deprecated. Magic value


Coal

public Coal(Material type)

Coal

@Deprecated
public Coal(int type,
                       byte data)
Deprecated. Magic value


Coal

@Deprecated
public Coal(Material type,
                       byte data)
Deprecated. Magic value

Method Detail

getType

public CoalType getType()
Gets the current type of this coal

Returns:
CoalType of this coal

setType

public void setType(CoalType type)
Sets the type of this coal

Parameters:
type - New type of this coal

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public Coal clone()
Overrides:
clone in class MaterialData


Copyright © 2014. All rights reserved.