Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.CropState Enum Reference

Public Member Functions

byte getData ()
 

Static Public Member Functions

static CropState getByData (final byte data)
 
 [static initializer]
 

Public Attributes

 SEEDED =(0x0)
 
 GERMINATED =(0x1)
 
 VERY_SMALL =(0x2)
 
 SMALL =(0x3)
 
 MEDIUM =(0x4)
 
 TALL =(0x5)
 
 VERY_TALL =(0x6)
 
 RIPE =(0x7)
 

Detailed Description

Represents the different growth states of crops

Definition at line 10 of file CropState.java.

Member Function Documentation

static CropState org.bukkit.CropState.getByData ( final byte  data)
static

Gets the CropState with the given data value

Parameters
dataData value to fetch
Returns
The CropState representing the given value, or null if it doesn't exist
Deprecated:
Magic value

Definition at line 72 of file CropState.java.

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

72  {
73  return BY_DATA.get(data);
74  }
byte org.bukkit.CropState.getData ( )

Gets the associated data value representing this growth state

Returns
A byte containing the data value of this growth state
Deprecated:
Magic value

Definition at line 59 of file CropState.java.

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

59  {
60  return data;
61  }

Member Data Documentation

org.bukkit.CropState.GERMINATED =(0x1)

First growth stage

Definition at line 19 of file CropState.java.

org.bukkit.CropState.MEDIUM =(0x4)

Fourth growth stage

Definition at line 31 of file CropState.java.

org.bukkit.CropState.RIPE =(0x7)

Ripe stage

Definition at line 43 of file CropState.java.

org.bukkit.CropState.SEEDED =(0x0)

State when first seeded

Definition at line 15 of file CropState.java.

org.bukkit.CropState.SMALL =(0x3)

Third growth stage

Definition at line 27 of file CropState.java.

org.bukkit.CropState.TALL =(0x5)

Fifth growth stage

Definition at line 35 of file CropState.java.

org.bukkit.CropState.VERY_SMALL =(0x2)

Second growth stage

Definition at line 23 of file CropState.java.

org.bukkit.CropState.VERY_TALL =(0x6)

Almost ripe stage

Definition at line 39 of file CropState.java.


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