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