mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-28 09:17:21 +01:00
CraftBlock instance getLocation() method.
This commit is contained in:
parent
1cbde901ba
commit
2106eeef50
1 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,7 @@ package org.bukkit.craftbukkit.block;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.block.Biome;
|
import org.bukkit.block.Biome;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
|
import org.bukkit.Location;
|
||||||
import net.minecraft.server.MobSpawnerBase;
|
import net.minecraft.server.MobSpawnerBase;
|
||||||
import org.bukkit.*;
|
import org.bukkit.*;
|
||||||
import org.bukkit.block.BlockState;
|
import org.bukkit.block.BlockState;
|
||||||
|
@ -54,6 +55,15 @@ public class CraftBlock implements Block {
|
||||||
return world;
|
return world;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the Location of the block
|
||||||
|
*
|
||||||
|
* @return Location of the block
|
||||||
|
*/
|
||||||
|
public Location getLocation() {
|
||||||
|
return new Location(world, x, y, z);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the x-coordinate of this block
|
* Gets the x-coordinate of this block
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue