Class Tree

    • Field Detail

      • DEFAULT_TYPE

        protected static final Material DEFAULT_TYPE
        Deprecated.
      • DEFAULT_DIRECTION

        protected static final BlockFace DEFAULT_DIRECTION
        Deprecated.
    • Constructor Detail

      • Tree

        public Tree()
        Deprecated.
        Constructs a tree block.
      • Tree

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

        public Tree​(TreeSpecies species,
                    BlockFace dir)
        Deprecated.
        Constructs a tree block of the given tree species, and facing the given direction.
        Parameters:
        species - the species of the tree block
        dir - the direction the tree block is facing
      • Tree

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

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

        public Tree​(Material type,
                    TreeSpecies species,
                    BlockFace dir)
        Deprecated.
        Constructs a tree block of the given type and tree species, and facing the given direction.
        Parameters:
        type - the type of tree block
        species - the species of the tree block
        dir - the direction the tree block is facing
      • Tree

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

      • getDirection

        public BlockFace getDirection()
        Deprecated.
        Get direction of the log
        Returns:
        one of:
        • BlockFace.TOP for upright (default)
        • BlockFace.NORTH (east-west)
        • BlockFace.WEST (north-south)
        • BlockFace.SELF (directionless)
      • setDirection

        public void setDirection​(BlockFace dir)
        Deprecated.
        Set direction of the log
        Parameters:
        dir - - direction of end of log (BlockFace.SELF for no direction)
      • clone

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