Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.minecraft.src
Class EntityArrow

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

All Implemented Interfaces:
  IProjectile

    public class EntityArrow

extends Entity
implements IProjectile

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, dimension, distanceWalkedModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, field_82151_R, 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, timeUntilPortal, 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.
`double` | `getDamage()`
`boolean` | `getIsCritical()` Whether the arrow has a stream of critical hit particles flying behind it.
`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` | `setDamage(double par1)`
`void` | `setIsCritical(boolean par1)` Whether the arrow has a stream of critical hit particles flying behind it.
`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` | `setThrowableHeading(double par1, double par3, double par5, float par7, float par8)` Similar to setArrowHeading, it's point the throwable entity to a x, y, z direction.
`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, copyDataFrom, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_70079_am, func_82142_c, func_82143_as, func_82146_a, func_82148_at, func_82149_j, func_82150_aj, func_85029_a, func_85031_j, func_85032_ar, func_90999_ad, generatePersistentID, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityName, getEyeHeight, getLastActiveItems, getLookVec, getMaxInPortalTime, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPortalCooldown, 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, setCurrentItemOrArmor, setDead, setEating, setFire, setHeadRotationYaw, setInPortal, setInWeb, setLocationAndAngles, setPosition, setPositionAndRotation, setSneaking, setSprinting, setWorld, shouldRiderSit, toString, travelToDimension, 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

### setThrowableHeading

    public void setThrowableHeading(double par1,
                                    double par3,
                                    double par5,
                                    float par7,
                                    float par8)

  Similar to setArrowHeading, it's point the throwable entity to a x, y, z direction.

  Specified by:
    `setThrowableHeading` in interface `IProjectile`

### 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`

### setIsCritical

    public void setIsCritical(boolean par1)

  Whether the arrow has a stream of critical hit particles flying behind it.

### getIsCritical

    public boolean getIsCritical()

  Whether the arrow has a stream of critical hit particles flying behind it.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD