接口 Steerable
- 所有超级接口:
Ageable,Animals,Attributable,Breedable,CommandSender,Creature,Damageable,Entity,Leashable,LivingEntity,Lootable,Metadatable,Mob,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明int获取此实体移动速度提升的时间(以tick为单位)。int获取此实体自最近一次加速以来移动速度提升的时间(以tick为单位)。获取玩家骑乘此实体时用于操控的物品材料。boolean检查猪是否有鞍。voidsetBoostTicks(int ticks) 设置此实体移动速度提升的时间(以tick为单位)。voidsetCurrentBoostTicks(int ticks) 设置此实体自最近一次加速以来移动速度提升的时间(以tick为单位)。voidsetSaddle(boolean saddled) 设置猪是否有鞍。从接口继承的方法 org.bukkit.entity.Animals
getBreedCause, getLoveModeTicks, isBreedItem, isBreedItem, isLoveMode, setBreedCause, setLoveModeTicks从接口继承的方法 org.bukkit.attribute.Attributable
getAttribute从接口继承的方法 org.bukkit.entity.Breedable
canBreed, getAgeLock, setAgeLock, setBreed从接口继承的方法 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.Leashable
getLeashHolder, isLeashed, setLeashHolder从接口继承的方法 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, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getWaypointColor, getWaypointStyle, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setItemInUseTicks, setLastDamage, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setRiptiding, setSwimming, setWaypointColor, setWaypointStyle, 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
-
方法详细资料
-
hasSaddle
boolean hasSaddle()检查猪是否有鞍。原文:Check if the pig has a saddle.
- 返回:
- 猪是否已装鞍
-
setSaddle
void setSaddle(boolean saddled) 设置猪是否有鞍。原文:Sets if the pig has a saddle or not
- 参数:
saddled- 设置猪是否有鞍
-
getBoostTicks
int getBoostTicks()获取此实体移动速度提升的时间(以tick为单位)。移动速度提升通常是由于使用
getSteerMaterial()导致的。原文:Get the time in ticks this entity's movement is being increased.
Movement speed is often increased as a result of using the
getSteerMaterial().- 返回:
- 当前加速tick数
-
setBoostTicks
void setBoostTicks(int ticks) 设置此实体移动速度提升的时间(以tick为单位)。这将把当前加速tick数重置为0(
getCurrentBoostTicks())。原文:Set the time in ticks this entity's movement will be increased.
This will reset the current boost ticks to 0 (
getCurrentBoostTicks()).- 参数:
ticks- 加速时间
-
getCurrentBoostTicks
int getCurrentBoostTicks()获取此实体自最近一次加速以来移动速度提升的时间(以tick为单位)。当前加速tick数永远不会 >
getBoostTicks()。原文:Get the time in ticks this entity's movement has been increased as of the most recent boost.
Current boost ticks will never be >
getBoostTicks().- 返回:
- 当前加速tick数
-
setCurrentBoostTicks
void setCurrentBoostTicks(int ticks) 设置此实体自最近一次加速以来移动速度提升的时间(以tick为单位)。原文:Set the time in ticks this entity's movement has been increased relative to the most recent boost.
- 参数:
ticks- 当前加速tick数。必须 >= 0 且 <=getBoostTicks()
-
getSteerMaterial
获取玩家骑乘此实体时用于操控的物品材料。原文:Get the material used to steer this entity when ridden by a player.
- 返回:
- 引诱材料
-