Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.material.LongGrass Class Reference
Inheritance diagram for org.bukkit.material.LongGrass:
org.bukkit.material.MaterialData

Public Member Functions

 LongGrass (GrassSpecies species)
 
 LongGrass (final int type)
 
 LongGrass (final Material type)
 
 LongGrass (final int type, final byte data)
 
 LongGrass (final Material type, final byte data)
 
GrassSpecies getSpecies ()
 
void setSpecies (GrassSpecies species)
 
String toString ()
 
LongGrass 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 ()
 
void setData (byte data)
 
Material getItemType ()
 
int getItemTypeId ()
 
ItemStack toItemStack ()
 
ItemStack toItemStack (int amount)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Detailed Description

Represents the different types of long grasses.

Definition at line 9 of file LongGrass.java.

Constructor & Destructor Documentation

org.bukkit.material.LongGrass.LongGrass ( final int  type)
Deprecated:
Magic value

Definition at line 24 of file LongGrass.java.

24  {
25  super(type);
26  }
org.bukkit.material.LongGrass.LongGrass ( final int  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 37 of file LongGrass.java.

37  {
38  super(type, data);
39  }
org.bukkit.material.LongGrass.LongGrass ( final Material  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 46 of file LongGrass.java.

46  {
47  super(type, data);
48  }

Member Function Documentation

GrassSpecies org.bukkit.material.LongGrass.getSpecies ( )

Gets the current species of this grass

Returns
GrassSpecies of this grass

Definition at line 55 of file LongGrass.java.

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

55  {
56  return GrassSpecies.getByData(getData());
57  }
void org.bukkit.material.LongGrass.setSpecies ( GrassSpecies  species)

Sets the species of this grass

Parameters
speciesNew species of this grass

Definition at line 64 of file LongGrass.java.

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

64  {
65  setData(species.getData());
66  }

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