public class EntityDragon extends EntityLiving implements IBossDisplayData, IEntityMultiPart, IMob
EntityLiving.SpawnPlacementType
Modifier and Type | Field and Description |
---|---|
float |
animTime
Animation time, used to control the speed of the animation cycles (wings flapping, jaw opening, etc.)
|
int |
deathTicks |
EntityDragonPart[] |
dragonPartArray
An array containing all body parts of this dragon
|
EntityDragonPart |
dragonPartBody
The body bounding box of a dragon
|
EntityDragonPart |
dragonPartHead
The head bounding box of a dragon
|
EntityDragonPart |
dragonPartTail1 |
EntityDragonPart |
dragonPartTail2 |
EntityDragonPart |
dragonPartTail3 |
EntityDragonPart |
dragonPartWing1 |
EntityDragonPart |
dragonPartWing2 |
boolean |
forceNewTarget
Force selecting a new flight target at next tick if set to true.
|
EntityEnderCrystal |
healingEnderCrystal
The current endercrystal that is healing this dragon
|
float |
prevAnimTime
Animation time at previous tick.
|
double[][] |
ringBuffer
Ring buffer array for the last 64 Y-positions and yaw rotations.
|
int |
ringBufferIndex
Index into the ring buffer.
|
boolean |
slowed
Activated if the dragon is flying though obsidian, white stone or bedrock.
|
double |
targetX |
double |
targetY |
double |
targetZ |
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 |
---|
EntityDragon(World worldIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyEntityAttributes() |
protected boolean |
attackDragonFrom(DamageSource source,
float amount)
Provides a way to cause damage to an ender dragon.
|
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
boolean |
attackEntityFromPart(EntityDragonPart dragonPart,
DamageSource source,
float p_70965_3_) |
boolean |
canBeCollidedWith()
Returns true if other Entities should be prevented from moving through this Entity.
|
protected void |
despawnEntity()
Makes the entity despawn if requirements are reached
|
protected void |
entityInit() |
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.
|
double[] |
getMovementOffsets(int p_70974_1_,
float p_70974_2_)
Returns a double[3] array with movement offsets, used to calculate trailing tail/neck positions. [0] = yaw
offset, [1] = y offset, [2] = unused, always 0.
|
Entity[] |
getParts()
Return the Entity parts making up this Entity (currently only for dragons)
|
protected float |
getSoundVolume()
Returns the volume for the sounds this mob makes.
|
World |
getWorld() |
protected void |
onDeathUpdate()
handles entity death timer, experience orb and particle creation
|
void |
onKillCommand()
Called by the /kill command.
|
void |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required.
|
allowLeashing, canAttackClass, canBeSteered, canDespawn, canPickUpLoot, clearLeashed, dropEquipment, dropFewItems, eatGrassBonus, enablePersistence, faceEntity, func_110146_f, func_175448_a, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCanSpawnHere, getCurrentArmor, getDropItem, getEntitySenses, getEquipmentInSlot, getExperiencePoints, getHeldItem, getInventory, getJumpHelper, getLeashed, getLeashedToEntity, getLookHelper, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getNewNavigator, getRenderSizeModifier, getTalkInterval, getVerticalFaceSpeed, handleStatusUpdate, interact, interactFirst, isAIDisabled, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, onInitialSpawn, onUpdate, playLivingSound, readEntityFromNBT, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setNoAI, spawnExplosionParticle, updateAITasks, updateEntityActionState, updateEquipmentIfNeeded, updateLeashedState, writeEntityToNBT
addPotionEffect, addRandomDrop, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, canBePushed, canBreatheUnderwater, canDropLoot, 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, getDeathSound, getEntityAttribute, getFallSoundString, getHealth, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSwingProgress, getTeam, getTotalArmorValue, handleJumpLava, heal, isChild, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, markPotionsDirty, mountEntity, moveEntityWithHeading, onChangedPotionEffect, onDeath, onFinishedPotionEffect, onItemPickup, 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, canTriggerWalking, 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, getEyeHeight, getFlag, getHorizontalFacing, getHoverEvent, getMaxInPortalTime, getMountedYOffset, getName, getNBTTagCompound, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getSplashSound, getSwimSound, 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, onDataWatcherUpdate, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDisplayName, getHealth, getMaxHealth
public double targetX
public double targetY
public double targetZ
public double[][] ringBuffer
public int ringBufferIndex
public EntityDragonPart[] dragonPartArray
public EntityDragonPart dragonPartHead
public EntityDragonPart dragonPartBody
public EntityDragonPart dragonPartTail1
public EntityDragonPart dragonPartTail2
public EntityDragonPart dragonPartTail3
public EntityDragonPart dragonPartWing1
public EntityDragonPart dragonPartWing2
public float prevAnimTime
public float animTime
public boolean forceNewTarget
public boolean slowed
public int deathTicks
public EntityEnderCrystal healingEnderCrystal
public EntityDragon(World worldIn)
protected void applyEntityAttributes()
applyEntityAttributes
in class EntityLiving
protected void entityInit()
entityInit
in class EntityLiving
public double[] getMovementOffsets(int p_70974_1_, float p_70974_2_)
public void onLivingUpdate()
onLivingUpdate
in class EntityLiving
public boolean attackEntityFromPart(EntityDragonPart dragonPart, DamageSource source, float p_70965_3_)
attackEntityFromPart
in interface IEntityMultiPart
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityLivingBase
protected boolean attackDragonFrom(DamageSource source, float amount)
public void onKillCommand()
onKillCommand
in class EntityLivingBase
protected void onDeathUpdate()
onDeathUpdate
in class EntityLivingBase
protected void despawnEntity()
despawnEntity
in class EntityLiving
public Entity[] getParts()
public boolean canBeCollidedWith()
canBeCollidedWith
in class EntityLivingBase
public World getWorld()
getWorld
in interface IEntityMultiPart
protected java.lang.String getLivingSound()
getLivingSound
in class EntityLiving
protected java.lang.String getHurtSound()
getHurtSound
in class EntityLivingBase
protected float getSoundVolume()
getSoundVolume
in class EntityLivingBase