Package org.bukkit.entity
Interface Ocelot
- All Superinterfaces:
Ageable,Animals,CommandSender,Creature,Damageable,Entity,LivingEntity,Metadatable,Permissible,ProjectileSource,ServerOperator,Tameable
public interface Ocelot extends Animals, Tameable
A wild tameable cat
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classOcelot.TypeRepresents the various different cat types there are. -
Method Summary
Modifier and Type Method Description Ocelot.TypegetCatType()Gets the current type of this cat.booleanisSitting()Checks if this ocelot is sittingvoidsetCatType(Ocelot.Type type)Sets the current type of this cat.voidsetSitting(boolean sitting)Sets if this ocelot is sitting.Methods inherited from interface org.bukkit.entity.Ageable
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreedMethods inherited from interface org.bukkit.entity.Damageable
_INVALID_damage, _INVALID_damage, _INVALID_getHealth, _INVALID_getMaxHealth, _INVALID_setHealth, _INVALID_setMaxHealth, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.Entity
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.entity.LivingEntity
_INVALID_getLastDamage, _INVALID_setLastDamage, addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlock, hasLineOfSight, hasPotionEffect, isLeashed, removePotionEffect, setCanPickupItems, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, shootArrow, throwEgg, throwSnowballMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
-
Method Details
-
getCatType
Ocelot.Type getCatType()Gets the current type of this cat.- Returns:
- Type of the cat.
-
setCatType
Sets the current type of this cat.- Parameters:
type- New type of this cat.
-
isSitting
boolean isSitting()Checks if this ocelot is sitting- Returns:
- true if sitting
-
setSitting
void setSitting(boolean sitting)Sets if this ocelot is sitting. Will remove any path that the ocelot was following beforehand.- Parameters:
sitting- true if sitting
-