Class GlowEnderDragonPart
java.lang.Object
net.glowstone.entity.GlowEntity
net.glowstone.entity.monster.complex.GlowEnderDragonPart
- All Implemented Interfaces:
net.kyori.adventure.audience.Audience
,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>
,org.bukkit.command.CommandSender
,org.bukkit.entity.ComplexEntityPart
,org.bukkit.entity.Damageable
,org.bukkit.entity.EnderDragonPart
,org.bukkit.entity.Entity
,org.bukkit.metadata.Metadatable
,org.bukkit.Nameable
,org.bukkit.permissions.Permissible
,org.bukkit.permissions.ServerOperator
,org.bukkit.persistence.PersistentDataHolder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot
-
Field Summary
Fields inherited from class net.glowstone.entity.GlowEntity
active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<com.flowpowered.network.Message>
Creates a list ofMessage
s which can be sent to a client to spawn this entity.void
damage
(double amount) void
damage
(double amount, org.bukkit.entity.Entity source) void
damage
(double amount, org.bukkit.entity.Entity source, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) void
damage
(double amount, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) double
double
double
org.bukkit.entity.EnderDragon
void
void
setAbsorptionAmount
(double absorptionAmount) void
setHealth
(double health) void
setMaxHealth
(double health) boolean
Checks whether this entity should be saved as part of the world.Methods inherited from class net.glowstone.entity.GlowEntity
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, createUpdateMessage, customName, customName, eject, entityInteract, equals, fromMobSpawner, getBoundingBox, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInMaterial, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isRemoved, isSilent, isTeleported, isTicking, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, pulse, pulsePhysics, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, reset, sendMessage, sendMessage, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOnGround, setOp, setPassenger, setPersistent, setPortalCooldown, setRawLocation, setRawLocation, setRotation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound
Methods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, 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, teleportAsync, teleportAsync
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomName
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Constructor Details
-
GlowEnderDragonPart
public GlowEnderDragonPart(org.bukkit.entity.EnderDragon parent)
-
-
Method Details
-
createSpawnMessage
Description copied from class:GlowEntity
Creates a list ofMessage
s which can be sent to a client to spawn this entity. Implementations in concrete subclasses may return a shallowly immutable list.- Specified by:
createSpawnMessage
in classGlowEntity
- Returns:
- A list of messages which can spawn this entity.
-
damage
public void damage(double amount) - Specified by:
damage
in interfaceorg.bukkit.entity.Damageable
- Overrides:
damage
in classGlowEntity
-
damage
public void damage(double amount, org.bukkit.entity.Entity source) - Specified by:
damage
in interfaceorg.bukkit.entity.Damageable
- Overrides:
damage
in classGlowEntity
-
damage
public void damage(double amount, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) - Specified by:
damage
in interfaceorg.bukkit.entity.Damageable
- Overrides:
damage
in classGlowEntity
-
damage
public void damage(double amount, org.bukkit.entity.Entity source, @NotNull org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) - Specified by:
damage
in interfaceorg.bukkit.entity.Damageable
- Overrides:
damage
in classGlowEntity
-
getHealth
public double getHealth()- Specified by:
getHealth
in interfaceorg.bukkit.entity.Damageable
-
setHealth
public void setHealth(double health) - Specified by:
setHealth
in interfaceorg.bukkit.entity.Damageable
-
getMaxHealth
public double getMaxHealth()- Specified by:
getMaxHealth
in interfaceorg.bukkit.entity.Damageable
-
setMaxHealth
public void setMaxHealth(double health) - Specified by:
setMaxHealth
in interfaceorg.bukkit.entity.Damageable
-
resetMaxHealth
public void resetMaxHealth()- Specified by:
resetMaxHealth
in interfaceorg.bukkit.entity.Damageable
-
shouldSave
public boolean shouldSave()Description copied from class:GlowEntity
Checks whether this entity should be saved as part of the world.- Overrides:
shouldSave
in classGlowEntity
- Returns:
- True if the entity should be saved.
-
getAbsorptionAmount
public double getAbsorptionAmount()- Specified by:
getAbsorptionAmount
in interfaceorg.bukkit.entity.Damageable
-
setAbsorptionAmount
public void setAbsorptionAmount(double absorptionAmount) - Specified by:
setAbsorptionAmount
in interfaceorg.bukkit.entity.Damageable
-
getParent
public org.bukkit.entity.EnderDragon getParent()- Specified by:
getParent
in interfaceorg.bukkit.entity.ComplexEntityPart
- Specified by:
getParent
in interfaceorg.bukkit.entity.EnderDragonPart
-