Package net.minecraft.src
Class EntityCreeper
- All Implemented Interfaces:
EntityWithCustomPacket,IAnimals,IMob
-
Field Summary
Fields 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, ySizeFields inherited from interface net.minecraft.src.IMob
mobSelector -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanattackEntityAsMob(Entity par1Entity) booleanattackEntityFrom(DamageSource par1DamageSource, float par2) Called when the entity is attacked.voidprotected voiddropFewItems(boolean bKilledByPlayer, int iFortuneModifier) Drop 0-2 items of this living's type.protected voiddropHead()protected voidfloatgetCreeperFlashIntensity(float par1) Params: (Float)Render tick.intReturns the current state of creeper, -1 is idle, 1 is 'in fuse'protected StringReturns the sound this mob makes on death.protected intReturns the item ID for the item the mob drops on death.protected StringReturns the sound this mob makes when it is hurt.booleanprotected StringReturns the sound this mob makes while it's alive.intThe number of iterations PathFinder.getSafePoint will execute before giving up.intbooleanReturns true if the creeper is powered by a lightning bolt.intGet number of ticks, at least during which the living entity will be silent.intintbooleanbooleaninteract(EntityPlayer player) Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.booleanReturns true if the newer Entity AI code should be runvoidonDeath(DamageSource par1DamageSource) Called when the mob's health reaches 0.voidonKickedByAnimal(KickingAnimal kickingAnimal) voidonStruckByLightning(EntityLightningBolt entityBolt) Called when a lightning bolt hits the entity.voidonUpdate()Called to update the entity's position/logic.voidPlays living's sound at its positionvoidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetCreeperState(int par1) Sets the state of creeper, -1 to idle and 1 to be 'in fuse'voidsetNeuteredState(int iNeuteredState) voidsetTimeSinceIgnited(int timeSinceIgnited) booleanPartially disables server-side visibility tests for interacting with an entityvoidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.EntityMob
attackEntity, canSpawnOnBlock, canSpawnOnBlockBelow, checkForCatchFireInSun, entityMobAttackEntity, entityMobAttackEntityFrom, entityMobOnLivingUpdate, findPlayerToAttack, getBlockPathWeight, getCanSpawnHere, getMeleeAttackStrength, isValidLightLevel, onLivingUpdateMethods inherited from class net.minecraft.src.EntityCreature
attemptToPossessCreaturesAroundBlock, attemptToPossessNearbyCreature, attemptToPossessNearbyCreatureOnDeath, 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, modSpecificOnLivingUpdate, onFullPossession, onInitialPossession, playFullPossessionSound, setHomeArea, setHomeArea, setPathToEntity, setPossessionLevel, setTarget, shouldContinueAttacking, transmitAttackTargetToClients, updateEntityActionState, updateWanderPathMethods inherited from class net.minecraft.src.EntityLiving
addRandomArmor, allowLeashing, attractsLightning, canAttackClass, canBeSteered, canDespawn, 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, getExperiencePoints, getHeldItem, getJumpHelper, getLastActiveItems, getLeashed, getLeashedToEntity, getLookHelper, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getRenderSizeModifier, getVerticalFaceSpeed, hasAttackTarget, hasCustomNameTag, installationIntegrityTest, interactFirst, isInsideSpawnAreaAroundChunk, isInsideSpawnAreaAroundOriginalSpawn, isInsideSpawnAreaAroundPlayer, isNoDespawnRequired, meleeAttack, minDistFromPlayerForDespawn, onClimbWhileSwimming, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onSpawnWithEgg, outOfUpdateRangeUpdate, 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, 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, getEyeHeight, getHealth, getHealthAndExhaustionModifier, getItemIcon, getLadderVerticalMovementModifier, getLandMovementModifier, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getPosition, getRNG, getRotationYawHead, getSlipperinessRelativeToBlock, getSoundPitch, getSoundVolume, 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, moveEntityWithHeading, 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, 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, isSecondaryTargetForSquid, isSneaking, isSprinting, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isValidZombieSecondaryTarget, isWet, mountEntity, mountEntityRemote, moveEntity, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onKillEntity, onPossessedRidingEntityDeath, playSound, playStepSound, 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
-
Constructor Details
-
EntityCreeper
-
-
Method Details
-
applyEntityAttributes
protected void applyEntityAttributes()- Overrides:
applyEntityAttributesin classEntityMob
-
isAIEnabled
public boolean isAIEnabled()Returns true if the newer Entity AI code should be run- Overrides:
isAIEnabledin classEntityLiving
-
getMaxSafePointTries
public int getMaxSafePointTries()The number of iterations PathFinder.getSafePoint will execute before giving up.- Overrides:
getMaxSafePointTriesin classEntityLiving
-
entityInit
protected void entityInit()- Overrides:
entityInitin classEntityCreature
-
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityCreature
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityCreature
-
onUpdate
public void onUpdate()Called to update the entity's position/logic. -
getHurtSound
Returns the sound this mob makes when it is hurt.- Overrides:
getHurtSoundin classEntityLivingBase
-
getDeathSound
Returns the sound this mob makes on death.- Overrides:
getDeathSoundin classEntityLivingBase
-
onDeath
Called when the mob's health reaches 0.- Overrides:
onDeathin classEntityCreature
-
attackEntityAsMob
- Overrides:
attackEntityAsMobin classEntityLiving
-
getPowered
public boolean getPowered()Returns true if the creeper is powered by a lightning bolt. -
getCreeperFlashIntensity
public float getCreeperFlashIntensity(float par1) Params: (Float)Render tick. Returns the intensity of the creeper's flash when it is ignited. -
getDropItemId
protected int getDropItemId()Returns the item ID for the item the mob drops on death.- Overrides:
getDropItemIdin classEntityLiving
-
getCreeperState
public int getCreeperState()Returns the current state of creeper, -1 is idle, 1 is 'in fuse' -
setCreeperState
public void setCreeperState(int par1) Sets the state of creeper, -1 to idle and 1 to be 'in fuse' -
attackEntityFrom
Description copied from class:EntityMobCalled when the entity is attacked.- Overrides:
attackEntityFromin classEntityMob
-
dropHead
protected void dropHead()- Overrides:
dropHeadin classEntityLivingBase
-
dropFewItems
protected void dropFewItems(boolean bKilledByPlayer, int iFortuneModifier) 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
-
interact
Description copied from class:EntityLivingCalled when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.- Overrides:
interactin classEntityLiving
-
getTalkInterval
public int getTalkInterval()Description copied from class:EntityLivingGet number of ticks, at least during which the living entity will be silent.- Overrides:
getTalkIntervalin classEntityLiving
-
playLivingSound
public void playLivingSound()Description copied from class:EntityLivingPlays living's sound at its position- Overrides:
playLivingSoundin classEntityLiving
-
getLivingSound
Description copied from class:EntityLivingReturns the sound this mob makes while it's alive.- Overrides:
getLivingSoundin classEntityLiving
-
onKickedByAnimal
- Overrides:
onKickedByAnimalin classEntity
-
checkForScrollDrop
public void checkForScrollDrop()- Overrides:
checkForScrollDropin classEntityLivingBase
-
onStruckByLightning
Description copied from class:EntityCalled when a lightning bolt hits the entity.- Overrides:
onStruckByLightningin classEntity
-
getIsDeterminedToExplode
public boolean getIsDeterminedToExplode() -
getNeuteredState
public int getNeuteredState() -
setNeuteredState
public void setNeuteredState(int iNeuteredState) -
getSpawnPacketForThisEntity
- Specified by:
getSpawnPacketForThisEntityin interfaceEntityWithCustomPacket- Returns:
- Custom packet containing information for this entity to send from the server to the client
-
getTrackerViewDistance
public int getTrackerViewDistance()- Specified by:
getTrackerViewDistancein interfaceEntityWithCustomPacket
-
getTrackerUpdateFrequency
public int getTrackerUpdateFrequency()- Specified by:
getTrackerUpdateFrequencyin interfaceEntityWithCustomPacket
-
getTrackMotion
public boolean getTrackMotion()- Specified by:
getTrackMotionin interfaceEntityWithCustomPacket
-
shouldServerTreatAsOversized
public boolean shouldServerTreatAsOversized()Description copied from interface:EntityWithCustomPacketPartially disables server-side visibility tests for interacting with an entity- Specified by:
shouldServerTreatAsOversizedin interfaceEntityWithCustomPacket
-
setTimeSinceIgnited
public void setTimeSinceIgnited(int timeSinceIgnited)
-