Package me.hsgamer.hscore.bukkit.block
Class BukkitBlockAdapter
java.lang.Object
me.hsgamer.hscore.bukkit.block.BukkitBlockAdapter
The block adapter for Bukkit
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.util.Vector
Adapt the position to vectorstatic Position
adapt
(org.bukkit.block.Block block) Adapt the block to position.static Position
adapt
(org.bukkit.block.Block block, boolean normalize) Adapt the block to positionstatic Position
adapt
(org.bukkit.Location location) Adapt the location to position.static Position
adapt
(org.bukkit.Location location, boolean normalize) Adapt the location to positionstatic Position
adapt
(org.bukkit.util.Vector vector) Adapt the vector to position.static Position
adapt
(org.bukkit.util.Vector vector, boolean normalize) Adapt the vector to positionstatic org.bukkit.Location
Adapt the position to locationstatic org.bukkit.block.Block
adaptAsBlock
(org.bukkit.World world, Position position) Adapt the position to block
-
Method Details
-
adapt
Adapt the vector to position- Parameters:
vector
- the vectornormalize
- whether to normalize the position. If true, the position will be rounded to the nearest integer- Returns:
- the position
-
adapt
Adapt the vector to position. The position will be rounded to the nearest integer.- Parameters:
vector
- the vector- Returns:
- the position
-
adapt
Adapt the location to position- Parameters:
location
- the locationnormalize
- whether to normalize the position. If true, the position will be rounded to the nearest integer- Returns:
- the position
-
adapt
Adapt the location to position. The position will be rounded to the nearest integer.- Parameters:
location
- the location- Returns:
- the position
-
adapt
Adapt the block to position- Parameters:
block
- the blocknormalize
- whether to normalize the position. If true, the position will be rounded to the nearest integer- Returns:
- the position
-
adapt
Adapt the block to position. The position will be rounded to the nearest integer.- Parameters:
block
- the block- Returns:
- the position
-
adapt
Adapt the position to vector- Parameters:
position
- the position- Returns:
- the vector
-
adapt
Adapt the position to location- Parameters:
world
- the worldposition
- the position- Returns:
- the location
-
adaptAsBlock
Adapt the position to block- Parameters:
world
- the worldposition
- the position- Returns:
- the block
-