org.bukkit.material
Class LongGrass

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.LongGrass
All Implemented Interfaces:
Cloneable

public class LongGrass
extends MaterialData

Represents the different types of long grasses.


Constructor Summary
LongGrass()
           
LongGrass(GrassSpecies species)
           
LongGrass(int type)
          Deprecated. Magic value
LongGrass(int type, byte data)
          Deprecated. Magic value
LongGrass(Material type)
           
LongGrass(Material type, byte data)
          Deprecated. Magic value
 
Method Summary
 LongGrass clone()
           
 GrassSpecies getSpecies()
          Gets the current species of this grass
 void setSpecies(GrassSpecies species)
          Sets the species of this grass
 String toString()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongGrass

public LongGrass()

LongGrass

public LongGrass(GrassSpecies species)

LongGrass

@Deprecated
public LongGrass(int type)
Deprecated. Magic value


LongGrass

public LongGrass(Material type)

LongGrass

@Deprecated
public LongGrass(int type,
                            byte data)
Deprecated. Magic value


LongGrass

@Deprecated
public LongGrass(Material type,
                            byte data)
Deprecated. Magic value

Method Detail

getSpecies

public GrassSpecies getSpecies()
Gets the current species of this grass

Returns:
GrassSpecies of this grass

setSpecies

public void setSpecies(GrassSpecies species)
Sets the species of this grass

Parameters:
species - New species of this grass

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public LongGrass clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.