Class Cake

All Implemented Interfaces:
Cloneable

@Deprecated(forRemoval=true, since="1.13") public class Cake 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.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Cake(Material type)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Cake(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.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the number of slices eaten from this cake
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the number of slices remaining on this cake
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the number of slices eaten from this cake
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the number of slices remaining on this cake
    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

    • Cake

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

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

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

    • getSlicesEaten

      public int getSlicesEaten()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the number of slices eaten from this cake
      Returns:
      The number of slices eaten
    • getSlicesRemaining

      public int getSlicesRemaining()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the number of slices remaining on this cake
      Returns:
      The number of slices remaining
    • setSlicesEaten

      public void setSlicesEaten(int n)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the number of slices eaten from this cake
      Parameters:
      n - The number of slices eaten
    • setSlicesRemaining

      public void setSlicesRemaining(int n)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the number of slices remaining on this cake
      Parameters:
      n - The number of slices remaining
    • 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 Cake clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData