Attributable
, Boss
, CommandSender
, ComplexLivingEntity
, Damageable
, Entity
, LivingEntity
, Metadatable
, Nameable
, Permissible
, PersistentDataHolder
, ProjectileSource
, ServerOperator
public interface EnderDragon extends ComplexLivingEntity, Boss
Modifier and Type | Interface | Description |
---|---|---|
static class |
EnderDragon.Phase |
Represents a phase or action that an Ender Dragon can perform.
|
Entity.Spigot
Modifier and Type | Method | Description |
---|---|---|
int |
getDeathAnimationTicks() |
Get the current time in ticks relative to the start of this dragon's
death animation.
|
@Nullable DragonBattle |
getDragonBattle() |
Get the
DragonBattle associated with this EnderDragon. |
@NotNull EnderDragon.Phase |
getPhase() |
Gets the current phase that the dragon is performing.
|
void |
setPhase(@NotNull EnderDragon.Phase phase) |
Sets the next phase for the dragon to perform.
|
getAttribute
getBossBar
getName, sendMessage, sendMessage
getParts
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
addPotionEffect, addPotionEffect, addPotionEffects, attack, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
getMetadata, hasMetadata, removeMetadata, setMetadata
getCustomName, setCustomName
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
getPersistentDataContainer
launchProjectile, launchProjectile
isOp, setOp
@NotNull @NotNull EnderDragon.Phase getPhase()
void setPhase(@NotNull @NotNull EnderDragon.Phase phase)
phase
- the next phase@Nullable @Nullable DragonBattle getDragonBattle()
DragonBattle
associated with this EnderDragon.
This will return null if the EnderDragon is not in the End dimension.World.getEnderDragonBattle()
int getDeathAnimationTicks()
Copyright © 2020. All rights reserved.