Package net.minecraft.entity.passive
Class EntityWolf
- java.lang.Object
-
- All Implemented Interfaces:
IEntityOwnable,IAnimals,org.teavm.jso.JSObject
public class EntityWolf extends EntityTameable
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.EntityLiving
EntityLiving.SpawnPlacementType
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
-
Fields inherited from class net.minecraft.entity.passive.EntityAnimal
spawnableBlock
-
Fields inherited from class net.minecraft.entity.EntityAgeable
field_175502_b, field_175503_c, growingAge
-
Fields inherited from class net.minecraft.entity.EntityCreature
FLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUID
-
Fields inherited from class net.minecraft.entity.EntityLiving
equipmentDropChances, experienceValue, livingSoundTime
-
Fields inherited from class net.minecraft.entity.EntityLivingBase
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
-
Fields inherited from class net.minecraft.entity.Entity
addedToChunk, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, 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 Summary
Constructors Constructor Description EntityWolf(World worldIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowLeashing()protected voidapplyEntityAttributes()booleanattackEntityAsMob(Entity entity)booleanattackEntityFrom(DamageSource damagesource, float f)+ Called when the entity is attacked.protected booleancanDespawn()+ Determines if an entity can be despawned, used on idle far away entitiesbooleancanMateWith(EntityAnimal entityanimal)+ Returns true if the mob is currently able to mate with the specified mob.EntityWolfcreateChild(EntityAgeable var1)protected voidentityInit()EnumDyeColorgetCollarColor()protected java.lang.StringgetDeathSound()+ Returns the sound this mob makes on death.protected ItemgetDropItem()floatgetEyeHeight()protected java.lang.StringgetHurtSound()+ Returns the sound this mob makes when it is hurt.floatgetInterestedAngle(float parFloat1)protected java.lang.StringgetLivingSound()+ Returns the sound this mob makes while it's alive.intgetMaxSpawnedInChunk()+ Will return how many at most can spawn in a chunk at once.floatgetShadingWhileWet(float parFloat1)+ Used when calculating the amount of shading to apply while the wolf is wet.floatgetShakeAngle(float parFloat1, float parFloat2)protected floatgetSoundVolume()+ Returns the volume for the sounds this mob makes.floatgetTailRotation()intgetVerticalFaceSpeed()+ The speed it takes to move the entityliving's rotationPitch through the faceEntity method.voidhandleStatusUpdate(byte b0)booleaninteract(EntityPlayer entityplayer)+ Called when a player interacts with a mob.booleanisAngry()+ Determines whether this wolf is angry or not.booleanisBegging()booleanisBreedingItem(ItemStack itemstack)+ 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)booleanisWolfWet()+ True if the wolf is wetvoidonUpdate()+ Called to update the entity's position/logic.protected voidplayStepSound(BlockPos var1, Block var2)voidreadEntityFromNBT(NBTTagCompound nbttagcompound)+ (abstract) Protected helper method to read subclass entity data from NBT.voidsetAngry(boolean angry)+ Sets whether this wolf is angry or not.voidsetAttackTarget(EntityLivingBase entitylivingbase)+ Sets the active target the Task system uses for trackingvoidsetBegging(boolean beg)voidsetCollarColor(EnumDyeColor collarcolor)voidsetTamed(boolean flag)booleanshouldAttackEntity(EntityLivingBase entitylivingbase, EntityLivingBase entitylivingbase1)protected voidupdateAITasks()voidwriteEntityToNBT(NBTTagCompound nbttagcompound)+ (abstract) Protected helper method to write subclass entity data to NBT.-
Methods inherited from class net.minecraft.entity.passive.EntityTameable
getOwner, getOwnerId, getTeam, isOnSameTeam, isOwner, isSitting, isTamed, playTameEffect, setOwnerId, setSitting, setupTamedAI
-
Methods inherited from class net.minecraft.entity.passive.EntityAnimal
consumeItemFromStack, getBlockPathWeight, getCanSpawnHere, getExperiencePoints, getPlayerInLove, getTalkInterval, isInLove, onLivingUpdate, resetInLove, setInLove
-
Methods inherited from class net.minecraft.entity.EntityAgeable
addGrowth, func_175501_a, getGrowingAge, isChild, onGrowingAdult, setGrowingAge, setScale, setScaleForAge, setSize
-
Methods inherited from class net.minecraft.entity.EntityCreature
detachHome, func_142017_o, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, setHomePosAndDistance, updateLeashedState
-
Methods inherited from class net.minecraft.entity.EntityLiving
canAttackClass, canBeSteered, canPickUpLoot, clearLeashed, despawnEntity, dropEquipment, dropFewItems, eatGrassBonus, enablePersistence, faceEntity, func_110146_f, func_175448_a, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmor, getEquipmentInSlot, getHeldItem, getInventory, getLeashed, getLeashedToEntity, getMaxFallHeight, getRenderSizeModifier, interactFirst, isAIDisabled, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, onInitialSpawn, playLivingSound, replaceItemInInventory, setAIMoveSpeed, setCanPickUpLoot, setCurrentItemOrArmor, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setNoAI, spawnExplosionParticle, updateEntityActionState, updateEquipmentIfNeeded
-
Methods inherited from class net.minecraft.entity.EntityLivingBase
addPotionEffect, addRandomDrop, applyArmorCalculations, applyPotionDamageCalculations, canBeCollidedWith, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, 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, loadPluginData, makePluginData, markPotionsDirty, mountEntity, moveEntityWithHeading, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onKillCommand, onNewPotionEffect, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRidden
-
Methods inherited from class net.minecraft.entity.Entity
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canTriggerWalking, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fromNBT, func_181012_aH, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getFlag, getHorizontalFacing, getHoverEvent, getMaxInPortalTime, getMountedYOffset, getName, getNBTTagCompound, getParts, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getSplashSound, getSwimSound, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hitByEntity, interactAt, isBurning, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onKillEntity, onStruckByLightning, playSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSneaking, setVelocity, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toNBT, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Constructor Detail
-
EntityWolf
public EntityWolf(World worldIn)
-
-
Method Detail
-
applyEntityAttributes
protected void applyEntityAttributes()
- Overrides:
applyEntityAttributesin classEntityLiving
-
setAttackTarget
public void setAttackTarget(EntityLivingBase entitylivingbase)
+ Sets the active target the Task system uses for tracking- Overrides:
setAttackTargetin classEntityLiving
-
updateAITasks
protected void updateAITasks()
- Overrides:
updateAITasksin classEntityAnimal
-
entityInit
protected void entityInit()
- Overrides:
entityInitin classEntityTameable
-
playStepSound
protected void playStepSound(BlockPos var1, Block var2)
- Overrides:
playStepSoundin classEntity
-
writeEntityToNBT
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityTameable
-
readEntityFromNBT
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityTameable
-
getLivingSound
protected java.lang.String getLivingSound()
+ Returns the sound this mob makes while it's alive.- Overrides:
getLivingSoundin classEntityLiving
-
getHurtSound
protected java.lang.String getHurtSound()
+ Returns the sound this mob makes when it is hurt.- Overrides:
getHurtSoundin classEntityLivingBase
-
getDeathSound
protected java.lang.String getDeathSound()
+ Returns the sound this mob makes on death.- Overrides:
getDeathSoundin classEntityLivingBase
-
getSoundVolume
protected float getSoundVolume()
+ Returns the volume for the sounds this mob makes.- Overrides:
getSoundVolumein classEntityLivingBase
-
getDropItem
protected Item getDropItem()
- Overrides:
getDropItemin classEntityLiving
-
onUpdate
public void onUpdate()
+ Called to update the entity's position/logic.- Overrides:
onUpdatein classEntityLivingBase
-
isWolfWet
public boolean isWolfWet()
+ True if the wolf is wet
-
getShadingWhileWet
public float getShadingWhileWet(float parFloat1)
+ Used when calculating the amount of shading to apply while the wolf is wet.
-
getShakeAngle
public float getShakeAngle(float parFloat1, float parFloat2)
-
getInterestedAngle
public float getInterestedAngle(float parFloat1)
-
getEyeHeight
public float getEyeHeight()
- Overrides:
getEyeHeightin classEntity
-
getVerticalFaceSpeed
public int getVerticalFaceSpeed()
+ The speed it takes to move the entityliving's rotationPitch through the faceEntity method. This is only currently use in wolves.- Overrides:
getVerticalFaceSpeedin classEntityLiving
-
attackEntityFrom
public boolean attackEntityFrom(DamageSource damagesource, float f)
+ Called when the entity is attacked.- Overrides:
attackEntityFromin classEntityAnimal
-
attackEntityAsMob
public boolean attackEntityAsMob(Entity entity)
- Overrides:
attackEntityAsMobin classEntityLivingBase
-
setTamed
public void setTamed(boolean flag)
- Overrides:
setTamedin classEntityTameable
-
interact
public boolean interact(EntityPlayer entityplayer)
+ Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.- Overrides:
interactin classEntityAnimal
-
handleStatusUpdate
public void handleStatusUpdate(byte b0)
- Overrides:
handleStatusUpdatein classEntityTameable
-
getTailRotation
public float getTailRotation()
-
isBreedingItem
public boolean isBreedingItem(ItemStack itemstack)
+ 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)- Overrides:
isBreedingItemin classEntityAnimal
-
getMaxSpawnedInChunk
public int getMaxSpawnedInChunk()
+ Will return how many at most can spawn in a chunk at once.- Overrides:
getMaxSpawnedInChunkin classEntityLiving
-
isAngry
public boolean isAngry()
+ Determines whether this wolf is angry or not.
-
setAngry
public void setAngry(boolean angry)
+ Sets whether this wolf is angry or not.
-
getCollarColor
public EnumDyeColor getCollarColor()
-
setCollarColor
public void setCollarColor(EnumDyeColor collarcolor)
-
createChild
public EntityWolf createChild(EntityAgeable var1)
- Specified by:
createChildin classEntityAgeable
-
setBegging
public void setBegging(boolean beg)
-
canMateWith
public boolean canMateWith(EntityAnimal entityanimal)
+ Returns true if the mob is currently able to mate with the specified mob.- Overrides:
canMateWithin classEntityAnimal
-
isBegging
public boolean isBegging()
-
canDespawn
protected boolean canDespawn()
+ Determines if an entity can be despawned, used on idle far away entities- Overrides:
canDespawnin classEntityAnimal
-
shouldAttackEntity
public boolean shouldAttackEntity(EntityLivingBase entitylivingbase, EntityLivingBase entitylivingbase1)
- Overrides:
shouldAttackEntityin classEntityTameable
-
allowLeashing
public boolean allowLeashing()
- Overrides:
allowLeashingin classEntityLiving
-
-