Package org.bukkit.material
Class Crops
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Crops
- All Implemented Interfaces:
java.lang.Cloneable
public class Crops extends MaterialData
Represents the different types of crops.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Crops
public Crops() -
Crops
-
Crops
@Deprecated public Crops(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
Crops
-
Crops
@Deprecated public Crops(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
Crops
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
getState
Gets the current growth state of this crop- Returns:
- CropState of this crop
-
setState
Sets the growth state of this crop- Parameters:
state
- New growth state of this crop
-
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-