Class EntityBoundingBox

java.lang.Object
net.glowstone.entity.physics.BoundingBox
net.glowstone.entity.physics.EntityBoundingBox
All Implemented Interfaces:
Cloneable

public class EntityBoundingBox extends BoundingBox
A BoundingBox which changes position over time as an entity moves.
  • Constructor Details

    • EntityBoundingBox

      public EntityBoundingBox(double horizSize, double vertSize)
    • EntityBoundingBox

      public EntityBoundingBox(double width, double vertSize, double depth)
      Creates an instance with the given size.
      Parameters:
      width - the size on the X axis
      vertSize - the size on the Y axis
      depth - the size on the Z axis
  • 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 class BoundingBox
      Returns:
      the displacement of the maximum corner from the minimum corner
    • setCenter

      public void setCenter(double x, double y, double z)
      Moves this box so that its center is the given point.
      Parameters:
      x - the center X coordinate
      y - the center Y coordinate
      z - the center Z coordinate