Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.material.Crops Class Reference

Represents the different types of crops. More...

+ Inheritance diagram for org.bukkit.material.Crops:
+ Collaboration diagram for org.bukkit.material.Crops:

Public Member Functions

 Crops ()
 
 Crops (CropState state)
 
 Crops (final int type)
 
 Crops (final Material type)
 
 Crops (final int type, final byte data)
 
 Crops (final Material type, final byte data)
 
CropState getState ()
 Gets the current growth state of this crop.
 
void setState (CropState state)
 Sets the growth state of this crop.
 
String toString ()
 
Crops clone ()
 
- Public Member Functions inherited from org.bukkit.material.MaterialData
 MaterialData (final int type)
 
 MaterialData (final Material type)
 
 MaterialData (final int type, final byte data)
 
 MaterialData (final Material type, final byte data)
 
byte getData ()
 Gets the raw data in this material.
 
void setData (byte data)
 Sets the raw data of this material.
 
Material getItemType ()
 Gets the Material that this MaterialData represents.
 
int getItemTypeId ()
 Gets the Material Id that this MaterialData represents.
 
ItemStack toItemStack ()
 Creates a new ItemStack based on this MaterialData.
 
ItemStack toItemStack (int amount)
 Creates a new ItemStack based on this MaterialData.
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Detailed Description

Represents the different types of crops.

Definition at line 9 of file Crops.java.

Constructor & Destructor Documentation

org.bukkit.material.Crops.Crops ( )

Definition at line 10 of file Crops.java.

References org.bukkit.Material.CROPS.

org.bukkit.material.Crops.Crops ( CropState  state)

Definition at line 14 of file Crops.java.

References org.bukkit.material.Crops.setState().

org.bukkit.material.Crops.Crops ( final int  type)

Definition at line 19 of file Crops.java.

org.bukkit.material.Crops.Crops ( final Material  type)

Definition at line 23 of file Crops.java.

org.bukkit.material.Crops.Crops ( final int  type,
final byte  data 
)

Definition at line 27 of file Crops.java.

org.bukkit.material.Crops.Crops ( final Material  type,
final byte  data 
)

Definition at line 31 of file Crops.java.

Member Function Documentation

Crops org.bukkit.material.Crops.clone ( )

Definition at line 59 of file Crops.java.

References org.bukkit.material.Crops.clone().

Referenced by org.bukkit.material.Crops.clone().

CropState org.bukkit.material.Crops.getState ( )

Gets the current growth state of this crop.

Returns
CropState of this crop

Definition at line 40 of file Crops.java.

References org.bukkit.CropState.getByData(), and org.bukkit.material.MaterialData.getData().

Referenced by org.bukkit.material.Crops.toString().

void org.bukkit.material.Crops.setState ( CropState  state)

Sets the growth state of this crop.

Parameters
stateNew growth state of this crop

Definition at line 49 of file Crops.java.

References org.bukkit.CropState.getData(), and org.bukkit.material.MaterialData.setData().

Referenced by org.bukkit.material.Crops.Crops().

String org.bukkit.material.Crops.toString ( )

Definition at line 54 of file Crops.java.

References org.bukkit.material.Crops.getState().


The documentation for this class was generated from the following file: