| Modifier and Type | Field and Description |
|---|---|
boolean |
collidedHor |
boolean |
collidedVert |
BoundingBox |
currentBounds |
double |
lastTickX |
double |
lastTickY |
double |
motionX |
double |
motionY |
boolean |
onGround |
IWorld |
world |
| Constructor and Description |
|---|
MovableWorldObject(IWorld world) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCollideWithTile(TileState state,
int x,
int y,
TileLayer layer) |
abstract float |
getHeight() |
double |
getLerpedX() |
double |
getLerpedY() |
double |
getOriginX() |
double |
getOriginY() |
abstract float |
getWidth() |
double |
getX() |
double |
getY() |
void |
move() |
void |
onEntityCollision(Entity entity,
BoundingBox thisBox,
BoundingBox thisBoxMotion,
BoundingBox otherBox,
BoundingBox otherBoxMotion) |
void |
onEntityIntersection(Entity entity,
BoundingBox thisBox,
BoundingBox thisBoxMotion,
BoundingBox otherBox,
BoundingBox otherBoxMotion) |
void |
onPositionReset() |
void |
onTileCollision(int x,
int y,
TileLayer layer,
TileState state,
BoundingBox objBox,
BoundingBox objBoxMotion,
java.util.List<BoundingBox> boxes) |
void |
onTileIntersection(int x,
int y,
TileLayer layer,
TileState state,
BoundingBox objBox,
BoundingBox objBoxMotion,
java.util.List<BoundingBox> boxes) |
void |
resetBounds() |
void |
setBounds(double x,
double y) |
void |
setBoundsOrigin(double x,
double y) |
void |
setPos(double x,
double y) |
public final BoundingBox currentBounds
public IWorld world
public double motionX
public double motionY
public boolean collidedHor
public boolean collidedVert
public boolean onGround
public double lastTickX
public double lastTickY
public MovableWorldObject(IWorld world)
public void setPos(double x,
double y)
public void resetBounds()
public void setBounds(double x,
double y)
public void setBoundsOrigin(double x,
double y)
public double getX()
public double getY()
public double getOriginX()
public double getOriginY()
public void onPositionReset()
public double getLerpedX()
public double getLerpedY()
@ApiInternal public void move()
@ApiInternal public void onTileCollision(int x, int y, TileLayer layer, TileState state, BoundingBox objBox, BoundingBox objBoxMotion, java.util.List<BoundingBox> boxes)
@ApiInternal public void onEntityCollision(Entity entity, BoundingBox thisBox, BoundingBox thisBoxMotion, BoundingBox otherBox, BoundingBox otherBoxMotion)
@ApiInternal public void onTileIntersection(int x, int y, TileLayer layer, TileState state, BoundingBox objBox, BoundingBox objBoxMotion, java.util.List<BoundingBox> boxes)
@ApiInternal public void onEntityIntersection(Entity entity, BoundingBox thisBox, BoundingBox thisBoxMotion, BoundingBox otherBox, BoundingBox otherBoxMotion)
public boolean canCollideWithTile(TileState state, int x, int y, TileLayer layer)
public abstract float getWidth()
public abstract float getHeight()