Package org.bukkit.entity
Interface Steerable
- All Superinterfaces:
- Ageable,- Animals,- Attributable,- Breedable,- CommandSender,- Creature,- Damageable,- Entity,- LivingEntity,- Lootable,- Metadatable,- Mob,- Nameable,- Permissible,- PersistentDataHolder,- ProjectileSource,- ServerOperator
Represents an entity which may be saddled, ridden and steered using an item.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionintGet the time in ticks this entity's movement is being increased.intGet the time in ticks this entity's movement has been increased as of the most recent boost.Get the material used to steer this entity when ridden by a player.booleanCheck if the pig has a saddle.voidsetBoostTicks(int ticks) Set the time in ticks this entity's movement will be increased.voidsetCurrentBoostTicks(int ticks) Set the time in ticks this entity's movement has been increased relative to the most recent boost.voidsetSaddle(boolean saddled) Sets if the pig has a saddle or notMethods inherited from interface org.bukkit.entity.AgeablegetAge, isAdult, setAdult, setAge, setBabyMethods inherited from interface org.bukkit.entity.AnimalsgetBreedCause, getLoveModeTicks, isBreedItem, isBreedItem, isLoveMode, setBreedCause, setLoveModeTicksMethods inherited from interface org.bukkit.attribute.AttributablegetAttributeMethods inherited from interface org.bukkit.entity.BreedablecanBreed, getAgeLock, setAgeLock, setBreedMethods inherited from interface org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.Damageabledamage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.entity.LivingEntityaddPotionEffect, addPotionEffect, addPotionEffects, attack, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHandMethods inherited from interface org.bukkit.loot.LootablegetLootTable, getSeed, setLootTable, setSeedMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods 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.projectiles.ProjectileSourcelaunchProjectile, launchProjectileMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOp
- 
Method Details- 
hasSaddleboolean hasSaddle()Check if the pig has a saddle.- Returns:
- if the pig has been saddled.
 
- 
setSaddlevoid setSaddle(boolean saddled) Sets if the pig has a saddle or not- Parameters:
- saddled- set if the pig has a saddle or not.
 
- 
getBoostTicksint getBoostTicks()Get the time in ticks this entity's movement is being increased. Movement speed is often increased as a result of using thegetSteerMaterial().- Returns:
- the current boost ticks
 
- 
setBoostTicksvoid setBoostTicks(int ticks) Set the time in ticks this entity's movement will be increased. This will reset the current boost ticks to 0 (getCurrentBoostTicks()).- Parameters:
- ticks- the boost time
 
- 
getCurrentBoostTicksint getCurrentBoostTicks()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().- Returns:
- the current boost ticks
 
- 
setCurrentBoostTicksvoid setCurrentBoostTicks(int ticks) Set the time in ticks this entity's movement has been increased relative to the most recent boost.- Parameters:
- ticks- the current boost ticks. Must be >= 0 and <=- getBoostTicks()
 
- 
getSteerMaterialGet the material used to steer this entity when ridden by a player.- Returns:
- the lure material
 
 
-