java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.dimensions.Dimensions

public class Dimensions extends Object
Represents the dimensions of the Stats (form) of a given Species
  • Constructor Summary

    Constructors
    Constructor
    Description
    Dimensions(double height, double width, double length, float eyeHeight, float hoverHeight)
    Default constructor for the Dimensions of a Stats of a Species
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.phys.AABB
    Create a bounding box based on these dimensions
    net.minecraft.world.phys.AABB
    createBoundingBox(net.minecraft.world.entity.Entity entity)
    Create a bounding box based on these dimensions
    net.minecraft.world.phys.AABB
    createBoundingBox(net.minecraft.world.entity.Entity entity, double scale)
    Create a bounding box based on these dimensions
    float
    Gets the eye height of the form
    double
    Gets the height of the form
    float
    Gets the hover height of the form
    double
    Gets the length of the form
    double
    Gets the width of the form

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Dimensions

      public Dimensions(double height, double width, double length, float eyeHeight, float hoverHeight)
      Default constructor for the Dimensions of a Stats of a Species
      Parameters:
      height - The height of the Pokémon form
      width - The width of the Pokémon form
      length - The length of the Pokémon form
      eyeHeight - The eye height of the Pokémon form
  • Method Details

    • getHeight

      public double getHeight()
      Gets the height of the form
      Returns:
      The height in meters
    • getWidth

      public double getWidth()
      Gets the width of the form
      Returns:
      The width in meters
    • getLength

      public double getLength()
      Gets the length of the form
      Returns:
      The length in meters
    • getEyeHeight

      public float getEyeHeight()
      Gets the eye height of the form
      Returns:
      The eye height in meters
    • getHoverHeight

      public float getHoverHeight()
      Gets the hover height of the form
      Returns:
      The hover height in meters
    • createBoundingBox

      public net.minecraft.world.phys.AABB createBoundingBox()
      Create a bounding box based on these dimensions
      Returns:
      New bounding box
    • createBoundingBox

      public net.minecraft.world.phys.AABB createBoundingBox(net.minecraft.world.entity.Entity entity)
      Create a bounding box based on these dimensions
      Parameters:
      entity - Entity to center the bounding box on
      Returns:
      New bounding box
    • createBoundingBox

      public net.minecraft.world.phys.AABB createBoundingBox(net.minecraft.world.entity.Entity entity, double scale)
      Create a bounding box based on these dimensions
      Parameters:
      entity - Entity to center the bounding box on
      scale - How much to scale this bounding box by
      Returns:
      New bounding box