|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.src.Entity
net.minecraft.src.EntityPainting
public class EntityPainting
Field Summary | |
---|---|
EnumArt |
art
|
int |
direction
the direction the painting faces |
int |
xPosition
|
int |
yPosition
|
int |
zPosition
|
Constructor Summary | |
---|---|
EntityPainting(World par1World)
|
|
EntityPainting(World par1World,
int par2,
int par3,
int par4,
int par5)
|
|
EntityPainting(World par1World,
int par2,
int par3,
int par4,
int par5,
String par6Str)
|
Method Summary | |
---|---|
void |
addVelocity(double par1,
double par3,
double par5)
Adds to the current velocity of the entity. |
boolean |
attackEntityFrom(DamageSource par1DamageSource,
int par2)
Called when the entity is attacked. |
boolean |
canBeCollidedWith()
Returns true if other Entities should be prevented from moving through this Entity. |
void |
moveEntity(double par1,
double par3,
double par5)
Tries to moves the entity by the passed in displacement. |
void |
onUpdate()
Called to update the entity's position/logic. |
boolean |
onValidSurface()
checks to make sure painting can be placed there |
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT. |
void |
setDirection(int par1)
Sets the direction the painting faces. |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int direction
public int xPosition
public int yPosition
public int zPosition
public EnumArt art
Constructor Detail |
---|
public EntityPainting(World par1World)
public EntityPainting(World par1World, int par2, int par3, int par4, int par5)
public EntityPainting(World par1World, int par2, int par3, int par4, int par5, String par6Str)
Method Detail |
---|
public void setDirection(int par1)
public void onUpdate()
onUpdate
in class Entity
public boolean onValidSurface()
public boolean canBeCollidedWith()
canBeCollidedWith
in class Entity
public boolean attackEntityFrom(DamageSource par1DamageSource, int par2)
attackEntityFrom
in class Entity
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
public void moveEntity(double par1, double par3, double par5)
moveEntity
in class Entity
public void addVelocity(double par1, double par3, double par5)
addVelocity
in class Entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |