Class Dimensions
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.dimensions.Dimensions
-
Constructor Summary
ConstructorDescriptionDimensions
(double height, double width, double length, float eyeHeight, float hoverHeight) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.AABB
Create a bounding box based on these dimensionsnet.minecraft.world.phys.AABB
createBoundingBox
(net.minecraft.world.entity.Entity entity) Create a bounding box based on these dimensionsnet.minecraft.world.phys.AABB
createBoundingBox
(net.minecraft.world.entity.Entity entity, double scale) Create a bounding box based on these dimensionsfloat
Gets the eye height of the formdouble
Gets the height of the formfloat
Gets the hover height of the formdouble
Gets the length of the formdouble
getWidth()
Gets the width of the form
-
Constructor Details
-
Dimensions
public Dimensions(double height, double width, double length, float eyeHeight, float hoverHeight) - Parameters:
height
- The height of the Pokémon formwidth
- The width of the Pokémon formlength
- The length of the Pokémon formeyeHeight
- 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 onscale
- How much to scale this bounding box by- Returns:
- New bounding box
-