Package api.entity.mob
Class KickingAnimal
- All Implemented Interfaces:
IAnimals
- Direct Known Subclasses:
EntityCow,EntityHorse
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final doublestatic final intstatic final doublestatic final doublestatic final doublestatic final doubleprotected intintintFields inherited from class net.minecraft.src.EntityAnimal
BASE_GRAZE_FOOD_VALUE, breeding, DELAY_BETWEEN_EAT_LOOSE_VARIANCE, eatLooseCooldownCounter, FAMISHED_SPEED_MODIFIER_UUID, famishedSpeedModifier, FULL_HUNGER_COUNT, grazeProgressCounter, healingCountdown, HUNGER_LEVEL_DATA_WATCHER_ID, hungerCountdown, IN_LOVE_DATA_WATCHER_ID, LEVEL_UP_HUNGER_COUNT, m_iDelayBetweenEatLoose, MAX_HEALING_COUNT, STARVING_SPEED_MODIFIER_UUID, starvingSpeedModifier, uncomfortableTick, WEARING_BREEDING_HARNESS_DATA_WATCHER_IDFields 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, ySize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEntityBeSeenForAttackToCenterOfMass(Entity entity, Vec3 attackOrigin) voidvoidCalled frequently so the entity can update its state every tick as required.protected voidMethods inherited from class net.minecraft.src.EntityAnimal
addToHungerCount, attackEntity, attackEntityFrom, attemptToBeHandFedItem, attemptToEatItem, attemptToEatItemForBreeding, attemptToEatLooseItem, attemptToPossessNearbyCreatureOnDeath, breakLeash, canChildGrow, canDespawn, canGrazeMycelium, canGrazeOnBlock, canGrazeOnRoughVegetation, canLoveJuiceRegenerate, canMateWith, checkForIntersectingBreedingHarnesses, checkForLooseFood, checkForScrollDrop, entityAnimalInteract, entityInit, findPlayerToAttack, func_110196_bT, getBlockPathWeight, getCanSpawnHere, getDisruptsEarthOnGraze, getExperiencePoints, getFoodValueMultiplier, getGrazeBlockForPos, getGrazeDuration, getGrazeHeadRotation, getGrazeHeadRotationMagnitudeDivisor, getGrazeHeadRotationRateMultiplier, getGrazeHeadVerticalOffset, getGrazeHungerGain, getHungerLevel, getHungerSpeedModifier, getInLove, getItemFoodValue, getNestSize, getSoundPitch, getTalkInterval, getTicksForChildToGrow, getTicksToRegenerateLoveJuice, getWearingBreedingHarness, giveBirthAtTargetLocation, handleHealthUpdate, initHungerWithVariance, interact, isBreedingItem, isEdibleItem, isFamished, isFullyFed, isHungryEnoughToEatLooseFood, isHungryEnoughToForceMoveToGraze, isHungryEnoughToGraze, isInLove, isReadyToEatBreedingItem, isReadyToEatLooseFood, isReadyToEatLooseItem, isSecondaryTargetForSquid, isStarving, isSubjectToHunger, isTemptingItem, isTooHungryToGrow, isTooHungryToHeal, jump, modSpecificOnLivingUpdate, onBecomeFamished, onBecomeStarving, onDeath, onEatBreedingItem, onFlungBySquidTentacle, onGrazeBlock, onHeadCrabbedBySquid, onNearbyAnimalAttacked, onNearbyFireStartAttempt, onNearbyPlayerBlockAddOrRemove, onNearbyPlayerStartles, onSpawnWithEgg, onStarvingCountExpired, panicNearbyAnimals, playGrazeFX, procreate, readEntityFromNBT, resetHealingCountdown, resetHungerCountdown, resetInLove, resetMatingStateOfBothParents, setHungerLevel, setInLove, setRevengeTarget, setWearingBreedingHarness, shouldNotifyBlockOnGraze, shouldStayInPlaceToGraze, spawnBirthHeartParticles, updateAITick, updateEntityActionState, updateHealing, updateHungerSpeedModifier, updateHungerState, writeEntityToNBTMethods inherited from class net.minecraft.src.EntityAgeable
addGrowth, adjustSizeForAge, createChild, entityAgeableInteract, getGrowingAge, isChild, setGrowingAge, setScale, setScaleForAge, setSizeMethods inherited from class net.minecraft.src.EntityCreature
attemptToPossessCreaturesAroundBlock, attemptToPossessNearbyCreature, canSoulAffectEntity, 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, onFullPossession, onInitialPossession, playFullPossessionSound, setHomeArea, setHomeArea, setPathToEntity, setPossessionLevel, setTarget, shouldContinueAttacking, transmitAttackTargetToClients, updateWanderPathMethods inherited from class net.minecraft.src.EntityLiving
addRandomArmor, allowLeashing, applyEntityAttributes, attackEntityAsMob, 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, getDropItemId, getEntityName, getEntitySenses, getHeldItem, getJumpHelper, getLastActiveItems, getLeashed, getLeashedToEntity, getLivingSound, getLookHelper, getMaxSafePointTries, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getRenderSizeModifier, getVerticalFaceSpeed, hasAttackTarget, hasCustomNameTag, installationIntegrityTest, interactFirst, isAIEnabled, isInsideSpawnAreaAroundChunk, isInsideSpawnAreaAroundOriginalSpawn, isInsideSpawnAreaAroundPlayer, isNoDespawnRequired, meleeAttack, minDistFromPlayerForDespawn, onClimbWhileSwimming, onEntityUpdate, onUpdate, outOfUpdateRangeUpdate, playLivingSound, preInitCreature, setAIMoveSpeed, setAlwaysRenderNameTag, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setCustomNameTag, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setPersistent, spawnerInitCreature, 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, dropHead, dropRareDrop, entityLivingBaseFall, entityLivingOnDeath, fall, func_110142_aN, func_142015_aE, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAmbientLootingModifier, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getDeathSound, getDefaultSlipperinessOnGround, getEntityAttribute, getEyeHeight, getHealth, getHealthAndExhaustionModifier, getHurtSound, getItemIcon, getLadderVerticalMovementModifier, getLandMovementModifier, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getMeleeAttackStrength, getPosition, getRNG, getRotationYawHead, getSlipperinessRelativeToBlock, getSoundVolume, getSpeedModifier, getSwimmingHorizontalModifier, getSwingProgress, getTeam, getTotalArmorValue, heal, isClientWorld, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, isWeighted, isWeightedByHeadCrab, kill, knockBack, knockbackMagnitude, mouseOverCustomRayTrace, moveEntityWithHeading, onChangedPotionEffect, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onNewPotionEffect, performHurtAnimation, rayTrace, recoverAirSupply, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setPositionAndUpdate, setRotationYawHead, setSprinting, swingItem, 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, getCanBeHeadCrabbed, getCollisionBorderSize, getCollisionBox, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getFlag, getHeadCrabSharedAttackTarget, getMaxInPortalTime, getMountedYOffset, 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, isImmuneToHeadCrabDamage, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isItemEntity, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isValidZombieSecondaryTarget, isWet, mountEntity, mountEntityRemote, moveEntity, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setDead, setEating, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSneaking, setVelocity, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
KICK_ATTACK_TICKS_TO_COOLDOWN
public static final int KICK_ATTACK_TICKS_TO_COOLDOWN- See Also:
-
KICK_ATTACK_RANGE
public static final double KICK_ATTACK_RANGE- See Also:
-
KICK_ATTACK_DURATION
public static final int KICK_ATTACK_DURATION- See Also:
-
KICK_ATTACK_TIP_COLLISION_WIDTH
public static final double KICK_ATTACK_TIP_COLLISION_WIDTH- See Also:
-
KICK_ATTACK_TIP_COLLISION_HALF_WIDTH
public static final double KICK_ATTACK_TIP_COLLISION_HALF_WIDTH- See Also:
-
KICK_ATTACK_TIP_COLLISION_HEIGHT
public static final double KICK_ATTACK_TIP_COLLISION_HEIGHT- See Also:
-
KICK_ATTACK_TIP_COLLISION_HALF_HEIGHT
public static final double KICK_ATTACK_TIP_COLLISION_HALF_HEIGHT- See Also:
-
kickAttackCooldownTimer
protected int kickAttackCooldownTimer -
kickAttackInProgressCounter
public int kickAttackInProgressCounter -
kickAttackLegUsed
public int kickAttackLegUsed
-
-
Constructor Details
-
KickingAnimal
-
-
Method Details
-
onLivingUpdate
public void onLivingUpdate()Description copied from class:EntityAnimalCalled 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 classEntityAnimal
-
updateKickAttack
protected void updateKickAttack() -
canEntityBeSeenForAttackToCenterOfMass
-
computeKickAttackCenter
-
onClientNotifiedOfKickAttack
public void onClientNotifiedOfKickAttack()
-