Package org.bukkit.material
Class LongGrass
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.LongGrass
- All Implemented Interfaces:
java.lang.Cloneable
public class LongGrass extends MaterialData
Represents the different types of long grasses.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description LongGrass
clone()
GrassSpecies
getSpecies()
Gets the current species of this grassvoid
setSpecies(GrassSpecies species)
Sets the species of this grassjava.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
LongGrass
public LongGrass() -
LongGrass
-
LongGrass
@Deprecated public LongGrass(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
LongGrass
-
LongGrass
@Deprecated public LongGrass(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
LongGrass
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
getSpecies
Gets the current species of this grass- Returns:
- GrassSpecies of this grass
-
setSpecies
Sets the species of this grass- Parameters:
species
- New species of this grass
-
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-