Package org.bukkit.entity
Interface Fox
- All Superinterfaces:
Ageable
,Animals
,Attributable
,Breedable
,CommandSender
,Creature
,Damageable
,Entity
,LivingEntity
,Lootable
,Metadatable
,Mob
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
,Sittable
public interface Fox extends Animals, Sittable
What does the fox say?
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Fox.Type
Represents the various different fox types there are. -
Method Summary
Modifier and Type Method Description AnimalTamer
getFirstTrustedPlayer()
Gets the first trusted player.Fox.Type
getFoxType()
Gets the current type of this fox.AnimalTamer
getSecondTrustedPlayer()
Gets the second trusted player.boolean
isCrouching()
Checks if this animal is crouchingvoid
setCrouching(boolean crouching)
Sets if this animal is crouching.void
setFirstTrustedPlayer(AnimalTamer player)
Set the first trusted player.void
setFoxType(Fox.Type type)
Sets the current type of this fox.void
setSecondTrustedPlayer(AnimalTamer player)
Set the second trusted player.void
setSleeping(boolean sleeping)
Sets if this animal is sleeping.Methods inherited from interface org.bukkit.entity.Ageable
getAge, isAdult, setAdult, setAge, setBaby
Methods inherited from interface org.bukkit.entity.Animals
getBreedCause, getLoveModeTicks, isLoveMode, setBreedCause, setLoveModeTicks
Methods inherited from interface org.bukkit.entity.Breedable
canBreed, getAgeLock, setAgeLock, setBreed
Methods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
Methods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, 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, 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, swingOffHand
Methods inherited from interface org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeed
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.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
-
Method Details
-
getFoxType
Gets the current type of this fox.- Returns:
- Type of the fox.
-
setFoxType
Sets the current type of this fox.- Parameters:
type
- New type of this fox.
-
isCrouching
boolean isCrouching()Checks if this animal is crouching- Returns:
- true if crouching
-
setCrouching
void setCrouching(boolean crouching)Sets if this animal is crouching.- Parameters:
crouching
- true if crouching
-
setSleeping
void setSleeping(boolean sleeping)Sets if this animal is sleeping.- Parameters:
sleeping
- true if sleeping
-
getFirstTrustedPlayer
Gets the first trusted player.- Returns:
- the owning AnimalTamer, or null if not owned
-
setFirstTrustedPlayer
Set the first trusted player.The first trusted player may only be removed after the second.
- Parameters:
player
- the AnimalTamer to be trusted
-
getSecondTrustedPlayer
Gets the second trusted player.- Returns:
- the owning AnimalTamer, or null if not owned
-
setSecondTrustedPlayer
Set the second trusted player.The second trusted player may only be added after the first.
- Parameters:
player
- the AnimalTamer to be trusted
-