2019-03-28 05:22:13 +01:00
|
|
|
package com.songoda.ultimatetimber.tree;
|
|
|
|
|
2019-03-28 09:30:33 +01:00
|
|
|
import org.bukkit.Location;
|
|
|
|
|
2019-03-28 05:22:13 +01:00
|
|
|
public interface ITreeBlock<BlockType> {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the block this TreeBlock represents
|
|
|
|
*
|
|
|
|
* @return The Block for this TreeBlock
|
|
|
|
*/
|
|
|
|
BlockType getBlock();
|
|
|
|
|
2019-03-28 09:30:33 +01:00
|
|
|
/**
|
|
|
|
* Gets the location of this TreeBlock
|
|
|
|
*
|
|
|
|
* @return The Location of this TreeBlock
|
|
|
|
*/
|
|
|
|
Location getLocation();
|
|
|
|
|
2019-03-28 05:22:13 +01:00
|
|
|
/**
|
|
|
|
* Gets what type of TreeBlock this is
|
|
|
|
*
|
|
|
|
* @return The TreeBlockType
|
|
|
|
*/
|
|
|
|
TreeBlockType getTreeBlockType();
|
|
|
|
|
|
|
|
}
|