Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

BlockUtils

Chanakan55991 edited this page Apr 28, 2021 · 2 revisions

BlockUtils class is located at: live.chanakancloud.taputils.utils.BlockUtils

here you can find utilities related to math. the list below contained all function and parameters and what it return:

getFriction(Material material) (get friction from the block material)

return float

getBlockFromGround(Player player) (get block from ground where the player X,Z axis was)

return org.bukkit.block.Block

getBlockFromGround(Block block)

return org.bukkit.block.Block

getBlockInRadius(Block block, int radius)

return List

getBlockInRadius(Player player, int radius)

return List

getTopBlock(Player player)

return org.bukkit.block.Block

getTopBlock(Block block)

return org.bukkit.block.Block