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)
          Deprecated. Magic value
Crops(int type, byte data)
          Deprecated. Magic value
Crops(Material type)
           
Crops(Material type, byte data)
          Deprecated. Magic value
 
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

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


Crops

public Crops(Material type)

Crops

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


Crops

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

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.