Package net.minecraft.src
Class EntitySlime
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityLivingBase
net.minecraft.src.EntityLiving
net.minecraft.src.EntitySlime
- Direct Known Subclasses:
EntityMagmaCube
-
Field Summary
FieldsFields 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 voidbooleanprotected booleanbooleancanSwim()voidprotected EntitySlimeprotected voidprotected voidfall(float fFallDistance) Called when the mob is falling.protected intGets the amount of damage dealt to the player when "attacked" by the slime.booleanChecks if the entity's current position is a valid location to spawn this entity.protected StringReturns the sound this mob makes on death.floatprotected intReturns the item ID for the item the mob drops on death.protected StringReturns the sound this mob makes when it is hurt.protected intGets the amount of time the slime needs to wait between jumps.protected StringReturns the name of the sound played when the slime jumps.protected StringReturns the name of a particle effect that may be randomly created by EntitySlime.onUpdate()intReturns the size of the slime.floatgetSlipperinessRelativeToBlock(int iBlockID) protected floatGets the pitch of living sounds in living entities.protected floatReturns the volume for the sounds this mob makes.intThe speed it takes to move the entityliving's rotationPitch through the faceEntity method.booleanprotected boolean// +++START EDIT+++ Checks to make sure the light is not too bright where the mob is spawningvoidjump()Causes this entity to do an upwards motion (jumping).protected booleanReturns true if the slime makes a sound when it jumps (based upon the slime's size)protected booleanprotected doublevoidonCollideWithPlayer(EntityPlayer player) Called by a player entity when they collide with an entityvoidonUpdate()Called to update the entity's position/logic.voidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetDead()Will get destroyed next tick.protected voidsetSlimeSize(int iSize) protected voidvoidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.EntityLiving
addRandomArmor, allowLeashing, applyEntityAttributes, attackEntityAsMob, attractsLightning, canAttackClass, canBeSteered, canDespawn, canEntityCenterOfMassBeSeen, canPickUpLoot, clearLeashed, despawnEntity, doesEntityApplyToSpawnCap, dropEquipment, dropFewItems, eatGrassBonus, enchantEquipment, entityLivingAddRandomArmor, entityLivingDropFewItems, entityLivingOnLivingUpdate, entityLivingOnSpawnWithEgg, entityLivingSetAttackTarget, entityLivingUpdateAITasks, faceEntity, func_110146_f, func_110159_bB, func_110163_bv, func_130225_q, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmorBTW, getCurrentItemOrArmor, getCustomNameTag, getEntityName, getEntitySenses, getExperiencePoints, getHeldItem, getJumpHelper, getLastActiveItems, getLeashed, getLeashedToEntity, getLivingSound, getLookHelper, getMaxSafePointTries, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getRenderSizeModifier, getTalkInterval, hasAttackTarget, hasCustomNameTag, installationIntegrityTest, interact, interactFirst, isAIEnabled, isInsideSpawnAreaAroundChunk, isInsideSpawnAreaAroundOriginalSpawn, isInsideSpawnAreaAroundPlayer, isNoDespawnRequired, meleeAttack, modSpecificOnLivingUpdate, onClimbWhileSwimming, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onLivingUpdate, onSpawnWithEgg, 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, attackEntityFrom, canBeCollidedWith, canBePushed, canEntityBeSeen, canJump, canJumpMidWater, checkForHeadDrop, checkForRareDrop, clearActivePotions, collideWithEntity, collideWithNearbyEntities, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, dropHead, dropRareDrop, entityLivingBaseFall, entityLivingOnDeath, func_110142_aN, func_142015_aE, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAmbientLootingModifier, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getEntityAttribute, getEyeHeight, getHealth, getHealthAndExhaustionModifier, getItemIcon, getLadderVerticalMovementModifier, getLandMovementModifier, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getMeleeAttackStrength, getPosition, getRNG, getRotationYawHead, getSpeedModifier, getSwimmingHorizontalModifier, getSwingProgress, getTeam, getTotalArmorValue, handleHealthUpdate, heal, isChild, isClientWorld, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, isWeighted, isWeightedByHeadCrab, kill, knockBack, knockbackMagnitude, mouseOverCustomRayTrace, moveEntityWithHeading, onChangedPotionEffect, onDeath, 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, 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, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, 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
-
squishAmount
public float squishAmount -
squishFactor
public float squishFactor -
prevSquishFactor
public float prevSquishFactor
-
-
Constructor Details
-
EntitySlime
-
-
Method Details
-
entityInit
protected void entityInit()- Overrides:
entityInitin classEntityLiving
-
getSlimeSize
public int getSlimeSize()Returns the size of the slime. -
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityLiving
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityLiving
-
getSlimeParticle
Returns the name of a particle effect that may be randomly created by EntitySlime.onUpdate() -
getJumpSound
Returns the name of the sound played when the slime jumps. -
onUpdate
public void onUpdate()Called to update the entity's position/logic.- Overrides:
onUpdatein classEntityLiving
-
alterSquishAmount
protected void alterSquishAmount() -
getJumpDelay
protected int getJumpDelay()Gets the amount of time the slime needs to wait between jumps. -
createInstance
-
setDead
public void setDead()Will get destroyed next tick. -
getAttackStrength
protected int getAttackStrength()Gets the amount of damage dealt to the player when "attacked" by the slime. -
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
-
getDropItemId
protected int getDropItemId()Returns the item ID for the item the mob drops on death.- Overrides:
getDropItemIdin classEntityLiving
-
isValidLightLevel
protected boolean isValidLightLevel()// +++START EDIT+++ Checks to make sure the light is not too bright where the mob is spawning -
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
-
makesSoundOnJump
protected boolean makesSoundOnJump()Returns true if the slime makes a sound when it jumps (based upon the slime's size) -
setSlimeSize
protected void setSlimeSize(int iSize) -
makesSoundOnLand
protected boolean makesSoundOnLand() -
updateEntityActionState
protected void updateEntityActionState()- Overrides:
updateEntityActionStatein classEntityLiving
-
minDistFromPlayerForDespawn
protected double minDistFromPlayerForDespawn()- Overrides:
minDistFromPlayerForDespawnin classEntityLiving
-
onCollideWithPlayer
Description copied from class:EntityCalled by a player entity when they collide with an entity- Overrides:
onCollideWithPlayerin classEntity
-
canDamagePlayer
protected boolean canDamagePlayer() -
getCanSpawnHere
public boolean getCanSpawnHere()Description copied from class:EntityLivingChecks if the entity's current position is a valid location to spawn this entity.- Overrides:
getCanSpawnHerein classEntityLiving
-
getSoundVolume
protected float getSoundVolume()Description copied from class:EntityLivingBaseReturns the volume for the sounds this mob makes.- Overrides:
getSoundVolumein classEntityLivingBase
-
canBreatheUnderwater
public boolean canBreatheUnderwater()- Overrides:
canBreatheUnderwaterin classEntityLivingBase
-
checkForScrollDrop
public void checkForScrollDrop()- Overrides:
checkForScrollDropin classEntityLivingBase
-
isAffectedByMovementModifiers
public boolean isAffectedByMovementModifiers()- Overrides:
isAffectedByMovementModifiersin classEntity
-
jump
public void jump()Description copied from class:EntityLivingBaseCauses this entity to do an upwards motion (jumping).- Overrides:
jumpin classEntityLivingBase
-
canSwim
public boolean canSwim()- Overrides:
canSwimin classEntityLivingBase
-
getDefaultSlipperinessOnGround
public float getDefaultSlipperinessOnGround()- Overrides:
getDefaultSlipperinessOnGroundin classEntityLivingBase
-
getSlipperinessRelativeToBlock
public float getSlipperinessRelativeToBlock(int iBlockID) - Overrides:
getSlipperinessRelativeToBlockin classEntityLivingBase
-
fall
protected void fall(float fFallDistance) Description copied from class:EntityLivingBaseCalled when the mob is falling. Calculates and applies fall damage.- Overrides:
fallin classEntityLivingBase
-
getSoundPitch
protected float getSoundPitch()Description copied from class:EntityLivingBaseGets the pitch of living sounds in living entities.- Overrides:
getSoundPitchin classEntityLivingBase
-