Class LongGrass

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

@Deprecated(forRemoval=true, since="1.13") public class LongGrass extends MaterialData
Deprecated, for removal: This API element is subject to removal in a future version.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents the different types of long grasses.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    LongGrass(Material type, byte data)
    Deprecated.
    Magic value
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the current species of this grass
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the species of this grass
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class org.bukkit.material.MaterialData

    equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LongGrass

      public LongGrass()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LongGrass

      public LongGrass(GrassSpecies species)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LongGrass

      public LongGrass(Material type)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LongGrass

      @Deprecated public LongGrass(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
  • Method Details

    • getSpecies

      public GrassSpecies getSpecies()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the current species of this grass
      Returns:
      GrassSpecies of this grass
    • setSpecies

      public void setSpecies(GrassSpecies species)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the species of this grass
      Parameters:
      species - New species of this grass
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class MaterialData
    • clone

      public LongGrass clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData