canSpawn

public boolean canSpawn(World world, int x, int z)

Tests if the specified location is valid for getClassById natural spawn position

Return

true if the location is valid, otherwise false

Parameters

world

The world we're testing on

x

X-coordinate of the block to test

z

Z-coordinate of the block to test