接口 Creeper
- 所有超级接口:
Attributable
,CommandSender
,Creature
,Damageable
,Entity
,LivingEntity
,Metadatable
,Monster
,Nameable
,Permissible
,ProjectileSource
,ServerOperator
代表爬行者.
-
方法概要
修饰符和类型方法说明int
Get the explosion radius in which this Creeper's explosion will affect.int
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.boolean
检查这个爬行者是否为高压的(触电)void
setExplosionRadius
(int radius) Set the explosion radius in which this Creeper's explosion will affect.void
setMaxFuseTicks
(int ticks) 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.void
setPowered
(boolean value) 设置这个爬行者为高压状态.从接口继承的方法 org.bukkit.attribute.Attributable
getAttribute
从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage
从接口继承的方法 org.bukkit.entity.Damageable
damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
从接口继承的方法 org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, 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, teleport, teleport, teleport, teleport
从接口继承的方法 org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway
从接口继承的方法 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.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) 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
- the new maximum fuse ticks
-
getMaxFuseTicks
int getMaxFuseTicks()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.- 返回:
- the maximum fuse ticks
-
setExplosionRadius
void setExplosionRadius(int radius) Set the explosion radius in which this Creeper's explosion will affect.- 参数:
radius
- the new explosion radius
-
getExplosionRadius
int getExplosionRadius()Get the explosion radius in which this Creeper's explosion will affect.- 返回:
- the explosion radius
-