接口 Panda
- 所有超级接口:
Ageable
,Animals
,Attributable
,Breedable
,CommandSender
,Creature
,Damageable
,Entity
,LivingEntity
,Lootable
,Metadatable
,Mob
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
,Sittable
代表熊猫.
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot
-
方法概要
修饰符和类型方法说明获取隐性基因.获得熊猫的显性基因.int
Gets how many ticks the panda will be unhappy forboolean
isEating()
Gets whether the Panda is eatingboolean
isOnBack()
Gets whether the Panda is on its backboolean
Gets whether the Panda is rollingboolean
isScared()
Gets whether the Panda is scaredboolean
Gets whether the Panda is sneezingvoid
setEating
(boolean flag) Sets the Panda's eating status.void
setHiddenGene
(@NotNull Panda.Gene gene) 设置隐性基因.void
setMainGene
(@NotNull Panda.Gene gene) 设置熊猫的显性基因.void
setOnBack
(boolean flag) Sets whether the Panda is on its backvoid
setRolling
(boolean flag) Sets whether the Panda is rollingvoid
setSneezing
(boolean flag) Sets whether the Panda is sneezing从接口继承的方法 org.bukkit.entity.Animals
getBreedCause, getLoveModeTicks, isBreedItem, isBreedItem, isLoveMode, setBreedCause, setLoveModeTicks
从接口继承的方法 org.bukkit.attribute.Attributable
getAttribute
从接口继承的方法 org.bukkit.entity.Breedable
canBreed, getAgeLock, setAgeLock, setBreed
从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
从接口继承的方法 org.bukkit.entity.Damageable
damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
从接口继承的方法 org.bukkit.entity.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, teleport
从接口继承的方法 org.bukkit.entity.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, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setItemInUseTicks, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
从接口继承的方法 org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeed
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName
从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
从接口继承的方法 org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
从接口继承的方法 org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
从接口继承的方法 org.bukkit.entity.Sittable
isSitting, setSitting
-
方法详细资料
-
getMainGene
获得熊猫的显性基因.Gets this Panda's main gene.
- 返回:
- 显性基因
-
setMainGene
设置熊猫的显性基因.原文: Sets this Panda's main gene.
- 参数:
gene
- 显性基因
-
getHiddenGene
获取隐性基因.原文: Gets this Panda's hidden gene.
- 返回:
- hidden gene
-
setHiddenGene
设置隐性基因.原文: Sets this Panda's hidden gene.
- 参数:
gene
- 隐形基因
-
isRolling
boolean isRolling()Gets whether the Panda is rolling- 返回:
- Whether the Panda is rolling
-
setRolling
void setRolling(boolean flag) Sets whether the Panda is rolling- 参数:
flag
- Whether the Panda is rolling
-
isSneezing
boolean isSneezing()Gets whether the Panda is sneezing- 返回:
- Whether the Panda is sneezing
-
setSneezing
void setSneezing(boolean flag) Sets whether the Panda is sneezing- 参数:
flag
- Whether the Panda is sneezing
-
isOnBack
boolean isOnBack()Gets whether the Panda is on its back- 返回:
- Whether the Panda is on its back
-
setOnBack
void setOnBack(boolean flag) Sets whether the Panda is on its back- 参数:
flag
- Whether the Panda is on its back
-
isEating
boolean isEating()Gets whether the Panda is eating- 返回:
- Whether the Panda is eating
-
setEating
void setEating(boolean flag) Sets the Panda's eating status. The panda must be holding food for this to work- 参数:
flag
- Whether the Panda is eating
-
isScared
boolean isScared()Gets whether the Panda is scared- 返回:
- Whether the Panda is scared
-
getUnhappyTicks
int getUnhappyTicks()Gets how many ticks the panda will be unhappy for- 返回:
- The number of ticks the panda will be unhappy for
-