Package net.minecraft.src
Class EntityThrowable
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityThrowable
- All Implemented Interfaces:
IProjectile
- Direct Known Subclasses:
EntityEgg,EntityEnderPearl,EntityExpBottle,EntityPotion,EntitySnowball,SpiderWebEntity,UrnEntity
-
Field Summary
FieldsFields inherited from class net.minecraft.src.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastGroundPosX, lastGroundPosY, lastGroundPosZ, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, nextBlockCheckDistance, 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 Summary
ConstructorsConstructorDescriptionEntityThrowable(World par1World) EntityThrowable(World par1World, double par2, double par4, double par6) EntityThrowable(World par1World, EntityLivingBase par2EntityLivingBase) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected floatprotected floatprotected floatGets the amount of gravity to apply to the thrown entity with each tick.floatbooleanisInRangeToRenderDist(double par1) Checks if the entity is in range to render by using the past in distance and comparing it to its average edge length * 64 * renderDistanceWeight Args: distanceprotected abstract voidonImpact(MovingObjectPosition var1) Called when this EntityThrowable hits a block or entity.voidonUpdate()Called to update the entity's position/logic.voidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetThrowableHeading(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.protected voidsetThrower(EntityLiving throwerParam) voidsetVelocity(double par1, double par3, double par5) Sets the velocity to the args.voidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, addVelocity, appliesConstantForceWhenRidingBoat, applyEntityCollision, attackEntityFrom, attractsLightning, canAttackWithItem, canBeCollidedWith, canBePushed, canCollideWithEntity, canEntityTriggerTripwire, canRenderOnFire, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityApplyToSpawnCap, doesEntityApplyToSquidPossessionCap, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getAnimalKickMovementMultiplier, getBlockExplosionResistance, getBoundingBox, getBrightness, getBrightnessForRender, getCanBeHeadCrabbed, getCollisionBorderSize, getCollisionBox, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityName, getEntityString, getEyeHeight, getFlag, getHeadCrabSharedAttackTarget, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getMountedYOffset, getParts, getPortalCooldown, getRotationYawHead, getTeleportDirection, getTranslatedEntityName, getUniqueID, getVisualBoundingBox, getXZDistanceSqToEntity, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hasComponent, hashCode, hasHeadCrabbedSquid, hitByEntity, initComponents, interactFirst, isAffectedByMovementModifiers, isBeingRainedOn, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInsideOpaqueBlock, isEntityInsideSuffocatingBlock, isEntityInsideSuffocatingBlock, isEntityInvulnerable, isImmuneToFire, isImmuneToHeadCrabDamage, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isItemEntity, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSecondaryTargetForSquid, isSneaking, isSprinting, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isValidZombieSecondaryTarget, isWet, kill, mountEntity, mountEntityRemote, moveEntity, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, outOfUpdateRangeUpdate, performHurtAnimation, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setDead, setEating, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setPositionAndRotation2, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
inGround
protected boolean inGround -
throwableShake
public int throwableShake
-
-
Constructor Details
-
EntityThrowable
-
EntityThrowable
-
EntityThrowable
-
-
Method Details
-
entityInit
protected void entityInit()- Specified by:
entityInitin classEntity
-
isInRangeToRenderDist
public boolean isInRangeToRenderDist(double par1) Checks if the entity is in range to render by using the past in distance and comparing it to its average edge length * 64 * renderDistanceWeight Args: distance- Overrides:
isInRangeToRenderDistin classEntity
-
func_70182_d
protected float func_70182_d() -
func_70183_g
protected float func_70183_g() -
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:
setThrowableHeadingin interfaceIProjectile
-
setVelocity
public void setVelocity(double par1, double par3, double par5) Sets the velocity to the args. Args: x, y, z- Overrides:
setVelocityin classEntity
-
onUpdate
public void onUpdate()Called to update the entity's position/logic. -
getGravityVelocity
protected float getGravityVelocity()Gets the amount of gravity to apply to the thrown entity with each tick. -
onImpact
Called when this EntityThrowable hits a block or entity. -
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Specified by:
writeEntityToNBTin classEntity
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Specified by:
readEntityFromNBTin classEntity
-
getShadowSize
public float getShadowSize()- Overrides:
getShadowSizein classEntity
-
getThrower
-
setThrower
-