public class Entity extends MovableWorldObject
| Modifier and Type | Field and Description |
|---|---|
protected BoundBox |
boundingBox |
boolean |
canClimb |
int |
chunkX |
int |
chunkY |
protected boolean |
dead |
Direction |
facing |
double |
fallStartY |
boolean |
isClimbing |
boolean |
isFalling |
double |
lastX |
double |
lastY |
int |
ticksExisted |
protected java.util.UUID |
uniqueId |
collidedHor, collidedVert, motionX, motionY, onGround, world, x, y| Modifier and Type | Method and Description |
|---|---|
void |
applyMotion() |
boolean |
doesSave() |
boolean |
doesSync() |
DataSet |
getAdditionalData() |
BoundBox |
getBoundingBox() |
DataSet |
getOrCreateAdditionalData() |
IEntityRenderer |
getRenderer() |
int |
getRenderPriority() |
int |
getSyncFrequency() |
java.util.UUID |
getUniqueId() |
boolean |
hasAdditionalData() |
boolean |
isDead() |
void |
kill() |
void |
load(DataSet set) |
void |
moveToChunk(IChunk chunk) |
void |
onCollideWithTile(int x,
int y,
TileLayer layer,
TileState state,
BoundBox entityBox,
BoundBox entityBoxMotion,
java.util.List<BoundBox> tileBoxes) |
void |
onGroundHit(double fallDistance) |
boolean |
onInteractWith(AbstractEntityPlayer player,
double mouseX,
double mouseY) |
void |
onRemoveFromWorld() |
void |
onTileCollision(IWorld world,
int x,
int y,
TileLayer layer,
TileState state,
BoundBox objBox,
BoundBox objBoxMotion,
java.util.List<BoundBox> boxes) |
void |
save(DataSet set) |
void |
setAdditionalData(DataSet set) |
void |
setDead(boolean dead) |
boolean |
shouldBeRemoved() |
boolean |
shouldRender() |
void |
update(IGameInstance game) |
move, setPosprotected final BoundBox boundingBox
public int chunkX
public int chunkY
public Direction facing
public int ticksExisted
public double fallStartY
public boolean isFalling
public double lastX
public double lastY
public boolean isClimbing
public boolean canClimb
protected boolean dead
protected java.util.UUID uniqueId
public Entity(IWorld world)
public java.util.UUID getUniqueId()
public IEntityRenderer getRenderer()
public void update(IGameInstance game)
public boolean doesSync()
public int getSyncFrequency()
public void applyMotion()
public boolean isDead()
public boolean shouldBeRemoved()
public void onRemoveFromWorld()
public boolean shouldRender()
public void setDead(boolean dead)
public void kill()
public int getRenderPriority()
public void onGroundHit(double fallDistance)
public BoundBox getBoundingBox()
getBoundingBox in class MovableWorldObjectpublic void moveToChunk(IChunk chunk)
public boolean hasAdditionalData()
public DataSet getAdditionalData()
public void setAdditionalData(DataSet set)
public DataSet getOrCreateAdditionalData()
public void save(DataSet set)
public void load(DataSet set)
public boolean doesSave()
public void onCollideWithTile(int x,
int y,
TileLayer layer,
TileState state,
BoundBox entityBox,
BoundBox entityBoxMotion,
java.util.List<BoundBox> tileBoxes)
public boolean onInteractWith(AbstractEntityPlayer player, double mouseX, double mouseY)
public final void onTileCollision(IWorld world, int x, int y, TileLayer layer, TileState state, BoundBox objBox, BoundBox objBoxMotion, java.util.List<BoundBox> boxes)
onTileCollision in class MovableWorldObject