Package net.glowstone.entity
Class GlowAreaEffectCloud
java.lang.Object
net.glowstone.entity.GlowEntity
net.glowstone.entity.GlowAreaEffectCloud
- 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.AreaEffectCloud
,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
ConstructorDescriptionGlowAreaEffectCloud
(org.bukkit.Location location) Creates an entity and adds it to the specified world. -
Method Summary
Modifier and TypeMethodDescriptionboolean
addCustomEffect
(org.bukkit.potion.PotionEffect potionEffect, boolean overwrite) void
List<com.flowpowered.network.Message>
Creates a list ofMessage
s which can be sent to a client to spawn this entity.org.bukkit.potion.PotionData
org.bukkit.Color
getColor()
List<org.bukkit.potion.PotionEffect>
int
int
org.bukkit.Particle
float
float
float
int
org.bukkit.projectiles.ProjectileSource
int
boolean
hasCustomEffect
(org.bukkit.potion.PotionEffectType potionEffectType) boolean
void
pulse()
Called every game cycle.boolean
removeCustomEffect
(org.bukkit.potion.PotionEffectType potionEffectType) void
setBasePotionData
(org.bukkit.potion.PotionData basePotionData) void
setColor
(org.bukkit.Color color) void
setDuration
(int duration) void
setDurationOnUse
(int durationOnUse) <T> void
setParticle
(@NotNull org.bukkit.Particle particle, T data) void
setParticle
(org.bukkit.Particle particle) void
setRadius
(float radius) void
setRadiusOnUse
(float radiusOnUse) void
setRadiusPerTick
(float radiusPerTick) void
setReapplicationDelay
(int reapplicationDelay) void
setSource
(org.bukkit.projectiles.ProjectileSource source) void
setWaitTime
(int waitTime) Methods inherited from class net.glowstone.entity.GlowEntity
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, createUpdateMessage, customName, customName, damage, damage, damage, damage, 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, 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, shouldSave, 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
-
GlowAreaEffectCloud
public GlowAreaEffectCloud(org.bukkit.Location location) Creates an entity and adds it to the specified world.- Parameters:
location
- The location of the entity.
-
-
Method Details
-
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 classGlowEntity
-
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.
-
setParticle
public <T> void setParticle(@NotNull @NotNull org.bukkit.Particle particle, @Nullable T data) - Specified by:
setParticle
in interfaceorg.bukkit.entity.AreaEffectCloud
-
hasCustomEffects
public boolean hasCustomEffects()- Specified by:
hasCustomEffects
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getCustomEffects
- Specified by:
getCustomEffects
in interfaceorg.bukkit.entity.AreaEffectCloud
-
addCustomEffect
public boolean addCustomEffect(org.bukkit.potion.PotionEffect potionEffect, boolean overwrite) - Specified by:
addCustomEffect
in interfaceorg.bukkit.entity.AreaEffectCloud
-
removeCustomEffect
public boolean removeCustomEffect(org.bukkit.potion.PotionEffectType potionEffectType) - Specified by:
removeCustomEffect
in interfaceorg.bukkit.entity.AreaEffectCloud
-
hasCustomEffect
public boolean hasCustomEffect(org.bukkit.potion.PotionEffectType potionEffectType) - Specified by:
hasCustomEffect
in interfaceorg.bukkit.entity.AreaEffectCloud
-
clearCustomEffects
public void clearCustomEffects()- Specified by:
clearCustomEffects
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getDuration
public int getDuration()- Specified by:
getDuration
in interfaceorg.bukkit.entity.AreaEffectCloud
-
setDuration
public void setDuration(int duration) - Specified by:
setDuration
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getWaitTime
public int getWaitTime()- Specified by:
getWaitTime
in interfaceorg.bukkit.entity.AreaEffectCloud
-
setWaitTime
public void setWaitTime(int waitTime) - Specified by:
setWaitTime
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getReapplicationDelay
public int getReapplicationDelay()- Specified by:
getReapplicationDelay
in interfaceorg.bukkit.entity.AreaEffectCloud
-
setReapplicationDelay
public void setReapplicationDelay(int reapplicationDelay) - Specified by:
setReapplicationDelay
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getDurationOnUse
public int getDurationOnUse()- Specified by:
getDurationOnUse
in interfaceorg.bukkit.entity.AreaEffectCloud
-
setDurationOnUse
public void setDurationOnUse(int durationOnUse) - Specified by:
setDurationOnUse
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getRadius
public float getRadius()- Specified by:
getRadius
in interfaceorg.bukkit.entity.AreaEffectCloud
-
setRadius
public void setRadius(float radius) - Specified by:
setRadius
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getRadiusOnUse
public float getRadiusOnUse()- Specified by:
getRadiusOnUse
in interfaceorg.bukkit.entity.AreaEffectCloud
-
setRadiusOnUse
public void setRadiusOnUse(float radiusOnUse) - Specified by:
setRadiusOnUse
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getRadiusPerTick
public float getRadiusPerTick()- Specified by:
getRadiusPerTick
in interfaceorg.bukkit.entity.AreaEffectCloud
-
setRadiusPerTick
public void setRadiusPerTick(float radiusPerTick) - Specified by:
setRadiusPerTick
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getParticle
public org.bukkit.Particle getParticle()- Specified by:
getParticle
in interfaceorg.bukkit.entity.AreaEffectCloud
-
setParticle
public void setParticle(org.bukkit.Particle particle) - Specified by:
setParticle
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getBasePotionData
public org.bukkit.potion.PotionData getBasePotionData()- Specified by:
getBasePotionData
in interfaceorg.bukkit.entity.AreaEffectCloud
-
setBasePotionData
public void setBasePotionData(org.bukkit.potion.PotionData basePotionData) - Specified by:
setBasePotionData
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getSource
public org.bukkit.projectiles.ProjectileSource getSource()- Specified by:
getSource
in interfaceorg.bukkit.entity.AreaEffectCloud
-
setSource
public void setSource(org.bukkit.projectiles.ProjectileSource source) - Specified by:
setSource
in interfaceorg.bukkit.entity.AreaEffectCloud
-
getColor
public org.bukkit.Color getColor()- Specified by:
getColor
in interfaceorg.bukkit.entity.AreaEffectCloud
-
setColor
public void setColor(org.bukkit.Color color) - Specified by:
setColor
in interfaceorg.bukkit.entity.AreaEffectCloud
-