public class EntityGuardian extends EntityMob
EntityLiving.SpawnPlacementType
FLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUID
equipmentDropChances, experienceValue, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasks
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
addedToChunk, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, 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
mobSelector, VISIBLE_MOB_SELECTOR
Constructor and Description |
---|
EntityGuardian(World worldIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRandomDrop()
Causes this Entity to drop a random item.
|
protected void |
applyEntityAttributes() |
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
protected boolean |
canTriggerWalking()
returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to
prevent them from trampling crops
|
protected void |
dropFewItems(boolean p_70628_1_,
int p_70628_2_)
Drop 0-2 items of this living's type
|
protected void |
entityInit() |
int |
func_175464_ck() |
float |
func_175469_o(float p_175469_1_) |
float |
func_175471_a(float p_175471_1_) |
boolean |
func_175472_n() |
float |
func_175477_p(float p_175477_1_) |
float |
getBlockPathWeight(BlockPos pos) |
boolean |
getCanSpawnHere()
Checks if the entity's current position is a valid location to spawn this entity.
|
protected java.lang.String |
getDeathSound()
Returns the sound this mob makes on death.
|
float |
getEyeHeight() |
protected java.lang.String |
getHurtSound()
Returns the sound this mob makes when it is hurt.
|
protected java.lang.String |
getLivingSound()
Returns the sound this mob makes while it's alive.
|
protected PathNavigate |
getNewNavigator(World worldIn)
Returns new PathNavigateGround instance
|
int |
getTalkInterval()
Get number of ticks, at least during which the living entity will be silent.
|
EntityLivingBase |
getTargetedEntity() |
int |
getVerticalFaceSpeed()
The speed it takes to move the entityliving's rotationPitch through the faceEntity method.
|
boolean |
hasTargetedEntity() |
boolean |
isElder() |
boolean |
isNotColliding()
Checks that the entity is not colliding with any blocks / liquids
|
protected boolean |
isValidLightLevel()
Checks to make sure the light is not too bright where the mob is spawning
|
void |
moveEntityWithHeading(float strafe,
float forward)
Moves the entity based on the specified heading.
|
void |
onDataWatcherUpdate(int dataID) |
void |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required.
|
void |
readEntityFromNBT(NBTTagCompound tagCompund)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setElder() |
void |
setElder(boolean elder)
Sets this Guardian to be an elder or not.
|
protected void |
updateAITasks() |
void |
writeEntityToNBT(NBTTagCompound tagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
attackEntityAsMob, canDropLoot, getFallSoundString, getSplashSound, getSwimSound, onUpdate
detachHome, func_142017_o, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, setHomePosAndDistance, updateLeashedState
allowLeashing, canAttackClass, canBeSteered, canDespawn, canPickUpLoot, clearLeashed, despawnEntity, dropEquipment, eatGrassBonus, enablePersistence, faceEntity, func_110146_f, func_175448_a, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmor, getDropItem, getEntitySenses, getEquipmentInSlot, getExperiencePoints, getHeldItem, getInventory, getJumpHelper, getLeashed, getLeashedToEntity, getLookHelper, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getRenderSizeModifier, handleStatusUpdate, interact, interactFirst, isAIDisabled, isNoDespawnRequired, isServerWorld, onEntityUpdate, onInitialSpawn, playLivingSound, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setNoAI, spawnExplosionParticle, updateEntityActionState, updateEquipmentIfNeeded
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, fall, func_181013_g, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getHealth, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTeam, getTotalArmorValue, handleJumpLava, heal, isChild, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, markPotionsDirty, mountEntity, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onKillCommand, onNewPotionEffect, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRidden
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canRiderInteract, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_174817_o, func_181012_aH, func_181014_aG, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCapability, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getExtendedProperties, getFlag, getHorizontalFacing, getHoverEvent, getMaxInPortalTime, getMountedYOffset, getName, getNBTTagCompound, getParts, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCapability, hasCustomName, hashCode, hitByEntity, interactAt, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerExtendedProperties, resetEntityId, resetHeight, sendCommandFeedback, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
public EntityGuardian(World worldIn)
protected void applyEntityAttributes()
applyEntityAttributes
in class EntityMob
public void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT
in class EntityLiving
public void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT
in class EntityLiving
protected PathNavigate getNewNavigator(World worldIn)
getNewNavigator
in class EntityLiving
protected void entityInit()
entityInit
in class EntityLiving
public boolean func_175472_n()
public int func_175464_ck()
public boolean isElder()
public void setElder(boolean elder)
public void setElder()
public boolean hasTargetedEntity()
public EntityLivingBase getTargetedEntity()
public void onDataWatcherUpdate(int dataID)
onDataWatcherUpdate
in class Entity
public int getTalkInterval()
getTalkInterval
in class EntityLiving
protected java.lang.String getLivingSound()
getLivingSound
in class EntityLiving
protected java.lang.String getHurtSound()
getHurtSound
in class EntityMob
protected java.lang.String getDeathSound()
getDeathSound
in class EntityMob
protected boolean canTriggerWalking()
canTriggerWalking
in class Entity
public float getEyeHeight()
getEyeHeight
in class Entity
public float getBlockPathWeight(BlockPos pos)
getBlockPathWeight
in class EntityMob
public void onLivingUpdate()
onLivingUpdate
in class EntityMob
public float func_175471_a(float p_175471_1_)
public float func_175469_o(float p_175469_1_)
public float func_175477_p(float p_175477_1_)
protected void updateAITasks()
updateAITasks
in class EntityLiving
protected void dropFewItems(boolean p_70628_1_, int p_70628_2_)
dropFewItems
in class EntityLiving
protected void addRandomDrop()
addRandomDrop
in class EntityLivingBase
protected boolean isValidLightLevel()
isValidLightLevel
in class EntityMob
public boolean isNotColliding()
isNotColliding
in class EntityLiving
public boolean getCanSpawnHere()
getCanSpawnHere
in class EntityMob
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityMob
public int getVerticalFaceSpeed()
getVerticalFaceSpeed
in class EntityLiving
public void moveEntityWithHeading(float strafe, float forward)
moveEntityWithHeading
in class EntityLivingBase