Package net.glowstone.entity.physics
Class BlockBoundingBox
java.lang.Object
net.glowstone.entity.physics.BoundingBox
net.glowstone.entity.physics.BlockBoundingBox
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields inherited from class net.glowstone.entity.physics.BoundingBox
maxCorner, minCorner
-
Constructor Summary
ConstructorsConstructorDescriptionBlockBoundingBox
(org.bukkit.block.Block block) Creates a bounding box that is effectively the entire given block. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.util.Vector
getSize()
Returns the displacement of the maximum corner from the minimum corner.Methods inherited from class net.glowstone.entity.physics.BoundingBox
copyOf, fromCorners, fromPositionAndSize, intersects, intersects
-
Constructor Details
-
BlockBoundingBox
public BlockBoundingBox(org.bukkit.block.Block block) Creates a bounding box that is effectively the entire given block.- Parameters:
block
- the block
-
-
Method Details
-
getSize
public org.bukkit.util.Vector getSize()Description copied from class:BoundingBox
Returns the displacement of the maximum corner from the minimum corner.- Overrides:
getSize
in classBoundingBox
- Returns:
- the displacement of the maximum corner from the minimum corner
-