public class EntityZombie extends EntityMob
EntityLiving.SpawnPlacementType| Modifier and Type | Field and Description |
|---|---|
protected static IAttribute |
reinforcementChance
The attribute which determines the chance that this mob will spawn reinforcements
|
FLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUIDequipmentDropChances, experienceValue, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasksarrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, field_70741_aB, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressIntaddedToChunk, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_181016_an, field_181017_ao, field_181018_ap, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObjmobSelector, VISIBLE_MOB_SELECTOR| Constructor and Description |
|---|
EntityZombie(World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRandomDrop()
Causes this Entity to drop a random item.
|
protected void |
applyEntityAI() |
protected void |
applyEntityAttributes() |
boolean |
attackEntityAsMob(Entity entityIn) |
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
protected boolean |
canDespawn()
Determines if an entity can be despawned, used on idle far away entities
|
protected void |
convertToVillager()
Convert this zombie into a villager.
|
protected void |
entityInit() |
protected boolean |
func_175448_a(ItemStack stack) |
protected int |
getConversionTimeBoost()
Return the amount of time decremented from conversionTime every tick.
|
EnumCreatureAttribute |
getCreatureAttribute()
Get this Entity's EnumCreatureAttribute
|
protected java.lang.String |
getDeathSound()
Returns the sound this mob makes on death.
|
protected Item |
getDropItem() |
protected int |
getExperiencePoints(EntityPlayer player)
Get the experience points the entity currently has.
|
float |
getEyeHeight() |
protected java.lang.String |
getHurtSound()
Returns the sound this mob makes when it is hurt.
|
protected java.lang.String |
getLivingSound()
Returns the sound this mob makes while it's alive.
|
int |
getTotalArmorValue()
Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue
|
double |
getYOffset()
Returns the Y Offset of this entity.
|
void |
handleStatusUpdate(byte id) |
boolean |
interact(EntityPlayer player)
Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.
|
boolean |
isBreakDoorsTaskSet() |
boolean |
isChild()
If Animal, checks if the age timer is negative
|
boolean |
isConverting()
Returns whether this zombie is in the process of converting to a villager
|
boolean |
isVillager()
Return whether this zombie is a villager.
|
protected void |
multiplySize(float size)
Multiplies the height and width by the provided float.
|
void |
onDeath(DamageSource cause)
Called when the mob's health reaches 0.
|
IEntityLivingData |
onInitialSpawn(DifficultyInstance difficulty,
IEntityLivingData livingdata)
Called only once on an entity when first time spawned, via egg, mob spawner, natural spawning etc, but not called
when entity is reloaded from nbt.
|
void |
onKillEntity(EntityLivingBase entityLivingIn)
This method gets called when the entity kills another one.
|
void |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required.
|
void |
onUpdate()
Called to update the entity's position/logic.
|
protected void |
playStepSound(BlockPos pos,
Block blockIn) |
void |
readEntityFromNBT(NBTTagCompound tagCompund)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setBreakDoorsAItask(boolean par1)
Sets or removes EntityAIBreakDoor task
|
void |
setChild(boolean childZombie)
Set whether this zombie is a child.
|
void |
setChildSize(boolean isChild)
sets the size of the entity to be half of its current size if true.
|
protected void |
setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
Gives armor or weapon for entity based on given DifficultyInstance
|
protected void |
setSize(float width,
float height)
Sets the width and height of the entity.
|
void |
setVillager(boolean villager)
Set whether this zombie is a villager.
|
protected void |
startConversion(int ticks)
Starts converting this zombie into a villager.
|
void |
writeEntityToNBT(NBTTagCompound tagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
canDropLoot, getBlockPathWeight, getCanSpawnHere, getFallSoundString, getSplashSound, getSwimSound, isValidLightLeveldetachHome, func_142017_o, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, setHomePosAndDistance, updateLeashedStateallowLeashing, canAttackClass, canBeSteered, canPickUpLoot, clearLeashed, despawnEntity, dropEquipment, dropFewItems, eatGrassBonus, enablePersistence, faceEntity, func_110146_f, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmor, getEntitySenses, getEquipmentInSlot, getHeldItem, getInventory, getJumpHelper, getLeashed, getLeashedToEntity, getLookHelper, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getNewNavigator, getRenderSizeModifier, getTalkInterval, getVerticalFaceSpeed, interactFirst, isAIDisabled, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, playLivingSound, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setEnchantmentBasedOnDifficulty, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setNoAI, spawnExplosionParticle, updateAITasks, updateEntityActionState, updateEquipmentIfNeededaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, fall, func_181013_g, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttributeMap, getCombatTracker, getEntityAttribute, getHealth, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTeam, handleJumpLava, heal, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, markPotionsDirty, mountEntity, moveEntityWithHeading, onChangedPotionEffect, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onKillCommand, onNewPotionEffect, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRiddenaddChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canRiderInteract, canTriggerWalking, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_174817_o, func_181012_aH, func_181014_aG, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCapability, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getExtendedProperties, getFlag, getHorizontalFacing, getHoverEvent, getMaxInPortalTime, getMountedYOffset, getName, getNBTTagCompound, getParts, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getUniqueID, getVectorForRotation, handleWaterMovement, hasCapability, hasCustomName, hashCode, hitByEntity, interactAt, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onStruckByLightning, playSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerExtendedProperties, resetEntityId, resetHeight, sendCommandFeedback, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptionalprotected static final IAttribute reinforcementChance
public EntityZombie(World worldIn)
protected void applyEntityAI()
protected void applyEntityAttributes()
applyEntityAttributes in class EntityMobprotected void entityInit()
entityInit in class EntityLivingpublic int getTotalArmorValue()
getTotalArmorValue in class EntityLivingBasepublic boolean isBreakDoorsTaskSet()
public void setBreakDoorsAItask(boolean par1)
public boolean isChild()
isChild in class EntityLivingBaseprotected int getExperiencePoints(EntityPlayer player)
getExperiencePoints in class EntityLivingpublic void setChild(boolean childZombie)
public boolean isVillager()
public void setVillager(boolean villager)
public void onLivingUpdate()
onLivingUpdate in class EntityMobpublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class EntityMobpublic void onUpdate()
public boolean attackEntityAsMob(Entity entityIn)
attackEntityAsMob in class EntityMobprotected java.lang.String getLivingSound()
getLivingSound in class EntityLivingprotected java.lang.String getHurtSound()
getHurtSound in class EntityMobprotected java.lang.String getDeathSound()
getDeathSound in class EntityMobprotected void playStepSound(BlockPos pos, Block blockIn)
playStepSound in class Entityprotected Item getDropItem()
getDropItem in class EntityLivingpublic EnumCreatureAttribute getCreatureAttribute()
getCreatureAttribute in class EntityLivingBaseprotected void addRandomDrop()
addRandomDrop in class EntityLivingBaseprotected void setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
setEquipmentBasedOnDifficulty in class EntityLivingpublic void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT in class EntityLivingpublic void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT in class EntityLivingpublic void onKillEntity(EntityLivingBase entityLivingIn)
onKillEntity in class Entitypublic float getEyeHeight()
getEyeHeight in class Entityprotected boolean func_175448_a(ItemStack stack)
func_175448_a in class EntityLivingpublic IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, IEntityLivingData livingdata)
onInitialSpawn in class EntityLivingpublic boolean interact(EntityPlayer player)
interact in class EntityLivingprotected void startConversion(int ticks)
public void handleStatusUpdate(byte id)
handleStatusUpdate in class EntityLivingprotected boolean canDespawn()
canDespawn in class EntityLivingpublic boolean isConverting()
protected void convertToVillager()
protected int getConversionTimeBoost()
public void setChildSize(boolean isChild)
protected final void setSize(float width,
float height)
protected final void multiplySize(float size)
public double getYOffset()
getYOffset in class Entitypublic void onDeath(DamageSource cause)
onDeath in class EntityLivingBase