Package org.bukkit.entity
Interface Firework
- All Superinterfaces:
CommandSender
,Entity
,Metadatable
,Permissible
,ServerOperator
public interface Firework extends Entity
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description void
detonate()
Cause this firework to explode at earliest opportunity, as if it has no remaining fuse.FireworkMeta
getFireworkMeta()
Get a copy of the fireworks metavoid
setFireworkMeta(FireworkMeta meta)
Apply the provided meta to the fireworksMethods inherited from interface org.bukkit.entity.Entity
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
-
Method Details
-
getFireworkMeta
FireworkMeta getFireworkMeta()Get a copy of the fireworks meta- Returns:
- A copy of the current Firework meta
-
setFireworkMeta
Apply the provided meta to the fireworks- Parameters:
meta
- The FireworkMeta to apply
-
detonate
void detonate()Cause this firework to explode at earliest opportunity, as if it has no remaining fuse.
-