net.minecraft.src
Class EntityArrow

java.lang.Object
  extended by net.minecraft.src.Entity
      extended by net.minecraft.src.EntityArrow

public class EntityArrow
extends Entity


Field Summary
 int arrowShake
          Seems to be some sort of timer for animating an arrow.
 int canBePickedUp
          1 if the player can pick up the arrow
 Entity shootingEntity
          The owner of this arrow.
 
Fields inherited from class net.minecraft.src.Entity
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, distanceWalkedModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, height, hurtResistantTime, ignoreFrustumCheck, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, skinUrl, stepHeight, ticksExisted, velocityChanged, width, worldObj, yOffset, ySize
 
Constructor Summary
EntityArrow(World par1World)
           
EntityArrow(World par1World, double par2, double par4, double par6)
           
EntityArrow(World par1World, EntityLiving par2EntityLiving, EntityLiving par3EntityLiving, float par4, float par5)
           
EntityArrow(World par1World, EntityLiving par2EntityLiving, float par3)
           
 
Method Summary
 boolean canAttackWithItem()
          If returns false, the item will not inflict any damage against entities.
 boolean func_70241_g()
           
 void func_70243_d(boolean par1)
           
 double getDamage()
           
 float getShadowSize()
           
 void onCollideWithPlayer(EntityPlayer par1EntityPlayer)
          Called by a player entity when they collide with an entity
 void onUpdate()
          Called to update the entity's position/logic.
 void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
          (abstract) Protected helper method to read subclass entity data from NBT.
 void setArrowHeading(double par1, double par3, double par5, float par7, float par8)
          Uses the provided coordinates as a heading and determines the velocity from it with the set force and random variance.
 void setDamage(double par1)
           
 void setKnockbackStrength(int par1)
          Sets the amount of knockback the arrow applies when it hits a mob.
 void setPositionAndRotation2(double par1, double par3, double par5, float par7, float par8, int par9)
           
 void setVelocity(double par1, double par3, double par5)
           
 void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
          (abstract) Protected helper method to write subclass entity data to NBT.
 
Methods inherited from class net.minecraft.src.Entity
addEntityID, addToPlayerScore, addVelocity, applyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_70062_b, func_70079_am, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityName, getEyeHeight, getLastActiveItems, getLookVec, getMountedYOffset, getParts, getPickedResult, getTexture, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, interact, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isWet, mountEntity, moveEntity, moveFlying, onEntityUpdate, onKillEntity, onStruckByLightning, performHurtAnimation, readFromNBT, setAir, setAngles, setDead, setEating, setFire, setHeadRotationYaw, setInPortal, setInWeb, setLocationAndAngles, setPosition, setPositionAndRotation, setSneaking, setSprinting, setWorld, shouldRiderSit, toString, unmountEntity, updateCloak, updateRidden, updateRiderPosition, writeToNBT
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

canBePickedUp

public int canBePickedUp
1 if the player can pick up the arrow


arrowShake

public int arrowShake
Seems to be some sort of timer for animating an arrow.


shootingEntity

public Entity shootingEntity
The owner of this arrow.

Constructor Detail

EntityArrow

public EntityArrow(World par1World)

EntityArrow

public EntityArrow(World par1World,
                   double par2,
                   double par4,
                   double par6)

EntityArrow

public EntityArrow(World par1World,
                   EntityLiving par2EntityLiving,
                   EntityLiving par3EntityLiving,
                   float par4,
                   float par5)

EntityArrow

public EntityArrow(World par1World,
                   EntityLiving par2EntityLiving,
                   float par3)
Method Detail

setArrowHeading

public void setArrowHeading(double par1,
                            double par3,
                            double par5,
                            float par7,
                            float par8)
Uses the provided coordinates as a heading and determines the velocity from it with the set force and random variance. Args: x, y, z, force, forceVariation


setPositionAndRotation2

public void setPositionAndRotation2(double par1,
                                    double par3,
                                    double par5,
                                    float par7,
                                    float par8,
                                    int par9)
Overrides:
setPositionAndRotation2 in class Entity

setVelocity

public void setVelocity(double par1,
                        double par3,
                        double par5)
Overrides:
setVelocity in class Entity

onUpdate

public void onUpdate()
Called to update the entity's position/logic.

Overrides:
onUpdate in class Entity

writeEntityToNBT

public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.


readEntityFromNBT

public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT.


onCollideWithPlayer

public void onCollideWithPlayer(EntityPlayer par1EntityPlayer)
Called by a player entity when they collide with an entity

Overrides:
onCollideWithPlayer in class Entity

getShadowSize

public float getShadowSize()
Overrides:
getShadowSize in class Entity

setDamage

public void setDamage(double par1)

getDamage

public double getDamage()

setKnockbackStrength

public void setKnockbackStrength(int par1)
Sets the amount of knockback the arrow applies when it hits a mob.


canAttackWithItem

public boolean canAttackWithItem()
If returns false, the item will not inflict any damage against entities.

Overrides:
canAttackWithItem in class Entity

func_70243_d

public void func_70243_d(boolean par1)

func_70241_g

public boolean func_70241_g()