public class EntityItem extends Entity
| Modifier and Type | Field and Description |
|---|---|
ItemInstance |
item |
chunkX, chunkY, dead, facing, fallAmount, isClimbing, lastX, lastY, ticksExisted, uniqueIdcollidedHor, collidedVert, motionX, motionY, onGround, world, x, y| Constructor and Description |
|---|
EntityItem(IWorld world) |
EntityItem(IWorld world,
ItemInstance item) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyMotion() |
boolean |
canPickUp() |
BoundBox |
getBoundingBox() |
IEntityRenderer |
getRenderer() |
int |
getRenderPriority() |
int |
getSyncFrequency() |
void |
load(DataSet set) |
void |
save(DataSet set) |
static void |
spawn(IWorld world,
ItemInstance inst,
double x,
double y,
double motionX,
double motionY) |
void |
update(IGameInstance game) |
doesSave, doesSync, getAdditionalData, getUniqueId, isDead, kill, moveToChunk, onCollideWithTile, onGroundHit, onInteractWith, onRemoveFromWorld, setAdditionalData, setDead, shouldBeRemoved, shouldRendermove, setPospublic ItemInstance item
public EntityItem(IWorld world)
public EntityItem(IWorld world, ItemInstance item)
public static void spawn(IWorld world, ItemInstance inst, double x, double y, double motionX, double motionY)
public IEntityRenderer getRenderer()
getRenderer in class Entitypublic void update(IGameInstance game)
public int getSyncFrequency()
getSyncFrequency in class Entitypublic int getRenderPriority()
getRenderPriority in class Entitypublic boolean canPickUp()
public BoundBox getBoundingBox()
getBoundingBox in class Entitypublic void applyMotion()
applyMotion in class Entity