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

Public Member Functions

byte getData ()
 

Static Public Member Functions

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

Public Attributes

 DEAD =(0x0)
 
 NORMAL =(0x1)
 
 FERN_LIKE =(0x2)
 

Detailed Description

Represents the different types of grass.

Definition at line 10 of file GrassSpecies.java.

Member Function Documentation

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

Gets the GrassSpecies with the given data value

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

Definition at line 52 of file GrassSpecies.java.

Referenced by org.bukkit.material.LongGrass.getSpecies().

52  {
53  return BY_DATA.get(data);
54  }
byte org.bukkit.GrassSpecies.getData ( )

Gets the associated data value representing this species

Returns
A byte containing the data value of this grass species
Deprecated:
Magic value

Definition at line 39 of file GrassSpecies.java.

Referenced by org.bukkit.material.LongGrass.setSpecies().

39  {
40  return data;
41  }

Member Data Documentation

org.bukkit.GrassSpecies.DEAD =(0x0)

Represents the dead looking grass.

Definition at line 15 of file GrassSpecies.java.

org.bukkit.GrassSpecies.FERN_LIKE =(0x2)

Represents the fern-looking grass species.

Definition at line 23 of file GrassSpecies.java.

Referenced by org.bukkit.material.FlowerPot.getContents(), and org.bukkit.material.FlowerPot.setContents().

org.bukkit.GrassSpecies.NORMAL =(0x1)

Represents the normal grass species.

Definition at line 19 of file GrassSpecies.java.


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