Package net.minecraft.src
Class EntityGhast
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityLivingBase
net.minecraft.src.EntityLiving
net.minecraft.src.EntityFlying
net.minecraft.src.EntityGhast
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintintdoubledoubledoubleFields inherited from class net.minecraft.src.EntityLiving
defaultPitch, equipmentDropChances, experienceValue, HAS_ATTACK_TARGET_DATA_WATCHER_ID, livingSoundTime, numTicksToChaseTarget, targetTasks, tasksFields inherited from class net.minecraft.src.EntityLivingBase
arrowHitTimer, attackedAtYaw, attackingPlayer, attackTime, cameraPitch, dead, deathTime, entityAge, entityLivingToAttack, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isLivingDead, isSwingInProgress, jumpMovementFactor, landMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, onChoppingBlockMaxCountdown, prevCameraPitch, prevHealth, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, recentlyOnChoppingBlockCountdown, renderYawOffset, revengeCountdown, revengeTimer, rotationYawHead, scoreValue, swingProgress, swingProgressIntFields 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, ySizeFields inherited from interface net.minecraft.src.IMob
mobSelector -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanattackEntityFrom(DamageSource par1DamageSource, float par2) Called when the entity is attacked.booleanbooleancanEntityBeSeen(Entity entity) returns true if the entity provided in the argument can be seen.voidbooleanprotected voiddropFewItems(boolean bKilledByPlayer, int iFortuneModifier) Drop 0-2 items of this living's type.protected voidbooleanbooleanChecks if the entity's current position is a valid location to spawn this entity.booleanprotected StringReturns the sound this mob makes on death.protected intReturns the item ID for the item the mob drops on death.protected StringReturns the sound this mob makes when it is hurt.protected StringReturns the sound this mob makes while it's alive.intWill return how many at most can spawn in a chunk at once.protected floatReturns the volume for the sounds this mob makes.intGet number of ticks, at least during which the living entity will be silent.protected doublevoidonUpdate()Called to update the entity's position/logic.voidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidvoidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.EntityFlying
fall, isOnLadder, moveEntityWithHeading, updateFallStateMethods inherited from class net.minecraft.src.EntityLiving
addRandomArmor, allowLeashing, attackEntityAsMob, canAttackClass, canBeSteered, canDespawn, canEntityCenterOfMassBeSeen, canPickUpLoot, clearLeashed, despawnEntity, doesEntityApplyToSpawnCap, dropEquipment, eatGrassBonus, enchantEquipment, entityLivingAddRandomArmor, entityLivingDropFewItems, entityLivingOnLivingUpdate, entityLivingOnSpawnWithEgg, entityLivingSetAttackTarget, entityLivingUpdateAITasks, faceEntity, func_110146_f, func_110159_bB, func_110163_bv, func_130225_q, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmorBTW, getCurrentItemOrArmor, getCustomNameTag, getEntityName, getEntitySenses, getExperiencePoints, getHeldItem, getJumpHelper, getLastActiveItems, getLeashed, getLeashedToEntity, getLookHelper, getMaxSafePointTries, getMoveHelper, getNavigator, getRenderSizeModifier, getVerticalFaceSpeed, hasAttackTarget, hasCustomNameTag, installationIntegrityTest, interact, interactFirst, isAIEnabled, isInsideSpawnAreaAroundChunk, isInsideSpawnAreaAroundOriginalSpawn, isInsideSpawnAreaAroundPlayer, isNoDespawnRequired, meleeAttack, modSpecificOnLivingUpdate, onClimbWhileSwimming, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onLivingUpdate, onSpawnWithEgg, outOfUpdateRangeUpdate, playLivingSound, preInitCreature, setAIMoveSpeed, setAlwaysRenderNameTag, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setCustomNameTag, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setPersistent, spawnerInitCreature, spawnExplosionParticle, updateAITasksMethods inherited from class net.minecraft.src.EntityLivingBase
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, canBeCollidedWith, canBePushed, canBreatheUnderwater, canJump, canJumpMidWater, canSwim, checkForHeadDrop, checkForRareDrop, clearActivePotions, collideWithEntity, collideWithNearbyEntities, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, dropHead, dropRareDrop, entityLivingBaseFall, entityLivingOnDeath, func_110142_aN, func_142015_aE, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAmbientLootingModifier, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getDefaultSlipperinessOnGround, getEntityAttribute, getEyeHeight, getHealth, getHealthAndExhaustionModifier, getItemIcon, getLadderVerticalMovementModifier, getLandMovementModifier, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getMeleeAttackStrength, getPosition, getRNG, getRotationYawHead, getSlipperinessRelativeToBlock, getSoundPitch, getSpeedModifier, getSwimmingHorizontalModifier, getSwingProgress, getTeam, getTotalArmorValue, handleHealthUpdate, heal, isChild, isClientWorld, isEntityAlive, isEntityUndead, isMovementBlocked, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, isWeighted, isWeightedByHeadCrab, jump, kill, knockBack, knockbackMagnitude, mouseOverCustomRayTrace, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onNewPotionEffect, performHurtAnimation, rayTrace, recoverAirSupply, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, updateAITick, updateArmSwingProgress, updatePotionEffects, updateRiddenMethods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, addVelocity, appliesConstantForceWhenRidingBoat, applyEntityCollision, canAttackWithItem, canCollideWithEntity, canEntityTriggerTripwire, canRenderOnFire, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getAnimalKickMovementMultiplier, getBlockExplosionResistance, getBoundingBox, getBrightness, getBrightnessForRender, getCanBeHeadCrabbed, getCollisionBorderSize, getCollisionBox, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getFlag, getHeadCrabSharedAttackTarget, getMaxInPortalTime, getMountedYOffset, getParts, getPortalCooldown, getShadowSize, getTeleportDirection, getTranslatedEntityName, getUniqueID, getVisualBoundingBox, getXZDistanceSqToEntity, getYOffset, handleLavaMovement, handleWaterMovement, hasComponent, hashCode, hasHeadCrabbedSquid, hitByEntity, initComponents, isAffectedByMovementModifiers, isBeingRainedOn, isBurning, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInsideOpaqueBlock, isEntityInsideSuffocatingBlock, isEntityInsideSuffocatingBlock, isEntityInvulnerable, isImmuneToFire, isImmuneToHeadCrabDamage, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isItemEntity, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSecondaryTargetForSquid, isSneaking, isSprinting, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isValidZombieSecondaryTarget, isWet, mountEntity, mountEntityRemote, moveEntity, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setDead, setEating, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setVelocity, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
courseChangeCooldown
public int courseChangeCooldown -
waypointX
public double waypointX -
waypointY
public double waypointY -
waypointZ
public double waypointZ -
prevAttackCounter
public int prevAttackCounter -
attackCounter
public int attackCounter
-
-
Constructor Details
-
EntityGhast
-
-
Method Details
-
func_110182_bF
public boolean func_110182_bF() -
attackEntityFrom
Called when the entity is attacked.- Overrides:
attackEntityFromin classEntityLivingBase
-
entityInit
protected void entityInit()- Overrides:
entityInitin classEntityLiving
-
applyEntityAttributes
protected void applyEntityAttributes()- Overrides:
applyEntityAttributesin classEntityLiving
-
getLivingSound
Returns the sound this mob makes while it's alive.- Overrides:
getLivingSoundin classEntityLiving
-
getHurtSound
Returns the sound this mob makes when it is hurt.- Overrides:
getHurtSoundin classEntityLivingBase
-
getDeathSound
Returns the sound this mob makes on death.- Overrides:
getDeathSoundin classEntityLivingBase
-
getMaxSpawnedInChunk
public int getMaxSpawnedInChunk()Will return how many at most can spawn in a chunk at once.- Overrides:
getMaxSpawnedInChunkin classEntityLiving
-
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityLiving
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityLiving
-
onUpdate
public void onUpdate()Description copied from class:EntityLivingCalled to update the entity's position/logic.- Overrides:
onUpdatein classEntityLiving
-
updateEntityActionState
protected void updateEntityActionState()- Overrides:
updateEntityActionStatein classEntityLiving
-
minDistFromPlayerForDespawn
protected double minDistFromPlayerForDespawn()- Overrides:
minDistFromPlayerForDespawnin classEntityLiving
-
checkForScrollDrop
public void checkForScrollDrop()- Overrides:
checkForScrollDropin classEntityLivingBase
-
getTalkInterval
public int getTalkInterval()Description copied from class:EntityLivingGet number of ticks, at least during which the living entity will be silent.- Overrides:
getTalkIntervalin classEntityLiving
-
canEntityBeSeen
Description copied from class:EntityLivingBasereturns true if the entity provided in the argument can be seen. (Raytrace)- Overrides:
canEntityBeSeenin classEntityLivingBase
-
doesEntityApplyToSquidPossessionCap
public boolean doesEntityApplyToSquidPossessionCap()- Overrides:
doesEntityApplyToSquidPossessionCapin classEntity
-
getDropItemId
protected int getDropItemId()Description copied from class:EntityLivingReturns the item ID for the item the mob drops on death.- Overrides:
getDropItemIdin classEntityLiving
-
dropFewItems
protected void dropFewItems(boolean bKilledByPlayer, int iFortuneModifier) Description copied from class:EntityLivingDrop 0-2 items of this living's type. @param par1 - Whether this entity has recently been hit by a player. @param par2 - Level of Looting used to kill this mob.- Overrides:
dropFewItemsin classEntityLiving
-
getSoundVolume
protected float getSoundVolume()Description copied from class:EntityLivingBaseReturns the volume for the sounds this mob makes.- Overrides:
getSoundVolumein classEntityLivingBase
-
getCanSpawnHere
public boolean getCanSpawnHere()Description copied from class:EntityLivingChecks if the entity's current position is a valid location to spawn this entity.- Overrides:
getCanSpawnHerein classEntityLiving
-
attractsLightning
public boolean attractsLightning()- Overrides:
attractsLightningin classEntityLiving
-
getCanSpawnHereNoPlayerDistanceRestrictions
public boolean getCanSpawnHereNoPlayerDistanceRestrictions()
-