接口 Creeper
- 所有超级接口:
Attributable
,CommandSender
,Creature
,Damageable
,Enemy
,Entity
,LivingEntity
,Lootable
,Metadatable
,Mob
,Monster
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot
-
方法概要
修饰符和类型方法说明void
explode()
使该苦力怕立刻爆炸.int
获得苦力怕的爆炸半径.int
获得苦力怕点燃状态的tick值,此tick值为苦力怕爆炸前点燃状态的维持时间.获取点燃此苦力怕的实体(如存在).int
获得此苦力怕的点燃状态最大tick值, 此tick值为苦力怕爆炸前点燃状态的维持时间.void
ignite()
点燃此苦力怕, 开始其爆炸计时.void
点燃此苦力怕, 开始其爆炸计时.boolean
检查这个苦力怕是否为高压的(触电).void
setExplosionRadius
(int radius) 设置苦力怕的爆炸半径.void
setFuseTicks
(int ticks) 设置苦力怕点燃状态的tick值,此tick值为苦力怕爆炸前点燃状态的维持时间.void
setMaxFuseTicks
(int ticks) 为苦力怕设置点燃tick值, 此tick值为苦力怕爆炸前点燃状态的维持时间.void
setPowered
(boolean value) 设置这个苦力怕的高压状态.从接口继承的方法 org.bukkit.attribute.Attributable
getAttribute
从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
从接口继承的方法 org.bukkit.entity.Damageable
damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
从接口继承的方法 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, getVelocity, 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, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleport
从接口继承的方法 org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, canBreatheUnderwater, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDrinkingSound, getEatingSound, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getHurtSound, getItemInUse, getItemInUseTicks, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setItemInUseTicks, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
从接口继承的方法 org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeed
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 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.projectiles.ProjectileSource
launchProjectile, launchProjectile
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
-
方法详细资料
-
isPowered
boolean isPowered()检查这个苦力怕是否为高压的(触电).原文: Checks if this Creeper is powered (Electrocuted)
- 返回:
- true if 如果苦力怕是高压的则为true
-
setPowered
void setPowered(boolean value) 设置这个苦力怕的高压状态.原文: Sets the Powered status of this Creeper
- 参数:
value
- 新的高压状态
-
setMaxFuseTicks
void setMaxFuseTicks(int ticks) 为苦力怕设置点燃tick值, 此tick值为苦力怕爆炸前点燃状态的维持时间.原文: Set the maximum fuse ticks for this Creeper, where the maximum ticks is the amount of time in which a creeper is allowed to be in the primed state before exploding.
- 参数:
ticks
- 新的点燃状态的最大tick值
-
getMaxFuseTicks
int getMaxFuseTicks()获得此苦力怕的点燃状态最大tick值, 此tick值为苦力怕爆炸前点燃状态的维持时间.原文: Get the maximum fuse ticks for this Creeper, where the maximum ticks is the amount of time in which a creeper is allowed to be in the primed state before exploding.
- 返回:
- 点燃状态的最大tick值
-
setFuseTicks
void setFuseTicks(int ticks) 设置苦力怕点燃状态的tick值,此tick值为苦力怕爆炸前点燃状态的维持时间.原文: Set the fuse ticks for this Creeper, where the ticks is the amount of time in which a creeper has been in the primed state.
- 参数:
ticks
- 新的点燃状态的tick值
-
getFuseTicks
int getFuseTicks()获得苦力怕点燃状态的tick值,此tick值为苦力怕爆炸前点燃状态的维持时间.原文: Get the maximum fuse ticks for this Creeper, where the ticks is the amount of time in which a creeper has been in the primed state.
- 返回:
- 点燃状态的tick值
-
setExplosionRadius
void setExplosionRadius(int radius) 设置苦力怕的爆炸半径.原文: Set the explosion radius in which this Creeper's explosion will affect.
- 参数:
radius
- 新的爆炸半径
-
getExplosionRadius
int getExplosionRadius()获得苦力怕的爆炸半径.原文: Get the explosion radius in which this Creeper's explosion will affect.
- 返回:
- 爆炸半径
-
explode
void explode()使该苦力怕立刻爆炸.
使用本方法引起的爆炸可被ExplosionPrimeEvent
取消, 并且遵循其所处世界的mobGriefing游戏规则
.原文:Makes this Creeper explode instantly.
The resulting explosion can be cancelled by anExplosionPrimeEvent
and obeys the mob griefing gamerule. -
ignite
点燃此苦力怕, 开始其爆炸计时.
苦力怕从点燃到爆炸所需时间取决于setMaxFuseTicks(int)
的设置,默认值为30. 使用本方法引起的爆炸可被ExplosionPrimeEvent
取消, 并且遵循其所处世界的mobGriefing游戏规则
.原文:Ignites this Creeper, beginning its fuse.
The amount of time the Creeper takes to explode will depend on whatsetMaxFuseTicks(int)
is set as.
The resulting explosion can be cancelled by anExplosionPrimeEvent
and obeys the mob griefing gamerule.- 参数:
entity
- 点燃苦力怕的实体
-
ignite
void ignite()点燃此苦力怕, 开始其爆炸计时.
苦力怕从点燃到爆炸所需时间取决于setMaxFuseTicks(int)
的设置,默认值为30. 使用本方法引起的爆炸可被ExplosionPrimeEvent
取消, 并且遵循其所处世界的mobGriefing游戏规则
.原文:Ignites this Creeper, beginning its fuse.
The amount of time the Creeper takes to explode will depend on whatsetMaxFuseTicks(int)
is set as. The resulting explosion can be cancelled by anExplosionPrimeEvent
and obeys the mob griefing gamerule. -
getIgniter
获取点燃此苦力怕的实体(如存在).原文:Gets the entity which ignited the creeper, if available.
- 返回:
- 点燃此苦力怕的实体,不存在返回 null
-