接口 ExplosiveMinecart
- 所有超级接口:
CommandSender,Entity,Explosive,Metadatable,Minecart,Nameable,Permissible,PersistentDataHolder,ServerOperator,Vehicle
代表TNT矿车,可以被引爆.
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明voidexplode()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.从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage从接口继承的方法 org.bukkit.entity.Entity
addPassenger, 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, teleport从接口继承的方法 org.bukkit.entity.Explosive
getYield, isIncendiary, setIsIncendiary, setYield从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata从接口继承的方法 org.bukkit.entity.Minecart
getDamage, getDerailedVelocityMod, getDisplayBlock, getDisplayBlockData, getDisplayBlockOffset, getFlyingVelocityMod, getMaxSpeed, isSlowWhenEmpty, setDamage, setDerailedVelocityMod, setDisplayBlock, setDisplayBlockData, setDisplayBlockOffset, setFlyingVelocityMod, setMaxSpeed, setSlowWhenEmpty从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment从接口继承的方法 org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp从接口继承的方法 org.bukkit.entity.Vehicle
getVelocity, setVelocity
-
方法详细资料
-
setFuseTicks
void 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.- 参数:
ticks- the ticks
-
getFuseTicks
int getFuseTicks()Get the fuse ticks of this minecart. If the fuse ticks reach 0, the minecart will explode.- 返回:
- the fuse ticks, or -1 if this minecart's fuse has not yet been ignited
-
getExplosionSpeedFactor
float getExplosionSpeedFactor()Gets the factor by which explosion yield increases based on Minecart speed.- 返回:
- increase factor
-
setExplosionSpeedFactor
void setExplosionSpeedFactor(float factor) Sets the factor by which explosion yield increases based on Minecart speed.- 参数:
factor- new factor
-
ignite
void ignite()Ignite this minecart's fuse naturally. -
isIgnited
boolean isIgnited()Check whether or not this minecart's fuse has been ignited.- 返回:
- true if ignited, false otherwise
-
explode
void explode()Immediately explode this minecart with the power assumed by its current movement. -
explode
void explode(double power) Immediately explode this minecart with the given power.- 参数:
power- the power to use. Must be positive and cannot exceed 5.0
-