Class Projectile
- java.lang.Object
-
- net.minecraft.world.entity.Entity
-
- net.minecraft.world.entity.projectile.Projectile
-
- Direct Known Subclasses:
EntityEgg,Snowball,ThrownEnderpearl,ThrownExperienceBottle,ThrownPotion
public abstract class Projectile extends Entity
-
-
Field Summary
Fields Modifier and Type Field Description protected booleaninGroundbooleanisTrajectorySimintthrowableShakeprotected LivingEntitythrower-
Fields inherited from class net.minecraft.world.entity.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, dataWatcher, distanceWalkedModified, entityCollisionReduction, entityId, fallDistance, field_9293_aM, fireResistance, heartsLife, height, ignoreFrustumCheck, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, isJesusColliding, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, playerNameForSkin, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, skinUrl, slim, stepHeight, ticksExisted, velocityChanged, width, worldObj, yOffset, ySize
-
-
Constructor Summary
Constructors Constructor Description Projectile(World var1)Projectile(World var1, double var2, double var4, double var6)Projectile(World var1, LivingEntity var2)Projectile(World world, LivingEntity entityliving, boolean isTrajectorySim)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidentityInit()protected floatfunc_40074_d()protected floatfunc_40075_e()protected floatfunc_40077_c()@net.minecraft.modding.api.Side.Client floatgetShadowSize()@net.minecraft.modding.api.Side.Client booleanisInRangeToRenderDist(double var1)voidonCollideWithPlayer(Player entityplayer)protected abstract voidonImpact(MovingObjectPosition movingobjectposition)voidonUpdate()voidreadEntityFromNBT(NBTTagCompound var1)voidsetThrowableHeading(double var1, double var3, double var5, float var7, float var8)voidsetVelocity(double var1, double var3, double var5)voidwriteEntityToNBT(NBTTagCompound var1)-
Methods inherited from class net.minecraft.world.entity.Entity
addEntityID, addToPlayerScore, addVelocity, applyEntityCollision, attackEntityFrom, canAttackWithItem, canBeCollidedWith, canBePushed, canTriggerWalking, dealFireDamage, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, func_48079_f, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCurrentBiomeName, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getEyeHeight, getFlag, getHeadYaw, getInventory, getLookVec, getMountedYOffset, getParts, getTexture, getUsername, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, interact, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isImmuneToFire, isInRangeToRenderVec3D, isInsideOfMaterial, isInsideOfMaterial, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isSubmergedInAnyFluid, isWet, kill, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onEntityUpdate, onKillEntity, onStruckByLightning, outfitWithItem, performHurtAnimation, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setDead, setEating, setFire, setFlag, setInPortal, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setPositionAndRotation2, setRotation, setSize, setSneaking, setSprinting, setWorld, toString, updateFallState, updateRidden, updateRiderPosition, writeToNBT
-
-
-
-
Field Detail
-
inGround
protected boolean inGround
-
throwableShake
public int throwableShake
-
thrower
protected LivingEntity thrower
-
isTrajectorySim
public boolean isTrajectorySim
-
-
Constructor Detail
-
Projectile
public Projectile(World var1)
-
Projectile
public Projectile(World var1, LivingEntity var2)
-
Projectile
public Projectile(World world, LivingEntity entityliving, boolean isTrajectorySim)
-
Projectile
public Projectile(World var1, double var2, double var4, double var6)
-
-
Method Detail
-
entityInit
protected void entityInit()
- Specified by:
entityInitin classEntity
-
isInRangeToRenderDist
@Client public @net.minecraft.modding.api.Side.Client boolean isInRangeToRenderDist(double var1)
- Overrides:
isInRangeToRenderDistin classEntity
-
func_40077_c
protected float func_40077_c()
-
func_40074_d
protected float func_40074_d()
-
setThrowableHeading
public void setThrowableHeading(double var1, double var3, double var5, float var7, float var8)
-
setVelocity
@Client public void setVelocity(double var1, double var3, double var5)
- Overrides:
setVelocityin classEntity
-
func_40075_e
protected float func_40075_e()
-
onImpact
protected abstract void onImpact(MovingObjectPosition movingobjectposition)
-
writeEntityToNBT
public void writeEntityToNBT(NBTTagCompound var1)
- Specified by:
writeEntityToNBTin classEntity
-
readEntityFromNBT
public void readEntityFromNBT(NBTTagCompound var1)
- Specified by:
readEntityFromNBTin classEntity
-
onCollideWithPlayer
public void onCollideWithPlayer(Player entityplayer)
- Overrides:
onCollideWithPlayerin classEntity
-
getShadowSize
@Client public @net.minecraft.modding.api.Side.Client float getShadowSize()
- Overrides:
getShadowSizein classEntity
-
-