Class ChunkUtility
java.lang.Object
me.tayebyassine.homestead.util.minecraft.chunks.ChunkUtility
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareEqual(org.bukkit.Chunk chunk1, org.bukkit.Chunk chunk2) static org.bukkit.ChunkfindNearbyUnclaimedChunk(org.bukkit.Location location, int maxRadius) static org.bukkit.LocationfindSafeNetherLocation(org.bukkit.World world, int x, int z) Finds a safe standable location in the Nether near (x, z).static List<org.bukkit.Chunk> getChunksInArea(SeBlock corner1, SeBlock corner2) static List<org.bukkit.Chunk> getChunksInArea(org.bukkit.block.Block corner1, org.bukkit.block.Block corner2) static StringgetIdentifierString(org.bukkit.Chunk chunk) static org.bukkit.LocationgetLocation(org.bukkit.entity.Player player, RegionChunk chunk) Returns a safe teleport location inside the given chunk.static org.bukkit.LocationgetLocation(org.bukkit.entity.Player player, org.bukkit.Chunk chunk) Returns a safe teleport location inside the given chunk.static org.bukkit.LocationReturns a safe teleport location inside the given chunk without yaw and pitch angles.static org.bukkit.LocationgetLocationWithoutYawPitch(org.bukkit.Chunk chunk) Returns a safe teleport location inside the given chunk without yaw and pitch angles.
-
Method Details
-
getChunksInArea
-
getChunksInArea
public static List<org.bukkit.Chunk> getChunksInArea(org.bukkit.block.Block corner1, org.bukkit.block.Block corner2) -
findNearbyUnclaimedChunk
public static org.bukkit.Chunk findNearbyUnclaimedChunk(org.bukkit.Location location, int maxRadius) -
getIdentifierString
-
areEqual
public static boolean areEqual(org.bukkit.Chunk chunk1, org.bukkit.Chunk chunk2) -
getLocation
Returns a safe teleport location inside the given chunk. -
getLocationWithoutYawPitch
Returns a safe teleport location inside the given chunk without yaw and pitch angles. -
getLocationWithoutYawPitch
public static org.bukkit.Location getLocationWithoutYawPitch(org.bukkit.Chunk chunk) Returns a safe teleport location inside the given chunk without yaw and pitch angles. -
getLocation
public static org.bukkit.Location getLocation(org.bukkit.entity.Player player, org.bukkit.Chunk chunk) Returns a safe teleport location inside the given chunk. -
findSafeNetherLocation
public static org.bukkit.Location findSafeNetherLocation(org.bukkit.World world, int x, int z) Finds a safe standable location in the Nether near (x, z).
-