Package net.minecraft.entity.boss
Class EntityDragon
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.entity.Entity
-
- net.minecraft.entity.EntityLivingBase
-
- net.minecraft.entity.EntityLiving
-
- net.minecraft.entity.boss.EntityDragon
-
- All Implemented Interfaces:
IBossDisplayData,IEntityMultiPart,IMob,IAnimals,org.teavm.jso.JSObject
public class EntityDragon extends EntityLiving implements IBossDisplayData, IEntityMultiPart, IMob
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.EntityLiving
EntityLiving.SpawnPlacementType
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
Fields Modifier and Type Field Description floatanimTimeintdeathTicksEntityDragonPart[]dragonPartArrayEntityDragonPartdragonPartBodyEntityDragonPartdragonPartHeadEntityDragonPartdragonPartTail1EntityDragonPartdragonPartTail2EntityDragonPartdragonPartTail3EntityDragonPartdragonPartWing1EntityDragonPartdragonPartWing2booleanforceNewTargetEntityEnderCrystalhealingEnderCrystalfloatprevAnimTimedouble[][]ringBuffer+ Ring buffer array for the last 64 Y-positions and yaw rotations.intringBufferIndex+ Index into the ring buffer.booleansloweddoubletargetXdoubletargetYdoubletargetZ-
Fields inherited from class net.minecraft.entity.EntityLiving
equipmentDropChances, experienceValue, livingSoundTime
-
Fields inherited from class net.minecraft.entity.EntityLivingBase
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
-
Fields inherited from class net.minecraft.entity.Entity
addedToChunk, 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, worldObj
-
Fields inherited from interface net.minecraft.entity.monster.IMob
mobSelector, VISIBLE_MOB_SELECTOR
-
-
Constructor Summary
Constructors Constructor Description EntityDragon(World worldIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyEntityAttributes()protected booleanattackDragonFrom(DamageSource source, float amount)+ Provides a way to cause damage to an ender dragon.booleanattackEntityFrom(DamageSource damagesource, float f)+ Called when the entity is attacked.booleanattackEntityFromPart(EntityDragonPart entitydragonpart, DamageSource damagesource, float f)booleancanBeCollidedWith()+ Returns true if other Entities should be prevented from moving through this Entity.protected voiddespawnEntity()+ Makes the entity despawn if requirements are reachedprotected voidentityInit()protected java.lang.StringgetHurtSound()+ Returns the sound this mob makes when it is hurt.protected java.lang.StringgetLivingSound()+ Returns the sound this mob makes while it's alive.double[]getMovementOffsets(int parInt1, float parFloat1)+ Returns a double[3] array with movement offsets, used to calculate trailing tail/neck positions.Entity[]getParts()+ Return the Entity parts making up this Entity (currently only for dragons)protected floatgetSoundVolume()+ Returns the volume for the sounds this mob makes.WorldgetWorld()protected voidonDeathUpdate()+ handles entity death timer, experience orb and particle creationvoidonKillCommand()+ Called by the /kill command.voidonLivingUpdate()+ Called frequently so the entity can update its state every tick as required.-
Methods inherited from class net.minecraft.entity.EntityLiving
allowLeashing, canAttackClass, canBeSteered, canDespawn, canPickUpLoot, clearLeashed, dropEquipment, dropFewItems, eatGrassBonus, enablePersistence, faceEntity, func_110146_f, func_175448_a, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCanSpawnHere, getCurrentArmor, getDropItem, getEquipmentInSlot, getExperiencePoints, getHeldItem, getInventory, getLeashed, getLeashedToEntity, getMaxFallHeight, getMaxSpawnedInChunk, getRenderSizeModifier, getTalkInterval, getVerticalFaceSpeed, handleStatusUpdate, interact, interactFirst, isAIDisabled, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, onInitialSpawn, playLivingSound, readEntityFromNBT, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setNoAI, spawnExplosionParticle, updateAITasks, updateEntityActionState, updateEquipmentIfNeeded, updateLeashedState, writeEntityToNBT
-
Methods inherited from class net.minecraft.entity.EntityLivingBase
addPotionEffect, addRandomDrop, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, canBePushed, canBreatheUnderwater, canDropLoot, 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, 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, loadPluginData, makePluginData, markPotionsDirty, mountEntity, moveEntityWithHeading, onChangedPotionEffect, onDeath, onFinishedPotionEffect, onItemPickup, onNewPotionEffect, onUpdate, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRidden
-
Methods inherited from class net.minecraft.entity.Entity
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canTriggerWalking, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fromNBT, func_181012_aH, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getEyeHeight, getFlag, getHorizontalFacing, getHoverEvent, getMaxInPortalTime, getMountedYOffset, getName, getNBTTagCompound, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getSplashSound, getSwimSound, 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, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toNBT, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraft.entity.boss.IBossDisplayData
getDisplayName, getHealth, getMaxHealth
-
-
-
-
Field Detail
-
targetX
public double targetX
-
targetY
public double targetY
-
targetZ
public double targetZ
-
ringBuffer
public double[][] ringBuffer
+ Ring buffer array for the last 64 Y-positions and yaw rotations. Used to calculate offsets for the animations.
-
ringBufferIndex
public int ringBufferIndex
+ Index into the ring buffer. Incremented once per tick and restarts at 0 once it reaches the end of the buffer.
-
dragonPartArray
public EntityDragonPart[] dragonPartArray
-
dragonPartHead
public EntityDragonPart dragonPartHead
-
dragonPartBody
public EntityDragonPart dragonPartBody
-
dragonPartTail1
public EntityDragonPart dragonPartTail1
-
dragonPartTail2
public EntityDragonPart dragonPartTail2
-
dragonPartTail3
public EntityDragonPart dragonPartTail3
-
dragonPartWing1
public EntityDragonPart dragonPartWing1
-
dragonPartWing2
public EntityDragonPart dragonPartWing2
-
prevAnimTime
public float prevAnimTime
-
animTime
public float animTime
-
forceNewTarget
public boolean forceNewTarget
-
slowed
public boolean slowed
-
deathTicks
public int deathTicks
-
healingEnderCrystal
public EntityEnderCrystal healingEnderCrystal
-
-
Constructor Detail
-
EntityDragon
public EntityDragon(World worldIn)
-
-
Method Detail
-
applyEntityAttributes
protected void applyEntityAttributes()
- Overrides:
applyEntityAttributesin classEntityLiving
-
entityInit
protected void entityInit()
- Overrides:
entityInitin classEntityLiving
-
getMovementOffsets
public double[] getMovementOffsets(int parInt1, float parFloat1)+ 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. Parameters: buffer index offset, partial ticks.
-
onLivingUpdate
public void onLivingUpdate()
+ Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons use this to react to sunlight and start to burn.- Overrides:
onLivingUpdatein classEntityLivingBase
-
attackEntityFromPart
public boolean attackEntityFromPart(EntityDragonPart entitydragonpart, DamageSource damagesource, float f)
- Specified by:
attackEntityFromPartin interfaceIEntityMultiPart
-
attackEntityFrom
public boolean attackEntityFrom(DamageSource damagesource, float f)
+ Called when the entity is attacked.- Overrides:
attackEntityFromin classEntityLivingBase
-
attackDragonFrom
protected boolean attackDragonFrom(DamageSource source, float amount)
+ Provides a way to cause damage to an ender dragon.
-
onKillCommand
public void onKillCommand()
+ Called by the /kill command.- Overrides:
onKillCommandin classEntityLivingBase
-
onDeathUpdate
protected void onDeathUpdate()
+ handles entity death timer, experience orb and particle creation- Overrides:
onDeathUpdatein classEntityLivingBase
-
despawnEntity
protected void despawnEntity()
+ Makes the entity despawn if requirements are reached- Overrides:
despawnEntityin classEntityLiving
-
getParts
public Entity[] getParts()
+ Return the Entity parts making up this Entity (currently only for dragons)
-
canBeCollidedWith
public boolean canBeCollidedWith()
+ Returns true if other Entities should be prevented from moving through this Entity.- Overrides:
canBeCollidedWithin classEntityLivingBase
-
getWorld
public World getWorld()
- Specified by:
getWorldin interfaceIEntityMultiPart
-
getLivingSound
protected java.lang.String getLivingSound()
+ Returns the sound this mob makes while it's alive.- Overrides:
getLivingSoundin classEntityLiving
-
getHurtSound
protected java.lang.String getHurtSound()
+ Returns the sound this mob makes when it is hurt.- Overrides:
getHurtSoundin classEntityLivingBase
-
getSoundVolume
protected float getSoundVolume()
+ Returns the volume for the sounds this mob makes.- Overrides:
getSoundVolumein classEntityLivingBase
-
-