public class EntityZombie extends EntityMob
| Modifier and Type | Class and Description |
|---|---|
class |
EntityZombie.GroupData |
| Modifier and Type | Field and Description |
|---|---|
protected static IAttribute |
SPAWN_REINFORCEMENTS_CHANCE |
experienceValue, inventoryArmorDropChances, inventoryHandsDropChances, jumpHelper, livingSoundTime, lookHelper, moveHelper, navigator, targetTasks, tasksactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, field_208001_bq, field_208002_br, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldMOB_SELECTOR, VISIBLE_MOB_SELECTOR| Constructor and Description |
|---|
EntityZombie(EntityType<?> type,
World p_i48549_2_) |
EntityZombie(World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyAttributeBonuses(float difficulty) |
protected void |
applyEntityAI() |
boolean |
attackEntityAsMob(Entity entityIn) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
protected boolean |
canBreakDoors() |
protected boolean |
canEquipItem(ItemStack stack) |
protected void |
convertInto(EntityZombie p_207305_1_) |
protected void |
func_207301_a(boolean p_207301_1_,
boolean p_207301_2_,
boolean p_207301_3_,
boolean p_207301_4_) |
protected SoundEvent |
getAmbientSound() |
CreatureAttribute |
getCreatureAttribute() |
protected SoundEvent |
getDeathSound() |
protected int |
getExperiencePoints(EntityPlayer player) |
float |
getEyeHeight() |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
protected ResourceLocation |
getLootTable() |
protected ItemStack |
getSkullDrop() |
protected SoundEvent |
getStepSound() |
double |
getYOffset() |
protected void |
initEntityAI() |
boolean |
isArmsRaised() |
boolean |
isBreakDoorsTaskSet() |
boolean |
isChild() |
boolean |
isDrowning() |
void |
livingTick() |
protected void |
multiplySize(float size) |
void |
notifyDataManagerChange(DataParameter<?> key) |
void |
onDeath(DamageSource cause) |
protected void |
onDrowned() |
IEntityLivingData |
onInitialSpawn(DifficultyInstance difficulty,
IEntityLivingData entityLivingData,
NBTTagCompound itemNbt) |
void |
onKillEntity(EntityLivingBase entityLivingIn) |
protected void |
playStepSound(BlockPos pos,
IBlockState blockIn) |
void |
readAdditional(NBTTagCompound compound) |
protected void |
registerAttributes() |
protected void |
registerData() |
void |
setBreakDoorsAItask(boolean enabled) |
void |
setChild(boolean childZombie) |
void |
setChildSize(boolean isChild) |
protected void |
setEquipmentBasedOnDifficulty(DifficultyInstance difficulty) |
protected void |
setSize(float width,
float height) |
void |
setSwingingArms(boolean swingingArms) |
protected boolean |
shouldBurnInDay() |
protected boolean |
shouldDrown() |
void |
tick() |
void |
writeAdditional(NBTTagCompound compound) |
canDropLoot, canSpawn, getBlockPathWeight, getFallSound, getSoundCategory, getSplashSound, getSwimSound, isPreventingPlayerRest, isValidLightLeveldetachHome, followLeashSpeed, getBlockPathWeight, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, onLeashDistance, setHomePosAndDistance, updateLeashedStatebaseTick, canAttackClass, canBeLeashedTo, canBeSteered, canDespawn, canPassengerSteer, canPickUpLoot, checkDespawn, clearLeashed, createBodyHelper, createNavigator, dropEquipment, dropFewItems, dropLoot, eatGrassBonus, enablePersistence, faceEntity, func_204209_c, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropChance, getDropItem, getEntitySenses, getHeldEquipment, getHorizontalFaceSpeed, getItemStackFromSlot, getJumpHelper, getLeashed, getLeashHolder, getLookHelper, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPathPriority, getPrimaryHand, getRenderSizeModifier, getSlotForItemStack, getTalkInterval, getVerticalFaceSpeed, handleFluidJump, handleStatusUpdate, isAIDisabled, isInDaylight, isItemStackInSlot, isLeftHanded, isNoDespawnRequired, isNotColliding, isNotColliding, isServerWorld, playAmbientSound, playHurtSound, processInitialInteract, processInteract, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setItemStackToSlot, setLeashHolder, setLeftHanded, setMoveForward, setMoveStrafing, setMoveVertical, setNoAI, setPathPriority, shouldExchangeEquipment, spawnExplosionParticle, startRiding, updateAITasks, updateDistance, updateEntityActionState, updateEquipmentIfNeededaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attemptTeleport, blockUsingShield, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canEntityBeSeen, collideWithEntity, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, determineNextAir, dismountEntity, fall, frostWalk, func_195061_cb, func_203010_cG, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributeMap, getCapability, getCombatTracker, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, getYaw, hasItemInSlot, heal, isActiveItemStackBlocking, isAlive, isElytraFlying, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPlayerSleeping, isPotionActive, isPotionApplicable, isSpinAttacking, jump, knockBack, lerp, lookAt, markPotionsDirty, markVelocityChanged, moveRelative, onChangedPotionEffect, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, remove, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setArrowCountInEntity, setHeadRotation, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, spinAttack, startSpinAttack, stopActiveHand, stopRiding, swingArm, travel, updateActiveHand, updateArmSwingProgress, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata, updateRidden, updateSpinAttackaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, awardKillScore, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canRenderOnFire, canSwim, canTrample, canTriggerWalking, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, func_212321_a, getAdjustedHorizontalFacing, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyePosition, getFireImmuneTicks, getFlag, getForward, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxInPortalTime, getMirroredYaw, getMountedYOffset, getName, getParts, getPassengers, getPermissionLevel, getPitch, getPitchYaw, getPortalCooldown, getPosition, getPositionVector, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getScoreboardName, getServer, getSubmergedHeight, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, handleFluidAcceleration, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPassenger, isPassenger, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isSwimming, isWet, makeFlySound, move, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onRemovedFromWorld, onStruckByLightning, playFlySound, playSound, playSwimSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, read, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setDropItemsWhenDead, setEntityId, setFire, setFlag, setGlowing, setInvisible, setInvulnerable, setInWeb, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, updatePassenger, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeRiddenInWater, canRiderInteract, deserializeNBT, getEntity, getPickedResult, isCreatureType, serializeNBT, shouldRenderInPass, shouldRiderSitgetCapabilityprotected static final IAttribute SPAWN_REINFORCEMENTS_CHANCE
public EntityZombie(EntityType<?> type, World p_i48549_2_)
public EntityZombie(World worldIn)
protected void initEntityAI()
initEntityAI in class EntityLivingprotected void applyEntityAI()
protected void registerAttributes()
registerAttributes in class EntityMobprotected void registerData()
registerData in class EntityLivingpublic boolean isDrowning()
public void setSwingingArms(boolean swingingArms)
public boolean isArmsRaised()
public boolean isBreakDoorsTaskSet()
public void setBreakDoorsAItask(boolean enabled)
protected boolean canBreakDoors()
public boolean isChild()
isChild in class EntityLivingBaseprotected int getExperiencePoints(EntityPlayer player)
getExperiencePoints in class EntityLivingpublic void setChild(boolean childZombie)
public void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange in class EntityLivingBaseprotected boolean shouldDrown()
public void livingTick()
livingTick in class EntityMobprotected void onDrowned()
protected void convertInto(EntityZombie p_207305_1_)
protected boolean shouldBurnInDay()
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class EntityMobpublic boolean attackEntityAsMob(Entity entityIn)
attackEntityAsMob in class EntityLivingprotected SoundEvent getAmbientSound()
getAmbientSound in class EntityLivingprotected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound in class EntityMobprotected SoundEvent getDeathSound()
getDeathSound in class EntityMobprotected SoundEvent getStepSound()
protected void playStepSound(BlockPos pos, IBlockState blockIn)
playStepSound in class Entitypublic CreatureAttribute getCreatureAttribute()
getCreatureAttribute in class EntityLivingBase@Nullable protected ResourceLocation getLootTable()
getLootTable in class EntityLivingprotected void setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
setEquipmentBasedOnDifficulty in class EntityLivingpublic void writeAdditional(NBTTagCompound compound)
writeAdditional in class EntityLivingpublic void readAdditional(NBTTagCompound compound)
readAdditional in class EntityLivingpublic void onKillEntity(EntityLivingBase entityLivingIn)
onKillEntity in class Entitypublic float getEyeHeight()
getEyeHeight in class Entityprotected boolean canEquipItem(ItemStack stack)
canEquipItem in class EntityLiving@Nullable public IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, @Nullable IEntityLivingData entityLivingData, @Nullable NBTTagCompound itemNbt)
onInitialSpawn in class EntityLivingprotected void func_207301_a(boolean p_207301_1_,
boolean p_207301_2_,
boolean p_207301_3_,
boolean p_207301_4_)
protected void applyAttributeBonuses(float difficulty)
public void setChildSize(boolean isChild)
protected final void multiplySize(float size)
public double getYOffset()
getYOffset in class Entitypublic void onDeath(DamageSource cause)
onDeath in class EntityLivingBaseprotected ItemStack getSkullDrop()