Package org.bukkit.entity.minecart
Interface ExplosiveMinecart
- All Superinterfaces:
- CommandSender,- Entity,- Explosive,- Metadatable,- Minecart,- Nameable,- Permissible,- PersistentDataHolder,- ServerOperator,- Vehicle
Represents a Minecart with TNT inside it that can explode when triggered.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionvoidexplode()Immediately explode this minecart with the power assumed by its current movement.voidexplode(double power) Immediately explode this minecart with the given power.floatGets the factor by which explosion yield increases based on Minecart speed.intGet the fuse ticks of this minecart.voidignite()Ignite this minecart's fuse naturally.booleanCheck whether or not this minecart's fuse has been ignited.voidsetExplosionSpeedFactor(float factor) Sets the factor by which explosion yield increases based on Minecart speed.voidsetFuseTicks(int ticks) Set the fuse ticks of this minecart.Methods inherited from interface org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.entity.ExplosivegetYield, isIncendiary, setIsIncendiary, setYieldMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.entity.MinecartgetDamage, getDerailedVelocityMod, getDisplayBlock, getDisplayBlockData, getDisplayBlockOffset, getFlyingVelocityMod, getMaxSpeed, isSlowWhenEmpty, setDamage, setDerailedVelocityMod, setDisplayBlock, setDisplayBlockData, setDisplayBlockOffset, setFlyingVelocityMod, setMaxSpeed, setSlowWhenEmptyMethods inherited from interface org.bukkit.NameablegetCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOpMethods inherited from interface org.bukkit.entity.VehiclegetVelocity, setVelocity
- 
Method Details- 
setFuseTicksvoid setFuseTicks(int ticks) Set the fuse ticks of this minecart. If the fuse ticks are set to a non-zero value, this will ignite the explosive.- Parameters:
- ticks- the ticks
 
- 
getFuseTicksint getFuseTicks()Get the fuse ticks of this minecart. If the fuse ticks reach 0, the minecart will explode.- Returns:
- the fuse ticks, or -1 if this minecart's fuse has not yet been ignited
 
- 
getExplosionSpeedFactorfloat getExplosionSpeedFactor()Gets the factor by which explosion yield increases based on Minecart speed.- Returns:
- increase factor
 
- 
setExplosionSpeedFactorvoid setExplosionSpeedFactor(float factor) Sets the factor by which explosion yield increases based on Minecart speed.- Parameters:
- factor- new factor
 
- 
ignitevoid ignite()Ignite this minecart's fuse naturally.
- 
isIgnitedboolean isIgnited()Check whether or not this minecart's fuse has been ignited.- Returns:
- true if ignited, false otherwise
 
- 
explodevoid explode()Immediately explode this minecart with the power assumed by its current movement.
- 
explodevoid explode(double power) Immediately explode this minecart with the given power.- Parameters:
- power- the power to use. Must be positive and cannot exceed 5.0
 
 
-