接口 Hoglin
- 所有超级接口:
Ageable,Animals,Attributable,Breedable,CommandSender,Creature,Damageable,Enemy,Entity,Leashable,LivingEntity,Lootable,Metadatable,Mob,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
代表一只疣猪兽。
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明int获取此实体转换为僵尸疣猪兽所需的刻数.boolean获取疣猪兽是否能被猪灵猎杀.boolean获取此实体是否正在转换为僵尸疣猪兽.boolean获取疣猪兽是否免疫僵尸化.voidsetConversionTime(int time) 设置此实体转换为僵尸疣猪兽所需的刻数.voidsetImmuneToZombification(boolean flag) 设置疣猪兽是否免疫僵尸化.voidsetIsAbleToBeHunted(boolean flag) 设置疣猪兽是否能被猪灵猎杀.从接口继承的方法 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
-
方法详细资料
-
isImmuneToZombification
boolean isImmuneToZombification()获取疣猪兽是否免疫僵尸化.原文:Gets whether the hoglin is immune to zombification.
- 返回:
- 疣猪兽是否免疫僵尸化
-
setImmuneToZombification
void setImmuneToZombification(boolean flag) 设置疣猪兽是否免疫僵尸化.原文:Sets whether the hoglin is immune to zombification.
- 参数:
flag- 疣猪兽是否免疫僵尸化
-
isAbleToBeHunted
boolean isAbleToBeHunted()获取疣猪兽是否能被猪灵猎杀.原文:Get whether the hoglin is able to be hunted by piglins.
- 返回:
- 疣猪兽是否能被猪灵猎杀
-
setIsAbleToBeHunted
void setIsAbleToBeHunted(boolean flag) 设置疣猪兽是否能被猪灵猎杀.原文:Sets whether the hoglin is able to be hunted by piglins.
- 参数:
flag- 疣猪兽是否能被猪灵猎杀
-
getConversionTime
int getConversionTime()获取此实体转换为僵尸疣猪兽所需的刻数.原文:Gets the amount of ticks until this entity will be converted to a Zoglin. 当达到300刻时,该实体将会被转换.
- 返回:
- 转换所需时间
- 抛出:
IllegalStateException- 如果isConverting()为false
-
setConversionTime
void setConversionTime(int time) 设置此实体转换为僵尸疣猪兽所需的刻数.原文:Sets the amount of ticks until this entity will be converted to a Zoglin. 当达到0刻时,该实体将会被转换.小于0的值将停止当前的转换过程,而不会转换当前实体.
- 参数:
time- 新的转换时间
-
isConverting
boolean isConverting()获取此实体是否正在转换为僵尸疣猪兽.原文:Get if this entity is in the process of converting to a Zoglin.
- 返回:
- 转换状态
-