Interface Fox
- All Superinterfaces:
Ageable, Animals, Attributable, Breedable, CommandSender, Creature, Damageable, Entity, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator, Sittable
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents the various different fox types there are.Nested classes/interfaces inherited from interface Entity
Entity.Spigot -
Method Summary
Modifier and TypeMethodDescriptionGets the first trusted player.Gets the current type of this fox.Gets the second trusted player.booleanChecks if this animal is crouchingbooleanGets whether the fox is faceplanting the groundvoidsetCrouching(boolean crouching) Sets if this animal is crouching.voidsetFirstTrustedPlayer(AnimalTamer player) Set the first trusted player.voidsetFoxType(Fox.Type type) Sets the current type of this fox.voidsetSecondTrustedPlayer(AnimalTamer player) Set the second trusted player.voidsetSleeping(boolean sleeping) Sets if this animal is sleeping.Methods inherited from interface Animals
getBreedCause, getLoveModeTicks, isBreedItem, isBreedItem, isLoveMode, setBreedCause, setLoveModeTicksMethods inherited from interface Attributable
getAttributeMethods inherited from interface Breedable
canBreed, getAgeLock, setAgeLock, setBreedMethods inherited from interface CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface Damageable
damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface 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, teleportMethods inherited from interface Leashable
getLeashHolder, isLeashed, setLeashHolderMethods inherited from interface 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, swingOffHandMethods inherited from interface Lootable
getLootTable, getSeed, setLootTable, setSeedMethods inherited from interface Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface Nameable
getCustomName, setCustomNameMethods inherited from interface Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface PersistentDataHolder
getPersistentDataContainerMethods inherited from interface ProjectileSource
launchProjectile, launchProjectileMethods inherited from interface ServerOperator
isOp, setOpMethods inherited from interface Sittable
isSitting, setSitting
-
Method Details
-
getFoxType
-
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
-
isFaceplanted
boolean isFaceplanted()Gets whether the fox is faceplanting the ground- Returns:
- Whether the fox is faceplanting the ground
-