接口 MushroomCow
- 所有超级接口:
AbstractCow,Ageable,Animals,Attributable,Breedable,CommandSender,Creature,Damageable,Entity,Leashable,LivingEntity,Lootable,Metadatable,Mob,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
AbstractCow ).-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明booleanaddEffectToNextStew(@NotNull PotionEffect effect, boolean overwrite) 添加一个自定义药水效果,该效果将应用于下次从此MushroomCow挤奶获得的可疑炖菜。void移除所有将应用于下次从此MushroomCow挤奶获得的可疑炖菜的自定义药水效果。获取包含所有自定义药水效果的不可变列表,这些效果将应用于下次从此MushroomCow挤奶获得的可疑炖菜。获取此牛的变种。boolean检查是否有特定的自定义药水效果类型将应用于下次从此MushroomCow挤奶获得的可疑炖菜。boolean检查是否设置了自定义药水效果,这些效果将应用于下次从此MushroomCow挤奶获得的可疑炖菜。boolean移除一个自定义药水效果,使其不再应用于下次从此MushroomCow挤奶获得的可疑炖菜。voidsetVariant(@NotNull MushroomCow.Variant variant) 设置此牛的变种。从接口继承的方法 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.Leashable
getLeashHolder, isLeashed, setLeashHolder从接口继承的方法 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, 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, 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
-
方法详细资料
-
hasEffectsForNextStew
boolean hasEffectsForNextStew()检查是否设置了自定义药水效果,这些效果将应用于下次从此MushroomCow挤奶获得的可疑炖菜。原文:Checks for the presence of custom potion effects to be applied to the next suspicious stew received from milking this
MushroomCow.- 返回:
- 如果自定义药水效果应用于炖菜则返回 true
-
getEffectsForNextStew
获取包含所有自定义药水效果的不可变列表,这些效果将应用于下次从此MushroomCow挤奶获得的可疑炖菜。插件在调用此方法前应检查 hasCustomEffects() 是否返回 true。
原文:Gets an immutable list containing all custom potion effects applied to the next suspicious stew received from milking this
MushroomCow. Plugins should check that hasCustomEffects() returns true before calling this method.- 返回:
- 包含自定义药水效果的不可变列表
-
addEffectToNextStew
添加一个自定义药水效果,该效果将应用于下次从此MushroomCow挤奶获得的可疑炖菜。原文:Adds a custom potion effect to be applied to the next suspicious stew received from milking this
MushroomCow.- 参数:
effect- 要添加的药水效果overwrite- 如果为 true,则覆盖任何已存在的相同类型效果- 返回:
- 如果应用于可疑炖菜的效果因此次调用而改变则返回 true
-
removeEffectFromNextStew
移除一个自定义药水效果,使其不再应用于下次从此MushroomCow挤奶获得的可疑炖菜。原文:Removes a custom potion effect from being applied to the next suspicious stew received from milking this
MushroomCow.- 参数:
type- 要移除的药水效果类型- 返回:
- 如果应用于可疑炖菜的效果因此次调用而改变则返回 true
-
hasEffectForNextStew
检查是否有特定的自定义药水效果类型将应用于下次从此MushroomCow挤奶获得的可疑炖菜。原文:Checks for a specific custom potion effect type to be applied to the next suspicious stew received from milking this
MushroomCow.- 参数:
type- 要检查的药水效果类型- 返回:
- 如果要生成的可疑炖菜包含此效果则返回 true
-
clearEffectsForNextStew
void clearEffectsForNextStew()移除所有将应用于下次从此MushroomCow挤奶获得的可疑炖菜的自定义药水效果。原文:Removes all custom potion effects to be applied to the next suspicious stew received from milking this
MushroomCow. -
getVariant
获取此牛的变种。原文:Get the variant of this cow.
- 返回:
- 牛的变种
-
setVariant
设置此牛的变种。原文:Set the variant of this cow.
- 参数:
variant- 牛的变种
-