3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00

CraftBlock instance getLocation() method.

Dieser Commit ist enthalten in:
Adam Tanner 2011-01-21 19:40:31 +08:00 committet von Victor Danell
Ursprung 1cbde901ba
Commit 2106eeef50

Datei anzeigen

@ -4,6 +4,7 @@ package org.bukkit.craftbukkit.block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.Biome;
import org.bukkit.block.Block;
import org.bukkit.Location;
import net.minecraft.server.MobSpawnerBase;
import org.bukkit.*;
import org.bukkit.block.BlockState;
@ -54,6 +55,15 @@ public class CraftBlock implements Block {
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
*