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 class
Ocelot.Type
Represents the various different cat types there are. -
Method Summary
Modifier and Type Method Description Ocelot.Type
getCatType()
Gets the current type of this cat.boolean
isSitting()
Checks if this ocelot is sittingvoid
setCatType(Ocelot.Type type)
Sets the current type of this cat.void
setSitting(boolean sitting)
Sets if this ocelot is sitting.Methods inherited from interface org.bukkit.entity.Ageable
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
Methods 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, setMaxHealth
Methods 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, teleport
Methods 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, throwSnowball
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods 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
-