mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-16 18:31:53 +01:00
Added CraftBlock.getVector().
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
a827e1d875
commit
9c3badbaaf
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@ import org.bukkit.block.BlockState;
|
|||
import org.bukkit.craftbukkit.CraftChunk;
|
||||
import org.bukkit.craftbukkit.block.CraftBlockState;
|
||||
import org.bukkit.craftbukkit.block.CraftSign;
|
||||
import org.bukkit.util.BlockVector;
|
||||
|
||||
public class CraftBlock implements Block {
|
||||
private final CraftChunk chunk;
|
||||
|
@ -44,6 +45,10 @@ public class CraftBlock implements Block {
|
|||
return new Location(getWorld(), x, y, z);
|
||||
}
|
||||
|
||||
public BlockVector getVector() {
|
||||
return new BlockVector(x, y, z);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the x-coordinate of this block
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue