org.bukkit.material
Class Crops
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Crops
- All Implemented Interfaces:
- Cloneable
public class Crops
- extends MaterialData
Represents the different types of crops.
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)
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.