public class EntityWolf extends EntityTameable
EntityLiving.SpawnPlacementType
aiSit
spawnableBlock
field_175502_b, field_175503_c, growingAge
FLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUID
equipmentDropChances, experienceValue, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasks
arrowHitTimer, 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, swingProgressInt
addedToChunk, 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, worldObj
Constructor and Description |
---|
EntityWolf(World worldIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowLeashing() |
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
|
boolean |
canMateWith(EntityAnimal otherAnimal)
Returns true if the mob is currently able to mate with the specified mob.
|
EntityWolf |
createChild(EntityAgeable ageable) |
protected void |
entityInit() |
EnumDyeColor |
getCollarColor() |
protected java.lang.String |
getDeathSound()
Returns the sound this mob makes on death.
|
protected Item |
getDropItem() |
float |
getEyeHeight() |
protected java.lang.String |
getHurtSound()
Returns the sound this mob makes when it is hurt.
|
float |
getInterestedAngle(float p_70917_1_) |
protected java.lang.String |
getLivingSound()
Returns the sound this mob makes while it's alive.
|
int |
getMaxSpawnedInChunk()
Will return how many at most can spawn in a chunk at once.
|
float |
getShadingWhileWet(float p_70915_1_)
Used when calculating the amount of shading to apply while the wolf is wet.
|
float |
getShakeAngle(float p_70923_1_,
float p_70923_2_) |
protected float |
getSoundVolume()
Returns the volume for the sounds this mob makes.
|
float |
getTailRotation() |
int |
getVerticalFaceSpeed()
The speed it takes to move the entityliving's rotationPitch through the faceEntity method.
|
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 |
isAngry()
Determines whether this wolf is angry or not.
|
boolean |
isBegging() |
boolean |
isBreedingItem(ItemStack stack)
Checks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on
the animal type)
|
boolean |
isWolfWet()
True if the wolf is wet
|
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 |
setAngry(boolean angry)
Sets whether this wolf is angry or not.
|
void |
setAttackTarget(EntityLivingBase entitylivingbaseIn)
Sets the active target the Task system uses for tracking
|
void |
setBegging(boolean beg) |
void |
setCollarColor(EnumDyeColor collarcolor) |
void |
setTamed(boolean tamed) |
boolean |
shouldAttackEntity(EntityLivingBase p_142018_1_,
EntityLivingBase p_142018_2_) |
protected void |
updateAITasks() |
void |
writeEntityToNBT(NBTTagCompound tagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
getAISit, getOwner, getOwnerId, getTeam, isOnSameTeam, isOwner, isSitting, isTamed, onDeath, playTameEffect, setOwnerId, setSitting, setupTamedAI
consumeItemFromStack, getBlockPathWeight, getCanSpawnHere, getExperiencePoints, getPlayerInLove, getTalkInterval, isInLove, resetInLove, setInLove
addGrowth, func_175501_a, getGrowingAge, isChild, onGrowingAdult, setGrowingAge, setScale, setScaleForAge, setSize
detachHome, func_142017_o, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, setHomePosAndDistance, updateLeashedState
canAttackClass, canBeSteered, canPickUpLoot, clearLeashed, despawnEntity, dropEquipment, dropFewItems, eatGrassBonus, enablePersistence, faceEntity, func_110146_f, func_175448_a, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmor, getEntitySenses, getEquipmentInSlot, getHeldItem, getInventory, getJumpHelper, getLeashed, getLeashedToEntity, getLookHelper, getMaxFallHeight, getMoveHelper, getNavigator, getNewNavigator, getRenderSizeModifier, interactFirst, isAIDisabled, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, onInitialSpawn, playLivingSound, replaceItemInInventory, setAIMoveSpeed, setCanPickUpLoot, setCurrentItemOrArmor, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setNoAI, spawnExplosionParticle, updateEntityActionState, updateEquipmentIfNeeded
addPotionEffect, addRandomDrop, applyArmorCalculations, applyPotionDamageCalculations, canBeCollidedWith, canBePushed, canBreatheUnderwater, canDropLoot, 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, getCreatureAttribute, getEntityAttribute, getFallSoundString, getHealth, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSwingProgress, getTotalArmorValue, handleJumpLava, heal, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, 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, updateRidden
addChatMessage, 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, getSplashSound, getSwimSound, getUniqueID, getVectorForRotation, getYOffset, 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, onKillEntity, 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, writeToNBTOptional
public EntityWolf(World worldIn)
protected void applyEntityAttributes()
applyEntityAttributes
in class EntityLiving
public void setAttackTarget(EntityLivingBase entitylivingbaseIn)
setAttackTarget
in class EntityLiving
protected void updateAITasks()
updateAITasks
in class EntityAnimal
protected void entityInit()
entityInit
in class EntityTameable
protected void playStepSound(BlockPos pos, Block blockIn)
playStepSound
in class Entity
public void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT
in class EntityTameable
public void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT
in class EntityTameable
protected java.lang.String getLivingSound()
getLivingSound
in class EntityLiving
protected java.lang.String getHurtSound()
getHurtSound
in class EntityLivingBase
protected java.lang.String getDeathSound()
getDeathSound
in class EntityLivingBase
protected float getSoundVolume()
getSoundVolume
in class EntityLivingBase
protected Item getDropItem()
getDropItem
in class EntityLiving
public void onLivingUpdate()
onLivingUpdate
in class EntityAnimal
public void onUpdate()
onUpdate
in class EntityLiving
public boolean isWolfWet()
public float getShadingWhileWet(float p_70915_1_)
public float getShakeAngle(float p_70923_1_, float p_70923_2_)
public float getInterestedAngle(float p_70917_1_)
public float getEyeHeight()
getEyeHeight
in class Entity
public int getVerticalFaceSpeed()
getVerticalFaceSpeed
in class EntityLiving
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityAnimal
public boolean attackEntityAsMob(Entity entityIn)
attackEntityAsMob
in class EntityLivingBase
public void setTamed(boolean tamed)
setTamed
in class EntityTameable
public boolean interact(EntityPlayer player)
interact
in class EntityAnimal
public void handleStatusUpdate(byte id)
handleStatusUpdate
in class EntityTameable
public float getTailRotation()
public boolean isBreedingItem(ItemStack stack)
isBreedingItem
in class EntityAnimal
public int getMaxSpawnedInChunk()
getMaxSpawnedInChunk
in class EntityLiving
public boolean isAngry()
public void setAngry(boolean angry)
public EnumDyeColor getCollarColor()
public void setCollarColor(EnumDyeColor collarcolor)
public EntityWolf createChild(EntityAgeable ageable)
createChild
in class EntityAgeable
public void setBegging(boolean beg)
public boolean canMateWith(EntityAnimal otherAnimal)
canMateWith
in class EntityAnimal
public boolean isBegging()
protected boolean canDespawn()
canDespawn
in class EntityAnimal
public boolean shouldAttackEntity(EntityLivingBase p_142018_1_, EntityLivingBase p_142018_2_)
shouldAttackEntity
in class EntityTameable
public boolean allowLeashing()
allowLeashing
in class EntityLiving