Package net.minecraft.src
Class EntityZombie
- Direct Known Subclasses:
EntityPigZombie
-
Field Summary
FieldsFields inherited from class net.minecraft.src.EntityCreature
entityToAttack, field_110179_h, field_110181_i, fleeingTick, hasAttacked, homeDimension, maximumHomeDistance, pathToEntity, possessionTimerFields 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 voidMakes entity wear random armor based on difficultyprotected voidprotected voidattackEntity(Entity attackedEntity, float fDistanceToTarget) Basic mob attack.booleanattackEntityAsMob(Entity attackedEntity) booleanattackEntityFrom(DamageSource par1DamageSource, float par2) Called when the entity is attacked.booleanprotected booleanDetermines if an entity can be despawned, used on idle far away entitiesbooleancanSoulAffectEntity(UrnEntity soulEntity) voidvoidprotected voidprotected voiddropHead()protected voidbooleangetCanBeHeadCrabbed(boolean bSquidInWater) Get this Entity's EnumCreatureAttributeprotected 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.doubleReturns the Y offset from the entity's position for any entity riding this one.protected floatGets the pitch of living sounds in living entities.floatintReturns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValuevoidhandleHealthUpdate(byte var1) booleaninteract(EntityPlayer player) Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.protected booleanReturns true if the newer Entity AI code should be runbooleanisChild()If Animal, checks if the age timer is negativebooleanReturns whether this zombie is in the process of converting to a villagerbooleanbooleanReturn whether this zombie is a villager.protected booleanprotected voidvoidvoidonKillEntity(EntityLivingBase entityKilled) This method gets called when the entity kills another one.voidCalled frequently so the entity can update its state every tick as required.voidonUpdate()Called to update the entity's position/logic.protected voidplayStepSound(int par1, int par2, int par3, int par4) Plays step sound at given x, y, z for the entityvoidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetChild(boolean par1) Set whether this zombie is a child.voidsetVillager(boolean par1) Set whether this zombie is a villager.voidprotected voidstartConversion(int par1) Starts converting this zombie into a villager.voidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.EntityMob
canSpawnOnBlock, canSpawnOnBlockBelow, checkForCatchFireInSun, entityMobAttackEntity, entityMobAttackEntityFrom, entityMobOnLivingUpdate, findPlayerToAttack, getBlockPathWeight, getCanSpawnHere, getMeleeAttackStrength, isValidLightLevelMethods inherited from class net.minecraft.src.EntityCreature
attemptToPossessCreaturesAroundBlock, attemptToPossessNearbyCreature, attemptToPossessNearbyCreatureOnDeath, detachHome, entityCreatureEntityInit, func_110159_bB, func_110173_bK, func_110174_bM, func_110176_b, func_142017_o, getCanCreatureBePossessedFromDistance, getCanCreatureTypeBePossessed, getEntityToAttack, getHomePosition, getInitialPossessionChance, getPossessionLevel, getTimeToFullPossession, handlePossession, hasHome, hasPath, initiatePossession, isFullyPossessed, isMovementCeased, isPossessed, onDeath, onFullPossession, onInitialPossession, playFullPossessionSound, setHomeArea, setHomeArea, setPathToEntity, setPossessionLevel, setTarget, shouldContinueAttacking, transmitAttackTargetToClients, updateEntityActionState, updateWanderPathMethods inherited from class net.minecraft.src.EntityLiving
allowLeashing, attractsLightning, canAttackClass, canBeSteered, canEntityCenterOfMassBeSeen, canPickUpLoot, clearLeashed, despawnEntity, doesEntityApplyToSpawnCap, dropEquipment, dropFewItems, eatGrassBonus, enchantEquipment, entityLivingAddRandomArmor, entityLivingDropFewItems, entityLivingOnLivingUpdate, entityLivingOnSpawnWithEgg, entityLivingSetAttackTarget, entityLivingUpdateAITasks, faceEntity, func_110146_f, func_110163_bv, func_130225_q, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmorBTW, getCurrentItemOrArmor, getCustomNameTag, getEntityName, getEntitySenses, getExperiencePoints, getHeldItem, getJumpHelper, getLastActiveItems, getLeashed, getLeashedToEntity, getLookHelper, getMaxSafePointTries, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getRenderSizeModifier, getTalkInterval, getVerticalFaceSpeed, hasAttackTarget, hasCustomNameTag, installationIntegrityTest, interactFirst, isInsideSpawnAreaAroundChunk, isInsideSpawnAreaAroundOriginalSpawn, isInsideSpawnAreaAroundPlayer, isNoDespawnRequired, meleeAttack, minDistFromPlayerForDespawn, onClimbWhileSwimming, onEntityUpdate, onFlungBySquidTentacle, outOfUpdateRangeUpdate, playLivingSound, preInitCreature, setAIMoveSpeed, setAlwaysRenderNameTag, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setCustomNameTag, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setPersistent, spawnExplosionParticle, updateAITasksMethods inherited from class net.minecraft.src.EntityLivingBase
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, canJump, canJumpMidWater, canSwim, checkForHeadDrop, checkForRareDrop, clearActivePotions, collideWithEntity, collideWithNearbyEntities, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, dropRareDrop, entityLivingBaseFall, entityLivingOnDeath, fall, func_110142_aN, func_142015_aE, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAmbientLootingModifier, getArrowCountInEntity, getAttributeMap, getDefaultSlipperinessOnGround, getEntityAttribute, getEyeHeight, getHealth, getHealthAndExhaustionModifier, getItemIcon, getLadderVerticalMovementModifier, getLandMovementModifier, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getPosition, getRNG, getRotationYawHead, getSlipperinessRelativeToBlock, getSoundVolume, getSwimmingHorizontalModifier, getSwingProgress, getTeam, heal, isClientWorld, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, isWeighted, jump, kill, knockBack, knockbackMagnitude, mouseOverCustomRayTrace, moveEntityWithHeading, onChangedPotionEffect, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onNewPotionEffect, performHurtAnimation, rayTrace, recoverAirSupply, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffects, updateRiddenMethods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, addVelocity, appliesConstantForceWhenRidingBoat, applyEntityCollision, canAttackWithItem, canCollideWithEntity, canEntityTriggerTripwire, canRenderOnFire, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityApplyToSquidPossessionCap, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getAnimalKickMovementMultiplier, getBlockExplosionResistance, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getFlag, getMaxInPortalTime, 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, 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, onPossessedRidingEntityDeath, onStruckByLightning, playSound, 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
-
villagerClass
public int villagerClass
-
-
Constructor Details
-
EntityZombie
-
-
Method Details
-
applyEntityAttributes
protected void applyEntityAttributes()- Overrides:
applyEntityAttributesin classEntityMob
-
entityInit
protected void entityInit()- Overrides:
entityInitin classEntityCreature
-
getTotalArmorValue
public int getTotalArmorValue()Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue- Overrides:
getTotalArmorValuein classEntityLivingBase
-
isAIEnabled
protected boolean isAIEnabled()Returns true if the newer Entity AI code should be run- Overrides:
isAIEnabledin classEntityLiving
-
isChild
public boolean isChild()If Animal, checks if the age timer is negative- Overrides:
isChildin classEntityLivingBase
-
setChild
public void setChild(boolean par1) Set whether this zombie is a child. -
isVillager
public boolean isVillager()Return whether this zombie is a villager. -
setVillager
public void setVillager(boolean par1) Set whether this zombie is a villager. -
onUpdate
public void onUpdate()Called to update the entity's position/logic. -
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
-
playStepSound
protected void playStepSound(int par1, int par2, int par3, int par4) Plays step sound at given x, y, z for the entity- Overrides:
playStepSoundin classEntity
-
getDropItemId
protected int getDropItemId()Returns the item ID for the item the mob drops on death.- Overrides:
getDropItemIdin classEntityLiving
-
getCreatureAttribute
Get this Entity's EnumCreatureAttribute- Overrides:
getCreatureAttributein classEntityLivingBase
-
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityCreature
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityCreature
-
startConversion
protected void startConversion(int par1) Starts converting this zombie into a villager. The zombie converts into a villager after the specified time in ticks. -
canDespawn
protected boolean canDespawn()Determines if an entity can be despawned, used on idle far away entities- Overrides:
canDespawnin classEntityLiving
-
isConverting
public boolean isConverting()Returns whether this zombie is in the process of converting to a villager -
getSpeedModifier
public float getSpeedModifier()- Overrides:
getSpeedModifierin classEntityLivingBase
-
onLivingUpdate
public void onLivingUpdate()Description copied from class:EntityMobCalled frequently so the entity can update its state every tick as required. For example, zombies and skeletons use this to react to sunlight and start to burn.- Overrides:
onLivingUpdatein classEntityMob
-
attackEntityAsMob
- Overrides:
attackEntityAsMobin classEntityLiving
-
addRandomArmor
protected void addRandomArmor()Description copied from class:EntityLivingMakes entity wear random armor based on difficulty- Overrides:
addRandomArmorin classEntityLiving
-
onKillEntity
Description copied from class:EntityThis method gets called when the entity kills another one.- Overrides:
onKillEntityin classEntity
-
onSpawnWithEgg
- Overrides:
onSpawnWithEggin classEntityLiving
-
interact
Description copied from class:EntityLivingCalled when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.- Overrides:
interactin classEntityLiving
-
convertToVillager
protected void convertToVillager() -
modSpecificOnLivingUpdate
protected void modSpecificOnLivingUpdate()- Overrides:
modSpecificOnLivingUpdatein classEntityCreature
-
checkLostFromHome
public void checkLostFromHome() -
checkForScrollDrop
public void checkForScrollDrop()- Overrides:
checkForScrollDropin classEntityLivingBase
-
attackEntity
Description copied from class:EntityMobBasic mob attack. Default to touch of death in EntityCreature. Overridden by each mob to define their attack.- Overrides:
attackEntityin classEntityMob
-
attackEntityFrom
Description copied from class:EntityMobCalled when the entity is attacked.- Overrides:
attackEntityFromin classEntityMob
-
dropHead
protected void dropHead()- Overrides:
dropHeadin classEntityLivingBase
-
spawnerInitCreature
public void spawnerInitCreature()- Overrides:
spawnerInitCreaturein classEntityLiving
-
getSoundPitch
protected float getSoundPitch()Description copied from class:EntityLivingBaseGets the pitch of living sounds in living entities.- Overrides:
getSoundPitchin classEntityLivingBase
-
getCanBeHeadCrabbed
public boolean getCanBeHeadCrabbed(boolean bSquidInWater) - Overrides:
getCanBeHeadCrabbedin classEntity
-
onHeadCrabbedBySquid
- Overrides:
onHeadCrabbedBySquidin classEntityLiving
-
getMountedYOffset
public double getMountedYOffset()Description copied from class:EntityReturns the Y offset from the entity's position for any entity riding this one.- Overrides:
getMountedYOffsetin classEntity
-
isWeightedByHeadCrab
protected boolean isWeightedByHeadCrab()- Overrides:
isWeightedByHeadCrabin classEntityLivingBase
-
isImmuneToHeadCrabDamage
public boolean isImmuneToHeadCrabDamage()- Overrides:
isImmuneToHeadCrabDamagein classEntity
-
attemptToStartCure
public boolean attemptToStartCure() -
canSoulAffectEntity
- Overrides:
canSoulAffectEntityin classEntityCreature
-
handleHealthUpdate
@Environment(CLIENT) public void handleHealthUpdate(byte var1) - Overrides:
handleHealthUpdatein classEntityLivingBase
-