public class GlowFirework extends GlowEntity implements org.bukkit.entity.Firework, Summonable
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 |
|---|
GlowFirework(org.bukkit.Location location) |
GlowFirework(org.bukkit.Location location,
UUID spawningEntity,
org.bukkit.entity.LivingEntity boostedEntity,
org.bukkit.inventory.ItemStack item)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Messages which can be sent to a client to spawn this entity. |
void |
detonate() |
org.bukkit.entity.LivingEntity |
getBoostedEntity() |
org.bukkit.inventory.ItemStack |
getFireworkItem()
Get the underlying firework item.
|
org.bukkit.inventory.meta.FireworkMeta |
getFireworkMeta() |
int |
getLifeTime()
The number of ticks before this fireworks rocket explodes.
|
UUID |
getSpawningEntity() |
org.bukkit.entity.EntityType |
getType() |
void |
pulse()
Called every game cycle.
|
protected void |
pulsePhysics() |
void |
setFireworkItem(org.bukkit.inventory.ItemStack item)
Set the firework item of this firework entity.
|
void |
setFireworkMeta(org.bukkit.inventory.meta.FireworkMeta fireworkMeta) |
void |
setLifeTime(int lifeTime)
The number of ticks before this fireworks rocket explodes.
|
void |
setSpawningEntity(UUID spawningEntity) |
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, createUpdateMessage, 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, getNearbyEntities, 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, 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, shouldSave, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBoxclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, 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, spigot, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessage, sendMessage, sendMessagepublic GlowFirework(org.bukkit.Location location)
public GlowFirework(org.bukkit.Location location,
UUID spawningEntity,
org.bukkit.entity.LivingEntity boostedEntity,
org.bukkit.inventory.ItemStack item)
location - the locationspawningEntity - TODO: document this parameterboostedEntity - TODO: document this parameteritem - the firework rocket as an itempublic org.bukkit.entity.EntityType getType()
getType in interface org.bukkit.entity.EntitygetType in class GlowEntitypublic List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntityMessages which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage in class GlowEntitypublic org.bukkit.inventory.meta.FireworkMeta getFireworkMeta()
getFireworkMeta in interface org.bukkit.entity.Fireworkpublic void setFireworkMeta(org.bukkit.inventory.meta.FireworkMeta fireworkMeta)
setFireworkMeta in interface org.bukkit.entity.Fireworkpublic org.bukkit.inventory.ItemStack getFireworkItem()
public void setFireworkItem(org.bukkit.inventory.ItemStack item)
Material.FIREWORK} was given, a new Firework ItemStack will be created.item - FireWork Item this entity should usepublic void detonate()
detonate in interface org.bukkit.entity.Fireworkpublic void pulse()
GlowEntitypulse in class GlowEntityprotected void pulsePhysics()
pulsePhysics in class GlowEntitypublic UUID getSpawningEntity()
getSpawningEntity in interface org.bukkit.entity.Fireworkpublic void setSpawningEntity(UUID spawningEntity)
public org.bukkit.entity.LivingEntity getBoostedEntity()
getBoostedEntity in interface org.bukkit.entity.Fireworkpublic int getLifeTime()
public void setLifeTime(int lifeTime)
Copyright © 2021. All rights reserved.