UltimateTimber/src/main/java/com/songoda/ultimatetimber/tree/FallingTreeBlock.java

32 lines
752 B
Java

package com.songoda.ultimatetimber.tree;
import org.bukkit.Location;
import org.bukkit.entity.FallingBlock;
public class FallingTreeBlock implements ITreeBlock<FallingBlock> {
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;
}
}