Package org.bukkit.material
Class Crops
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Crops
-
- All Implemented Interfaces:
Cloneable
@Deprecated public class Crops extends MaterialData
Deprecated.all usage of MaterialData is deprecated and subject to removal. UseBlockData.Represents the different types of crops in different states of growth.
-
-
Field Summary
Fields Modifier and Type Field Description protected static CropStateDEFAULT_STATEDeprecated.protected static MaterialDEFAULT_TYPEDeprecated.
-
Constructor Summary
Constructors Constructor Description Crops()Deprecated.Constructs a wheat crop block in the seeded state.Crops(CropState state)Deprecated.Constructs a wheat crop block in the given growth stateCrops(Material type)Deprecated.Constructs a crop block of the given type and in the seeded stateCrops(Material type, byte data)Deprecated.Magic valueCrops(Material type, CropState state)Deprecated.Constructs a crop block of the given type and in the given growth state
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Cropsclone()Deprecated.CropStategetState()Deprecated.Gets the current growth state of this crop For crops with only four growth states such as beetroot, only the values SEEDED, SMALL, TALL and RIPE will be returned.voidsetState(CropState state)Deprecated.Sets the growth state of this crop For crops with only four growth states such as beetroot, the 8 CropStates are mapped into four states: SEEDED, SMALL, TALL and RIPE GERMINATED will change to SEEDED VERY_SMALL will change to SMALL MEDIUM will change to TALL VERY_TALL will change to RIPEStringtoString()Deprecated.-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Crops
public Crops()
Deprecated.Constructs a wheat crop block in the seeded state.
-
Crops
public Crops(CropState state)
Deprecated.Constructs a wheat crop block in the given growth state- Parameters:
state- The growth state of the crops
-
Crops
public Crops(Material type, CropState state)
Deprecated.Constructs a crop block of the given type and in the given growth state- Parameters:
type- The type of cropsstate- The growth state of the crops
-
Crops
public Crops(Material type)
Deprecated.Constructs a crop block of the given type and in the seeded state- Parameters:
type- The type of crops
-
Crops
@Deprecated public Crops(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Detail
-
getState
public CropState getState()
Deprecated.Gets the current growth state of this crop For crops with only four growth states such as beetroot, only the values SEEDED, SMALL, TALL and RIPE will be returned.- Returns:
- CropState of this crop
-
setState
public void setState(CropState state)
Deprecated.Sets the growth state of this crop For crops with only four growth states such as beetroot, the 8 CropStates are mapped into four states: SEEDED, SMALL, TALL and RIPE GERMINATED will change to SEEDED VERY_SMALL will change to SMALL MEDIUM will change to TALL VERY_TALL will change to RIPE- Parameters:
state- New growth state of this crop
-
toString
public String toString()
Deprecated.- Overrides:
toStringin classMaterialData
-
clone
public Crops clone()
Deprecated.- Overrides:
clonein classMaterialData
-
-