Package net.glowstone.entity.monster
Class GlowWither
- All Implemented Interfaces:
com.destroystokyo.paper.entity.RangedEntity
,net.kyori.adventure.audience.Audience
,net.kyori.adventure.pointer.Pointered
,net.kyori.adventure.sound.Sound.Emitter
,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>
,org.bukkit.attribute.Attributable
,org.bukkit.command.CommandSender
,org.bukkit.entity.Boss
,org.bukkit.entity.Creature
,org.bukkit.entity.Damageable
,org.bukkit.entity.Entity
,org.bukkit.entity.LivingEntity
,org.bukkit.entity.Mob
,org.bukkit.entity.Monster
,org.bukkit.entity.Wither
,org.bukkit.loot.Lootable
,org.bukkit.metadata.Metadatable
,org.bukkit.Nameable
,org.bukkit.permissions.Permissible
,org.bukkit.permissions.ServerOperator
,org.bukkit.persistence.PersistentDataHolder
,org.bukkit.projectiles.ProjectileSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot
Nested classes/interfaces inherited from interface org.bukkit.entity.Wither
org.bukkit.entity.Wither.Head
-
Field Summary
Fields inherited from class net.glowstone.entity.GlowLivingEntity
deathTicks, health, maxHealth, movement, speed, taskManager
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 TypeMethodDescriptionboolean
void
damage
(double amount, org.bukkit.entity.Entity source, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) protected org.bukkit.Sound
Get the ambient sound this entity makes randomly, or null for silence.org.bukkit.entity.Entity
protected org.bukkit.Sound
Get the death sound of this entity, or null for silence.protected org.bukkit.Sound
Get the hurt sound of this entity, or null for silence.int
org.bukkit.entity.Entity
org.bukkit.entity.Entity
@Nullable org.bukkit.entity.LivingEntity
getTarget
(@NotNull org.bukkit.entity.Wither.Head head) boolean
boolean
isUndead()
Get whether or not this entity is undead.void
pulse()
Called every game cycle.void
rangedAttack
(org.bukkit.entity.LivingEntity target, float charge) void
setCanTravelThroughPortals
(boolean canTravelThroughPortals) void
setCenterTarget
(org.bukkit.entity.Entity centerTarget) Sets the center target.void
setCharged
(boolean charged) void
setChargingAttack
(boolean raiseHands) void
setInvulnerableTicks
(int invulnerableTicks) void
setLeftTarget
(org.bukkit.entity.Entity leftTarget) Sets the left target.void
setRightTarget
(org.bukkit.entity.Entity rightTarget) Sets the right target.void
setTarget
(@NotNull org.bukkit.entity.Wither.Head head, @Nullable org.bukkit.entity.LivingEntity target) Methods inherited from class net.glowstone.entity.monster.GlowBoss
addBarToPlayer, getBossBar, remove, teleport
Methods inherited from class net.glowstone.entity.monster.GlowMonster
canDespawnImmediately
Methods inherited from class net.glowstone.entity.GlowCreature
createSpawnMessage, getLootTable, getPathfinder, getSeed, getTarget, getType, isInDaylight, setLootTable, setSeed, setTarget
Methods inherited from class net.glowstone.entity.GlowMob
getHeadRotationSpeed, getMaxHeadPitch, isAware, isLeftHanded, lookAt, lookAt, lookAt, lookAt, lookAt, lookAt, setAware, setLeftHanded
Methods inherited from class net.glowstone.entity.GlowLivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, canTakeDamage, clearActiveItem, clearActivePotionEffects, createUpdateMessage, entityInteract, getAbsorptionAmount, getActiveItem, getActivePotionEffects, getAmbientDelay, getArrowCooldown, getArrowsInBody, getArrowsStuck, getAttribute, getAttributeManager, getBeeStingerCooldown, getBeeStingersInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathTicks, getEquipment, getEquipmentMonitor, getEyeHeight, getEyeHeight, getEyeLocation, getFreezeTicks, getHandRaised, getHandRaisedTime, getHeadYaw, getHealth, getHurtDirection, getItemUseRemainingTime, getKiller, getLastDamage, getLastDamager, getLastTwoTargetBlocks, getLineOfSight, getMaxFreezeTicks, getMaxHealth, getMaximumAir, getMaximumNoDamageTicks, getMemory, getMovement, getNoDamageTicks, getPlayerDamageTick, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getSoundPitch, getSoundVolume, getSpawnCategory, getSpeed, getState, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockInfo, getTargetEntity, getTargetEntityInfo, getTaskManager, getTrackedPlayers, getVelocityFromMovement, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isArthropod, isClimbing, isCollidable, isFallFlying, isFreezeTickingLocked, isFrozen, isGliding, isHandRaised, isInPowderedSnow, isInvisible, isJumping, isRiptiding, isSleeping, isSwimming, isVisualFire, isWithinSolidBlock, jump, launchProjectile, launchProjectile, launchProjectile, launchProjectile, lockFreezeTicks, name, playAnimation, playPickupItemAnimation, pulsePhysics, rayTraceBlocks, rayTraceBlocks, registerAttribute, removePotionEffect, reset, resetMaxHealth, setAbsorptionAmount, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setBeeStingerCooldown, setBeeStingersInBody, setCanPickupItems, setCollidable, setFallFlying, setFreezeTicks, setGliding, setHeadYaw, setHealth, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLastDamager, setMaxHealth, setMaximumAir, setMaximumNoDamageTicks, setMemory, setMovement, setNoDamageTicks, setOnGround, setPlayerDamageTick, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSpeed, setState, setSwimming, setVisualFire, spawnAt, swingMainHand, swingOffHand, teamDisplayName, tryUseTotem, updatePotionEffectsMetadata
Methods inherited from class net.glowstone.entity.GlowEntity
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, customName, customName, damage, damage, damage, eject, 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, 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, recalculatePermissions, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOp, setPassenger, setPersistent, setPortalCooldown, setRawLocation, setRawLocation, setRotation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, shouldSave, spigot, 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 org.bukkit.attribute.Attributable
getAttribute, registerAttribute
Methods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSound
Methods inherited from interface org.bukkit.entity.Boss
getBossBar
Methods inherited from interface org.bukkit.command.CommandSender
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
Methods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, clearActiveItem, getActiveItem, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getBeeStingerCooldown, getBeeStingersInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaised, getHandRaisedTime, getHurtDirection, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isHandRaised, isInvisible, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, playPickupItemAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setBeeStingerCooldown, setBeeStingersInBody, setCanPickupItems, setCollidable, setGliding, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, swingMainHand, swingOffHand
Methods inherited from interface org.bukkit.loot.Lootable
clearLootTable, getLootTable, getSeed, hasLootTable, setLootTable, setLootTable, setSeed
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.entity.Mob
getEquipment, getHeadRotationSpeed, getMaxHeadPitch, getPathfinder, getTarget, isAware, isInDaylight, isLeftHanded, lookAt, lookAt, lookAt, lookAt, lookAt, lookAt, setAware, setLeftHanded
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, permissionValue, permissionValue, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
Methods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
Methods inherited from interface com.destroystokyo.paper.entity.RangedEntity
isChargingAttack
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
Methods inherited from interface org.bukkit.entity.Wither
setTarget
-
Constructor Details
-
GlowWither
public GlowWither(org.bukkit.Location loc) Creates a wither.- Parameters:
loc
- the location
-
-
Method Details
-
damage
public void damage(double amount, org.bukkit.entity.Entity source, @NotNull org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) - Overrides:
damage
in classGlowLivingEntity
-
setTarget
public void setTarget(@NotNull @NotNull org.bukkit.entity.Wither.Head head, @Nullable @Nullable org.bukkit.entity.LivingEntity target) - Specified by:
setTarget
in interfaceorg.bukkit.entity.Wither
-
getTarget
@Nullable public @Nullable org.bukkit.entity.LivingEntity getTarget(@NotNull @NotNull org.bukkit.entity.Wither.Head head) - Specified by:
getTarget
in interfaceorg.bukkit.entity.Wither
-
setInvulnerableTicks
public void setInvulnerableTicks(int invulnerableTicks) - Specified by:
setInvulnerableTicks
in interfaceorg.bukkit.entity.Wither
-
setCenterTarget
public void setCenterTarget(org.bukkit.entity.Entity centerTarget) Sets the center target.- Parameters:
centerTarget
- the new center target
-
setLeftTarget
public void setLeftTarget(org.bukkit.entity.Entity leftTarget) Sets the left target.- Parameters:
leftTarget
- the new left target
-
setRightTarget
public void setRightTarget(org.bukkit.entity.Entity rightTarget) Sets the right target.- Parameters:
rightTarget
- the new right target
-
pulse
public void pulse()Description copied from class:GlowEntity
Called every game cycle. Subclasses should implement this to implement periodic functionality e.g. mob AI.- Overrides:
pulse
in classGlowMonster
-
getHurtSound
protected org.bukkit.Sound getHurtSound()Description copied from class:GlowLivingEntity
Get the hurt sound of this entity, or null for silence.- Overrides:
getHurtSound
in classGlowLivingEntity
- Returns:
- the hurt sound if available
-
getDeathSound
protected org.bukkit.Sound getDeathSound()Description copied from class:GlowLivingEntity
Get the death sound of this entity, or null for silence.- Overrides:
getDeathSound
in classGlowLivingEntity
- Returns:
- the death sound if available
-
getAmbientSound
protected org.bukkit.Sound getAmbientSound()Description copied from class:GlowLivingEntity
Get the ambient sound this entity makes randomly, or null for silence.- Overrides:
getAmbientSound
in classGlowLivingEntity
- Returns:
- the ambient sound if available
-
isUndead
public boolean isUndead()Description copied from class:GlowLivingEntity
Get whether or not this entity is undead.- Overrides:
isUndead
in classGlowLivingEntity
- Returns:
- true if this entity is undead, false otherwise
-
rangedAttack
public void rangedAttack(org.bukkit.entity.LivingEntity target, float charge) - Specified by:
rangedAttack
in interfacecom.destroystokyo.paper.entity.RangedEntity
-
setChargingAttack
public void setChargingAttack(boolean raiseHands) - Specified by:
setChargingAttack
in interfacecom.destroystokyo.paper.entity.RangedEntity
-
canTravelThroughPortals
public boolean canTravelThroughPortals()- Specified by:
canTravelThroughPortals
in interfaceorg.bukkit.entity.Wither
-
getInvulnerableTicks
public int getInvulnerableTicks()- Specified by:
getInvulnerableTicks
in interfaceorg.bukkit.entity.Wither
-
getCenterTarget
public org.bukkit.entity.Entity getCenterTarget() -
getLeftTarget
public org.bukkit.entity.Entity getLeftTarget() -
getRightTarget
public org.bukkit.entity.Entity getRightTarget() -
isCharged
public boolean isCharged()- Specified by:
isCharged
in interfaceorg.bukkit.entity.Wither
-
setCharged
public void setCharged(boolean charged) -
setCanTravelThroughPortals
public void setCanTravelThroughPortals(boolean canTravelThroughPortals) - Specified by:
setCanTravelThroughPortals
in interfaceorg.bukkit.entity.Wither
-