Package btw.entity.mob
Class BTWSquidEntity
- All Implemented Interfaces:
IAnimals
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatfloatfloatfloatfloatfloatstatic final intfloatintFields 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 TypeMethodDescriptionprotected voidbooleanattackEntityFrom(DamageSource damageSource, float iDamageAmount) Called when the entity is attacked.booleanprotected booleanDetermines if an entity can be despawned, used on idle far away entitiesvoidcomputeTentacleAttackTip(float fAttackProgressTick) booleanbooleanprotected voiddropFewItems(boolean bKilledByPlayer, int iLootingModifier) Drop 0-2 items of this living's type.doublegetAttackProgressSin(float fAttackProgressTick) booleangetCanCreatureBePossessedFromDistance(boolean bPersistentSpirit) booleanbooleanChecks if the entity's current position is a valid location to spawn this entity.protected StringReturns the sound this mob makes on death.floatgetDepthBeneathSurface(float fMaxDepthToConsider) protected intReturns the item ID for the item the mob drops on death.floatprotected StringReturns the sound this mob makes when it is hurt.protected StringReturns the sound this mob makes while it's alive.protected floatReturns the volume for the sounds this mob makes.protected voidvoidinitiatePossession(PossessionSource<?> source) booleanbooleanprotected doublevoidmoveEntityWithHeading(float par1, float par2) Moves the entity based on the specified heading.voidonClientNotifiedOfTentacleAttack(double dTargetX, double dTargetY, double dTargetZ) voidCalled frequently so the entity can update its state every tick as required.booleanonPossessedRidingEntityDeath(PossessionSource<?> source) Returns true if this function has handled the possession transfer from the dead entity.protected voidplayStepSound(int par1, int par2, int par3, int par4) Plays step sound at given x, y, z for the entityvoidSets the entity which is to be attacked.protected voidMethods inherited from class net.minecraft.src.EntityWaterMob
canBreatheUnderwater, getExperiencePoints, getTalkInterval, onEntityUpdateMethods inherited from class net.minecraft.src.EntityCreature
attackEntity, attemptToPossessCreaturesAroundBlock, attemptToPossessNearbyCreature, attemptToPossessNearbyCreatureOnDeath, canSoulAffectEntity, detachHome, entityCreatureEntityInit, entityInit, findPlayerToAttack, func_110159_bB, func_110173_bK, func_110174_bM, func_110176_b, func_142017_o, getBlockPathWeight, getEntityToAttack, getHomePosition, getInitialPossessionChance, getPossessionLevel, getTimeToFullPossession, hasHome, hasPath, isFullyPossessed, isMovementCeased, isPossessed, modSpecificOnLivingUpdate, onDeath, onFullPossession, onInitialPossession, playFullPossessionSound, readEntityFromNBT, setHomeArea, setHomeArea, setPathToEntity, setPossessionLevel, shouldContinueAttacking, transmitAttackTargetToClients, updateWanderPath, writeEntityToNBTMethods inherited from class net.minecraft.src.EntityLiving
addRandomArmor, allowLeashing, attackEntityAsMob, canAttackClass, canBeSteered, canEntityCenterOfMassBeSeen, canPickUpLoot, clearLeashed, despawnEntity, doesEntityApplyToSpawnCap, dropEquipment, 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, getEntityName, getEntitySenses, getHeldItem, getJumpHelper, getLastActiveItems, getLeashed, getLeashedToEntity, getLookHelper, getMaxSafePointTries, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getRenderSizeModifier, getVerticalFaceSpeed, hasAttackTarget, hasCustomNameTag, installationIntegrityTest, interact, interactFirst, isAIEnabled, isInsideSpawnAreaAroundChunk, isInsideSpawnAreaAroundOriginalSpawn, isInsideSpawnAreaAroundPlayer, isNoDespawnRequired, meleeAttack, onClimbWhileSwimming, onFlungBySquidTentacle, onHeadCrabbedBySquid, onSpawnWithEgg, 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, 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, getDefaultSlipperinessOnGround, getEntityAttribute, getHealth, getHealthAndExhaustionModifier, getItemIcon, getLadderVerticalMovementModifier, getLandMovementModifier, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getMeleeAttackStrength, getPosition, getRNG, getRotationYawHead, getSlipperinessRelativeToBlock, getSoundPitch, getSpeedModifier, getSwimmingHorizontalModifier, getSwingProgress, getTeam, getTotalArmorValue, handleHealthUpdate, heal, isChild, isClientWorld, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, isWeighted, isWeightedByHeadCrab, jump, kill, knockBack, knockbackMagnitude, mouseOverCustomRayTrace, onChangedPotionEffect, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onNewPotionEffect, performHurtAnimation, rayTrace, recoverAirSupply, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, updateAITick, 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, doesEntityNotTriggerPressurePlate, 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, 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, isSecondaryTargetForSquid, isSneaking, isSprinting, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isWet, mountEntity, mountEntityRemote, moveEntity, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onKickedByAnimal, onKillEntity, onStruckByLightning, playSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setDead, setEating, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setVelocity, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
BRIGHTNESS_AGGRESSION_THRESHOLD
public static final float BRIGHTNESS_AGGRESSION_THRESHOLD- See Also:
-
TENTACLE_ATTACK_DURATION
public static final int TENTACLE_ATTACK_DURATION- See Also:
-
tentacleAttackInProgressCounter
public int tentacleAttackInProgressCounter -
squidPitch
public float squidPitch -
prevSquidPitch
public float prevSquidPitch -
squidYaw
public float squidYaw -
prevSquidYaw
public float prevSquidYaw -
tentacleAngle
public float tentacleAngle -
prevTentacleAngle
public float prevTentacleAngle
-
-
Constructor Details
-
BTWSquidEntity
-
-
Method Details
-
applyEntityAttributes
protected void applyEntityAttributes()- Overrides:
applyEntityAttributesin classEntityLiving
-
getLivingSound
Description copied from class:EntityLivingReturns the sound this mob makes while it's alive.- Overrides:
getLivingSoundin classEntityLiving
-
getHurtSound
Description copied from class:EntityLivingBaseReturns the sound this mob makes when it is hurt.- Overrides:
getHurtSoundin classEntityLivingBase
-
getDeathSound
Description copied from class:EntityLivingBaseReturns the sound this mob makes on death.- Overrides:
getDeathSoundin classEntityLivingBase
-
getSoundVolume
protected float getSoundVolume()Description copied from class:EntityLivingBaseReturns the volume for the sounds this mob makes.- Overrides:
getSoundVolumein classEntityLivingBase
-
getDropItemId
protected int getDropItemId()Description copied from class:EntityLivingReturns the item ID for the item the mob drops on death.- Overrides:
getDropItemIdin classEntityLiving
-
dropFewItems
protected void dropFewItems(boolean bKilledByPlayer, int iLootingModifier) Description copied from class:EntityLivingDrop 0-2 items of this living's type. @param par1 - Whether this entity has recently been hit by a player. @param par2 - Level of Looting used to kill this mob.- Overrides:
dropFewItemsin classEntityLiving
-
onLivingUpdate
public void onLivingUpdate()Description copied from class:EntityLivingCalled 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 classEntityLiving
-
moveEntityWithHeading
public void moveEntityWithHeading(float par1, float par2) Description copied from class:EntityLivingBaseMoves the entity based on the specified heading. Args: strafe, forward- Overrides:
moveEntityWithHeadingin classEntityLivingBase
-
updateEntityActionState
protected void updateEntityActionState()- Overrides:
updateEntityActionStatein classEntityCreature
-
minDistFromPlayerForDespawn
protected double minDistFromPlayerForDespawn()- Overrides:
minDistFromPlayerForDespawnin classEntityLiving
-
canDespawn
protected boolean canDespawn()Description copied from class:EntityWaterMobDetermines if an entity can be despawned, used on idle far away entities- Overrides:
canDespawnin classEntityWaterMob
-
getCanSpawnHere
public boolean getCanSpawnHere()Description copied from class:EntityWaterMobChecks if the entity's current position is a valid location to spawn this entity.- Overrides:
getCanSpawnHerein classEntityWaterMob
-
attackEntityFrom
Description copied from class:EntityLivingBaseCalled when the entity is attacked.- Overrides:
attackEntityFromin classEntityLivingBase
-
playStepSound
protected void playStepSound(int par1, int par2, int par3, int par4) Description copied from class:EntityPlays step sound at given x, y, z for the entity- Overrides:
playStepSoundin classEntity
-
checkForScrollDrop
public void checkForScrollDrop()- Overrides:
checkForScrollDropin classEntityLivingBase
-
getVisualBoundingBox
- Overrides:
getVisualBoundingBoxin classEntity
-
setTarget
Description copied from class:EntityCreatureSets the entity which is to be attacked.- Overrides:
setTargetin classEntityCreature
-
getCanCreatureTypeBePossessed
public boolean getCanCreatureTypeBePossessed()- Overrides:
getCanCreatureTypeBePossessedin classEntityCreature
-
getCanCreatureBePossessedFromDistance
public boolean getCanCreatureBePossessedFromDistance(boolean bPersistentSpirit) - Overrides:
getCanCreatureBePossessedFromDistancein classEntityCreature
-
onPossessedRidingEntityDeath
Description copied from class:EntityReturns true if this function has handled the possession transfer from the dead entity. Called on server only.- Overrides:
onPossessedRidingEntityDeathin classEntity
-
initiatePossession
- Overrides:
initiatePossessionin classEntityCreature
-
handlePossession
protected void handlePossession()- Overrides:
handlePossessionin classEntityCreature
-
doesEntityApplyToSquidPossessionCap
public boolean doesEntityApplyToSquidPossessionCap()- Overrides:
doesEntityApplyToSquidPossessionCapin classEntity
-
isValidZombieSecondaryTarget
- Overrides:
isValidZombieSecondaryTargetin classEntity
-
attractsLightning
public boolean attractsLightning()- Overrides:
attractsLightningin classEntityLiving
-
getEyeHeight
public float getEyeHeight()- Overrides:
getEyeHeightin classEntityLivingBase
-
doesNotDismountInWater
public boolean doesNotDismountInWater()- Overrides:
doesNotDismountInWaterin classEntity
-
onClientNotifiedOfTentacleAttack
public void onClientNotifiedOfTentacleAttack(double dTargetX, double dTargetY, double dTargetZ) -
computeTentacleAttackTip
-
getAttackProgressSin
public double getAttackProgressSin(float fAttackProgressTick) -
isHeadCrab
public boolean isHeadCrab() -
getDepthBeneathSurface
public float getDepthBeneathSurface(float fMaxDepthToConsider)
-