Class Leaves

    • Field Detail

      • DEFAULT_TYPE

        protected static final Material DEFAULT_TYPE
        Deprecated.
      • DEFAULT_DECAYABLE

        protected static final boolean DEFAULT_DECAYABLE
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Leaves

        public Leaves()
        Deprecated.
        Constructs a leaf block.
      • Leaves

        public Leaves​(TreeSpecies species)
        Deprecated.
        Constructs a leaf block of the given tree species.
        Parameters:
        species - the species of the wood block
      • Leaves

        public Leaves​(TreeSpecies species,
                      boolean isDecayable)
        Deprecated.
        Constructs a leaf block of the given tree species and flag for whether this leaf block will disappear when too far from a log.
        Parameters:
        species - the species of the wood block
        isDecayable - whether the block is permanent or can disappear
      • Leaves

        public Leaves​(Material type)
        Deprecated.
        Constructs a leaf block of the given type.
        Parameters:
        type - the type of leaf block
      • Leaves

        public Leaves​(Material type,
                      TreeSpecies species)
        Deprecated.
        Constructs a leaf block of the given type and tree species.
        Parameters:
        type - the type of leaf block
        species - the species of the wood block
      • Leaves

        public Leaves​(Material type,
                      TreeSpecies species,
                      boolean isDecayable)
        Deprecated.
        Constructs a leaf block of the given type and tree species and flag for whether this leaf block will disappear when too far from a log.
        Parameters:
        type - the type of leaf block
        species - the species of the wood block
        isDecayable - whether the block is permanent or can disappear
      • Leaves

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

      • isDecaying

        public boolean isDecaying()
        Deprecated.
        Checks if this leaf block is in the process of decaying
        Returns:
        true if the leaf block is in the process of decaying
      • setDecaying

        public void setDecaying​(boolean isDecaying)
        Deprecated.
        Set whether this leaf block is in the process of decaying
        Parameters:
        isDecaying - whether the block is decaying or not
      • isDecayable

        public boolean isDecayable()
        Deprecated.
        Checks if this leaf block is permanent or can decay when too far from a log
        Returns:
        true if the leaf block is permanent or can decay when too far from a log
      • setDecayable

        public void setDecayable​(boolean isDecayable)
        Deprecated.
        Set whether this leaf block will disappear when too far from a log
        Parameters:
        isDecayable - whether the block is permanent or can disappear
      • clone

        public Leaves clone()
        Deprecated.
        Overrides:
        clone in class Wood