org.bukkit.material
Class Crops

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

public class Crops
extends MaterialData

Represents the different types of crops.


Constructor Summary
Crops()
           
Crops(CropState state)
           
Crops(int type)
           
Crops(int type, byte data)
           
Crops(Material type)
           
Crops(Material type, byte data)
           
 
Method Summary
 Crops clone()
           
 CropState getState()
          Gets the current growth state of this crop
 void setState(CropState state)
          Sets the growth state of this crop
 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

Crops

public Crops()

Crops

public Crops(CropState state)

Crops

public Crops(int type)

Crops

public Crops(Material type)

Crops

public Crops(int type,
             byte data)

Crops

public Crops(Material type,
             byte data)
Method Detail

getState

public CropState getState()
Gets the current growth state of this crop

Returns:
CropState of this crop

setState

public void setState(CropState state)
Sets the growth state of this crop

Parameters:
state - New growth state of this crop

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public Crops clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.