Package org.bukkit.material
Class LongGrass
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.LongGrass
-
- All Implemented Interfaces:
Cloneable
public class LongGrass extends MaterialData
Represents the different types of long grasses.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongGrassclone()GrassSpeciesgetSpecies()Gets the current species of this grassvoidsetSpecies(GrassSpecies species)Sets the species of this grassStringtoString()-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
LongGrass
public LongGrass()
-
LongGrass
public LongGrass(GrassSpecies species)
-
LongGrass
public LongGrass(Material type)
-
LongGrass
@Deprecated public LongGrass(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data 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:
toStringin classMaterialData
-
clone
public LongGrass clone()
- Overrides:
clonein classMaterialData
-
-