public interface LightningStrike extends Entity
Modifier and Type | Interface and Description |
---|---|
static class |
LightningStrike.Spigot |
Modifier and Type | Method and Description |
---|---|
int |
getFlashCount()
Returns the amount of flash iterations that will be done before the lightning dies.
|
int |
getLifeTicks()
Returns the amount of ticks the current flash will do damage for.
|
boolean |
isEffect()
Returns whether the strike is an effect that does no damage.
|
void |
setFlashCount(int flashes)
Sets the amount of life iterations that will be done before the lightning dies.
|
void |
setLifeTicks(int lifeTicks)
Sets the amount of ticks the current flash will do damage/fire for.
|
@NotNull LightningStrike.Spigot |
spigot() |
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, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage
audience, audience, clearTitle, empty, 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, toAudience
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
customName, customName, getCustomName, setCustomName
getPersistentDataContainer
boolean isEffect()
@NotNull @NotNull LightningStrike.Spigot spigot()
spigot
in interface CommandSender
spigot
in interface Entity
int getFlashCount()
for how long the current flash will last
void setFlashCount(int flashes)
flashes
- amount of iterations that will be done before the lightning dies, must to be a positive numberint getLifeTicks()
void setLifeTicks(int lifeTicks)
lifeTicks
- ticks the current flash will do damage forCopyright © 2021. All rights reserved.