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, teleportAsyncgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageaudience, 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, toAudienceaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpcustomName, customName, getCustomName, setCustomNamegetPersistentDataContainerboolean isEffect()
@NotNull @NotNull LightningStrike.Spigot spigot()
spigot in interface CommandSenderspigot in interface Entityint getFlashCount()
for how long the current flash will lastvoid 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 © 2022. All rights reserved.