Class Cake

All Implemented Interfaces:
Cloneable

@Deprecated(since="1.14.1") public class Cake extends MaterialData
Deprecated.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
  • Constructor Details

    • Cake

      public Cake()
      Deprecated.
    • Cake

      public Cake(Material type)
      Deprecated.
    • Cake

      @Deprecated(since="1.6.2") 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.
      Gets the number of slices eaten from this cake
      Returns:
      The number of slices eaten
    • getSlicesRemaining

      public int getSlicesRemaining()
      Deprecated.
      Gets the number of slices remaining on this cake
      Returns:
      The number of slices remaining
    • setSlicesEaten

      public void setSlicesEaten(int n)
      Deprecated.
      Sets the number of slices eaten from this cake
      Parameters:
      n - The number of slices eaten
    • setSlicesRemaining

      public void setSlicesRemaining(int n)
      Deprecated.
      Sets the number of slices remaining on this cake
      Parameters:
      n - The number of slices remaining
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class MaterialData
    • clone

      public Cake clone()
      Deprecated.
      Overrides:
      clone in class MaterialData