public class Dimensions
extends java.lang.Object
Constructor and Description |
---|
Dimensions(double height,
double width,
double length,
float eyeHeight,
float hoverHeight)
|
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.math.AxisAlignedBB |
createBoundingBox()
Create a bounding box based on these dimensions
|
net.minecraft.util.math.AxisAlignedBB |
createBoundingBox(net.minecraft.entity.Entity entity)
Create a bounding box based on these dimensions
|
net.minecraft.util.math.AxisAlignedBB |
createBoundingBox(net.minecraft.entity.Entity entity,
double scale)
Create a bounding box based on these dimensions
|
float |
getEyeHeight()
Gets the eye height of the form
|
double |
getHeight()
Gets the height of the form
|
float |
getHoverHeight()
Gets the hover height of the form
|
double |
getLength()
Gets the length of the form
|
double |
getWidth()
Gets the width of the form
|
public Dimensions(double height, double width, double length, float eyeHeight, float hoverHeight)
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 formpublic double getHeight()
public double getWidth()
public double getLength()
public float getEyeHeight()
public float getHoverHeight()
public net.minecraft.util.math.AxisAlignedBB createBoundingBox()
public net.minecraft.util.math.AxisAlignedBB createBoundingBox(net.minecraft.entity.Entity entity)
entity
- Entity to center the bounding box onpublic net.minecraft.util.math.AxisAlignedBB createBoundingBox(net.minecraft.entity.Entity entity, double scale)
entity
- Entity to center the bounding box onscale
- How much to scale this bounding box by