public class GlowLightningStrike extends GlowWeather implements org.bukkit.entity.LightningStrike
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 and Description |
---|
GlowLightningStrike(org.bukkit.Location location) |
GlowLightningStrike(org.bukkit.Location location,
boolean effect,
boolean isSilent)
Creates a lightning strike.
|
Modifier and Type | Method and Description |
---|---|
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Message s which can be sent to a client to spawn this entity. |
List<com.flowpowered.network.Message> |
createUpdateMessage(GlowSession session)
Creates a
Message which can be sent to a client to update this entity. |
List<org.bukkit.entity.Entity> |
getNearbyEntities(double x,
double y,
double z) |
org.bukkit.entity.EntityType |
getType() |
boolean |
isEffect()
Whether the lightning strike is just for effect.
|
void |
pulse()
Called every game cycle.
|
org.bukkit.entity.LightningStrike.Spigot |
spigot() |
shouldSave
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, damage, damage, damage, damage, eject, entityInteract, equals, fromMobSpawner, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getName, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isRemoved, isSilent, isTeleported, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, pulsePhysics, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, reset, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOnGround, setOp, setPassenger, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
public GlowLightningStrike(org.bukkit.Location location)
public GlowLightningStrike(org.bukkit.Location location, boolean effect, boolean isSilent)
location
- the location to strikeeffect
- true if this lightning strike doesn't damage entities or start firesisSilent
- true to suppress the sound effectpublic org.bukkit.entity.EntityType getType()
getType
in interface org.bukkit.entity.Entity
getType
in class GlowWeather
public void pulse()
GlowEntity
pulse
in class GlowEntity
public List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntity
Message
s which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage
in class GlowEntity
public List<com.flowpowered.network.Message> createUpdateMessage(GlowSession session)
GlowEntity
Message
which can be sent to a client to update this entity.createUpdateMessage
in class GlowEntity
session
- Session to update this entity forpublic List<org.bukkit.entity.Entity> getNearbyEntities(double x, double y, double z)
getNearbyEntities
in interface org.bukkit.entity.Entity
getNearbyEntities
in class GlowEntity
public org.bukkit.entity.LightningStrike.Spigot spigot()
spigot
in interface org.bukkit.command.CommandSender
spigot
in interface org.bukkit.entity.Entity
spigot
in interface org.bukkit.entity.LightningStrike
spigot
in class GlowEntity
public boolean isEffect()
isEffect
in interface org.bukkit.entity.LightningStrike
Copyright © 2021. All rights reserved.