public class EnderDragonEntity extends MobEntity implements IMob
Entity.IMoveCallback
修飾子とタイプ | フィールドと説明 |
---|---|
float |
animTime |
EnderCrystalEntity |
closestEnderCrystal |
int |
deathTicks |
EnderDragonPartEntity |
dragonPartHead |
float |
field_226525_bB_ |
static DataParameter<java.lang.Integer> |
PHASE |
float |
prevAnimTime |
double[][] |
ringBuffer |
int |
ringBufferIndex |
boolean |
slowed |
experienceValue, goalSelector, inventoryArmorDropChances, inventoryHandsDropChances, jumpController, livingSoundTime, lookController, moveController, navigator, targetSelector
activeItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, beeStingRemovalCooldown, brain, dead, deathTime, ENTITY_GRAVITY, hurtTime, idleTime, interpTargetHeadYaw, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, interpTicksHead, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SLEEPING_SIZE, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, world
DUMMY
コンストラクタと説明 |
---|
EnderDragonEntity(EntityType<? extends EnderDragonEntity> type,
World worldIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
addPotionEffect(EffectInstance effectInstanceIn) |
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 |
canBeCollidedWith()
Returns true if other Entities should be prevented from moving through this Entity.
|
protected boolean |
canBeRidden(Entity entityIn) |
void |
checkDespawn()
Makes the entity despawn if requirements are reached
|
Path |
findPath(int startIdx,
int finishIdx,
PathPoint andThen)
Find and return a path among the circles described by pathPoints, or null if the shortest path would just be
directly between the start and finish with no intermediate points.
|
boolean |
func_213403_a(EnderDragonPartEntity p_213403_1_,
DamageSource p_213403_2_,
float p_213403_3_) |
protected SoundEvent |
getAmbientSound() |
EnderDragonPartEntity[] |
getDragonParts() |
DragonFightManager |
getFightManager() |
Vec3d |
getHeadLookVec(float p_184665_1_) |
float |
getHeadPartYOffset(int p_184667_1_,
double[] p_184667_2_,
double[] p_184667_3_) |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
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.
|
int |
getNearestPpIdx(double x,
double y,
double z)
Returns the index into pathPoints of the nearest PathPoint.
|
PhaseManager |
getPhaseManager() |
SoundCategory |
getSoundCategory() |
protected float |
getSoundVolume()
Returns the volume for the sounds this mob makes.
|
int |
initPathPoints()
Generates values for the fields pathPoints, and neighbors, and then returns the nearest pathPoint to the specified
position.
|
boolean |
isNonBoss()
Returns false if this Entity is a boss, true otherwise.
|
void |
livingTick()
Called frequently so the entity can update its state every tick as required.
|
void |
notifyDataManagerChange(DataParameter<?> key) |
void |
onCrystalDestroyed(EnderCrystalEntity crystal,
BlockPos pos,
DamageSource dmgSrc) |
protected void |
onDeathUpdate()
handles entity death timer, experience orb and particle creation
|
void |
onKillCommand()
Called by the /kill command.
|
void |
readAdditional(CompoundNBT compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
protected void |
registerAttributes() |
protected void |
registerData() |
void |
writeAdditional(CompoundNBT compound) |
attackEntityAsMob, baseTick, canAttack, canAttack, canBeLeashedTo, canBeSteered, canDespawn, canEquipItem, canPassengerSteer, canPickUpItem, canPickUpLoot, canSpawn, canSpawnOn, clearLeashed, createBodyController, createNavigator, detachHome, dropLoot, dropSpecialItems, eatGrassBonus, enablePersistence, faceEntity, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropChance, getEntitySenses, getExperiencePoints, getFaceRotSpeed, getHeldEquipment, getHomePosition, getHorizontalFaceSpeed, getItemStackFromSlot, getJumpController, getLeashed, getLeashHolder, getLookController, getLootContextBuilder, getLootTable, getLootTableResourceLocation, getMaxFallHeight, getMaximumHomeDistance, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPathPriority, getPrimaryHand, getSlotForItemStack, getTalkInterval, getVerticalFaceSpeed, handleFluidJump, handleStatusUpdate, isAggressive, isAIDisabled, isDespawnPeaceful, isHolding, isInDaylight, isItemStackInSlot, isLeftHanded, isMaxGroupSize, isNoDespawnRequired, isNotColliding, isServerWorld, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, onInitialSpawn, playAmbientSound, playHurtSound, preventDespawn, processInitialInteract, processInteract, registerGoals, replaceItemInInventory, sendDebugPackets, setAggroed, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setHomePosAndDistance, setItemStackToSlot, setLeashHolder, setLeftHanded, setMoveForward, setMoveStrafing, setMoveVertical, setNoAI, setPathPriority, setVehicleEntityId, shouldExchangeEquipment, spawnExplosionParticle, startRiding, tick, updateAITasks, updateDistance, updateEntityActionState, updateEquipmentIfNeeded, updateLeashedState, updateMovementGoalFlags
applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attemptTeleport, blockUsingShield, canAttack, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, constructKnockBackVector, createBrain, createSpawnPacket, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, determineNextAir, dropInventory, findAmmo, frostWalk, func_213343_cS, func_225508_e_, func_226292_a_, func_226293_b_, func_226294_cV_, func_226296_dJ_, func_226298_f_, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributes, getBedDirection, getBedPosition, getBeeStingCount, getBlockState, getBrain, getCapability, getCombatTracker, getCreatureAttribute, getDeathSound, getDrinkSound, getEatSound, getEyeHeight, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSize, getSoundPitch, getStandingEyeHeight, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidSneak, hasItemInSlot, heal, isActiveItemStackBlocking, isActualySwimming, isAlive, isChild, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPotionActive, isPotionApplicable, isSleeping, isSpinAttacking, jump, knockBack, lookAt, markPotionsDirty, markVelocityChanged, onChangedPotionEffect, onDeath, onFinishedPotionEffect, onFoodEaten, onItemPickup, onItemUseFinish, onLivingFall, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, playFallSound, remove, removeActivePotionEffect, removePotionEffect, resetActiveHand, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setArrowCountInEntity, setBedPosition, setBeeStingCount, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, spawnDrops, spinAttack, startSleeping, startSpinAttack, stopActiveHand, stopRiding, swingArm, travel, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRidden, updateSpinAttack, wakeUp
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, awardKillScore, calculateUpVector, canBeAttackedWithItem, canExplosionDestroyBlock, canFitPassenger, canRenderOnFire, canSwim, canTrample, canTriggerWalking, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, func_225513_by_, func_225514_a_, func_226265_a_, func_226266_a_, func_226276_cg_, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxInPortalTime, getMirroredYaw, getMotion, getMountedYOffset, getName, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getScoreboardName, getServer, getSpeedFactor, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, getYOffset, handleFluidAcceleration, handlePistonMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isShiftKeyDown, isSilent, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, makeFlySound, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillEntity, onRemovedFromWorld, onStruckByLightning, pick, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setInLava, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, teleportKeepLoaded, toString, updatePassenger, updatePortal, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability
public static final DataParameter<java.lang.Integer> PHASE
public final double[][] ringBuffer
public int ringBufferIndex
public final EnderDragonPartEntity dragonPartHead
public float prevAnimTime
public float animTime
public boolean slowed
public int deathTicks
public float field_226525_bB_
@Nullable public EnderCrystalEntity closestEnderCrystal
public EnderDragonEntity(EntityType<? extends EnderDragonEntity> type, World worldIn)
protected void registerAttributes()
registerAttributes
クラス内 MobEntity
protected void registerData()
registerData
クラス内 MobEntity
public double[] getMovementOffsets(int p_70974_1_, float p_70974_2_)
public void livingTick()
livingTick
クラス内 MobEntity
public boolean func_213403_a(EnderDragonPartEntity p_213403_1_, DamageSource p_213403_2_, float p_213403_3_)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
クラス内 LivingEntity
protected boolean attackDragonFrom(DamageSource source, float amount)
public void onKillCommand()
onKillCommand
クラス内 LivingEntity
protected void onDeathUpdate()
onDeathUpdate
クラス内 LivingEntity
public int initPathPoints()
public int getNearestPpIdx(double x, double y, double z)
@Nullable public Path findPath(int startIdx, int finishIdx, @Nullable PathPoint andThen)
public void writeAdditional(CompoundNBT compound)
writeAdditional
クラス内 MobEntity
public void readAdditional(CompoundNBT compound)
readAdditional
クラス内 MobEntity
public void checkDespawn()
checkDespawn
クラス内 MobEntity
public EnderDragonPartEntity[] getDragonParts()
public boolean canBeCollidedWith()
canBeCollidedWith
クラス内 LivingEntity
public SoundCategory getSoundCategory()
getSoundCategory
クラス内 Entity
protected SoundEvent getAmbientSound()
getAmbientSound
クラス内 MobEntity
protected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound
クラス内 LivingEntity
protected float getSoundVolume()
getSoundVolume
クラス内 LivingEntity
public float getHeadPartYOffset(int p_184667_1_, double[] p_184667_2_, double[] p_184667_3_)
public Vec3d getHeadLookVec(float p_184665_1_)
public void onCrystalDestroyed(EnderCrystalEntity crystal, BlockPos pos, DamageSource dmgSrc)
public void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange
クラス内 LivingEntity
public PhaseManager getPhaseManager()
@Nullable public DragonFightManager getFightManager()
public boolean addPotionEffect(EffectInstance effectInstanceIn)
addPotionEffect
クラス内 LivingEntity
protected boolean canBeRidden(Entity entityIn)
canBeRidden
クラス内 Entity