package com.songoda.ultimatetimber.tree; import org.bukkit.Location; import org.bukkit.entity.FallingBlock; public class FallingTreeBlock implements ITreeBlock { private final FallingBlock fallingBlock; private final TreeBlockType treeBlockType; public FallingTreeBlock(FallingBlock fallingBlock, TreeBlockType treeBlockType) { this.fallingBlock = fallingBlock; this.treeBlockType = treeBlockType; } @Override public FallingBlock getBlock() { return this.fallingBlock; } @Override public Location getLocation() { return this.fallingBlock.getLocation(); } @Override public TreeBlockType getTreeBlockType() { return this.treeBlockType; } }