public class EntityArrow extends Entity implements IProjectile
Entity.EnumEntitySize| Modifier and Type | Field and Description |
|---|---|
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.
|
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
EntityArrow(World p_i1753_1_) |
EntityArrow(World p_i1754_1_,
double p_i1754_2_,
double p_i1754_4_,
double p_i1754_6_) |
EntityArrow(World p_i1755_1_,
EntityLivingBase p_i1755_2_,
EntityLivingBase p_i1755_3_,
float p_i1755_4_,
float p_i1755_5_) |
EntityArrow(World p_i1756_1_,
EntityLivingBase p_i1756_2_,
float p_i1756_3_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAttackWithItem()
If returns false, the item will not inflict any damage against entities.
|
protected boolean |
canTriggerWalking()
returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to
prevent them from trampling crops
|
protected void |
entityInit() |
double |
getDamage() |
boolean |
getIsCritical()
Whether the arrow has a stream of critical hit particles flying behind it.
|
float |
getShadowSize() |
void |
onCollideWithPlayer(EntityPlayer p_70100_1_)
Called by a player entity when they collide with an entity
|
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
readEntityFromNBT(NBTTagCompound p_70037_1_)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setDamage(double p_70239_1_) |
void |
setIsCritical(boolean p_70243_1_)
Whether the arrow has a stream of critical hit particles flying behind it.
|
void |
setKnockbackStrength(int p_70240_1_)
Sets the amount of knockback the arrow applies when it hits a mob.
|
void |
setPositionAndRotation2(double p_70056_1_,
double p_70056_3_,
double p_70056_5_,
float p_70056_7_,
float p_70056_8_,
int p_70056_9_)
Sets the position and rotation.
|
void |
setThrowableHeading(double p_70186_1_,
double p_70186_3_,
double p_70186_5_,
float p_70186_7_,
float p_70186_8_)
Similar to setArrowHeading, it's point the throwable entity to a x, y, z direction.
|
void |
setVelocity(double p_70016_1_,
double p_70016_3_,
double p_70016_5_)
Sets the velocity to the args.
|
void |
writeEntityToNBT(NBTTagCompound p_70014_1_)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, canRenderOnFire, canRiderInteract, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doesEntityNotTriggerPressurePlate, dropItem, entityDropItem, equals, extinguish, fall, func_145748_c_, func_145771_j, func_145772_a, func_145774_a, func_145775_I, func_145778_a, func_145780_a, func_145781_i, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCommandSenderName, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityId, getEntityString, getExtendedProperties, getEyeHeight, getFlag, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPortalCooldown, getRotationYawHead, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, interactFirst, isBurning, isCreatureType, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, kill, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onEntityUpdate, onKillEntity, onStruckByLightning, performHurtAnimation, playSound, preparePlayerToSpawn, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setDead, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, toString, travelToDimension, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptionalpublic int canBePickedUp
public int arrowShake
public Entity shootingEntity
public EntityArrow(World p_i1753_1_)
public EntityArrow(World p_i1754_1_, double p_i1754_2_, double p_i1754_4_, double p_i1754_6_)
public EntityArrow(World p_i1755_1_, EntityLivingBase p_i1755_2_, EntityLivingBase p_i1755_3_, float p_i1755_4_, float p_i1755_5_)
public EntityArrow(World p_i1756_1_, EntityLivingBase p_i1756_2_, float p_i1756_3_)
protected void entityInit()
entityInit in class Entitypublic void setThrowableHeading(double p_70186_1_,
double p_70186_3_,
double p_70186_5_,
float p_70186_7_,
float p_70186_8_)
setThrowableHeading in interface IProjectilepublic void setPositionAndRotation2(double p_70056_1_,
double p_70056_3_,
double p_70056_5_,
float p_70056_7_,
float p_70056_8_,
int p_70056_9_)
setPositionAndRotation2 in class Entitypublic void setVelocity(double p_70016_1_,
double p_70016_3_,
double p_70016_5_)
setVelocity in class Entitypublic void onUpdate()
public void writeEntityToNBT(NBTTagCompound p_70014_1_)
writeEntityToNBT in class Entitypublic void readEntityFromNBT(NBTTagCompound p_70037_1_)
readEntityFromNBT in class Entitypublic void onCollideWithPlayer(EntityPlayer p_70100_1_)
onCollideWithPlayer in class Entityprotected boolean canTriggerWalking()
canTriggerWalking in class Entitypublic float getShadowSize()
getShadowSize in class Entitypublic void setDamage(double p_70239_1_)
public double getDamage()
public void setKnockbackStrength(int p_70240_1_)
public boolean canAttackWithItem()
canAttackWithItem in class Entitypublic void setIsCritical(boolean p_70243_1_)
public boolean getIsCritical()