Interface Leaves

All Superinterfaces:
BlockData, Cloneable, Waterlogged

public interface Leaves extends Waterlogged
'persistent' indicates whether or not leaves will be checked by the server to see if they are subject to decay or not.
'distance' denotes how far the block is from a tree and is used in conjunction with 'persistent' flag to determine if the leaves will decay or not.
Since:
1.13
  • Method Details

    • isPersistent

      boolean isPersistent()
      Gets the value of the 'persistent' property.
      Returns:
      the persistent value
      Since:
      1.13
    • setPersistent

      void setPersistent(boolean persistent)
      Sets the value of the 'persistent' property.
      Parameters:
      persistent - the new 'persistent' value
      Since:
      1.13
    • getDistance

      int getDistance()
      Gets the value of the 'distance' property.
      Returns:
      the 'distance' value
      Since:
      1.13
    • setDistance

      void setDistance(int distance)
      Sets the value of the 'distance' property.
      Parameters:
      distance - the new 'distance' value
      Since:
      1.13
    • getMaximumDistance

      int getMaximumDistance()
      Gets the maximum allowed value of the 'distance' property.
      Returns:
      the maximum 'distance' value
      Since:
      1.18.1
    • getMinimumDistance

      int getMinimumDistance()
      Gets the minimum allowed value of the 'distance' property.
      Returns:
      the minimum 'distance' value
      Since:
      1.18.1