public class EntityGuardian extends EntityMob
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
EntityGuardian.AIGuardianAttack |
(package private) static class |
EntityGuardian.GuardianMoveHelper |
(package private) static class |
EntityGuardian.GuardianTargetSelector |
EntityLiving.SpawnPlacementType| Modifier and Type | Field and Description |
|---|---|
private int |
field_175479_bo |
private boolean |
field_175480_bp |
private float |
field_175482_b |
private float |
field_175483_bk |
private float |
field_175484_c |
private float |
field_175485_bl |
private float |
field_175486_bm |
private EntityLivingBase |
targetedEntity |
private EntityAIWander |
wander |
FLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUIDequipmentDropChances, experienceValue, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasksarrowHitTimer, 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, swingProgressIntaddedToChunk, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, 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, worldObjmobSelector, 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.
|
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() |
private void |
func_175476_l(boolean p_175476_1_) |
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
|
private boolean |
isSyncedFlagSet(int flagId)
Returns true if given flag is set
|
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.
|
private void |
setSyncedFlag(int flagId,
boolean state)
Sets a flag state "on/off" on both sides (client/server) by using DataWatcher
|
private void |
setTargetedEntity(int entityId) |
protected void |
updateAITasks() |
void |
writeEntityToNBT(NBTTagCompound tagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
attackEntityAsMob, canDropLoot, getFallSoundString, getSplashSound, getSwimSound, onUpdatedetachHome, func_142017_o, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, setHomePosAndDistance, updateLeashedStateallowLeashing, 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, updateEquipmentIfNeededaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, 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, swingItem, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRiddenaddChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_174817_o, func_181012_aH, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getFlag, getHorizontalFacing, getHoverEvent, getMaxInPortalTime, getMountedYOffset, getName, getNBTTagCompound, getParts, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hitByEntity, interactAt, isBurning, 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, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptionalprivate float field_175482_b
private float field_175484_c
private float field_175483_bk
private float field_175485_bl
private float field_175486_bm
private EntityLivingBase targetedEntity
private int field_175479_bo
private boolean field_175480_bp
private EntityAIWander wander
public EntityGuardian(World worldIn)
protected void applyEntityAttributes()
applyEntityAttributes in class EntityMobpublic void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT in class EntityLivingpublic void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT in class EntityLivingprotected PathNavigate getNewNavigator(World worldIn)
getNewNavigator in class EntityLivingprotected void entityInit()
entityInit in class EntityLivingprivate boolean isSyncedFlagSet(int flagId)
private void setSyncedFlag(int flagId,
boolean state)
public boolean func_175472_n()
private void func_175476_l(boolean p_175476_1_)
public int func_175464_ck()
public boolean isElder()
public void setElder(boolean elder)
public void setElder()
private void setTargetedEntity(int entityId)
public boolean hasTargetedEntity()
public EntityLivingBase getTargetedEntity()
public void onDataWatcherUpdate(int dataID)
onDataWatcherUpdate in class Entitypublic int getTalkInterval()
getTalkInterval in class EntityLivingprotected java.lang.String getLivingSound()
getLivingSound in class EntityLivingprotected java.lang.String getHurtSound()
getHurtSound in class EntityMobprotected java.lang.String getDeathSound()
getDeathSound in class EntityMobprotected boolean canTriggerWalking()
canTriggerWalking in class Entitypublic float getEyeHeight()
getEyeHeight in class Entitypublic float getBlockPathWeight(BlockPos pos)
getBlockPathWeight in class EntityMobpublic void onLivingUpdate()
onLivingUpdate in class EntityMobpublic 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 EntityLivingprotected void dropFewItems(boolean p_70628_1_,
int p_70628_2_)
dropFewItems in class EntityLivingprotected void addRandomDrop()
addRandomDrop in class EntityLivingBaseprotected boolean isValidLightLevel()
isValidLightLevel in class EntityMobpublic boolean isNotColliding()
isNotColliding in class EntityLivingpublic boolean getCanSpawnHere()
getCanSpawnHere in class EntityMobpublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class EntityMobpublic int getVerticalFaceSpeed()
getVerticalFaceSpeed in class EntityLivingpublic void moveEntityWithHeading(float strafe,
float forward)
moveEntityWithHeading in class EntityLivingBase