接口 Raider
- 所有超级接口:
Attributable,CommandSender,Creature,Damageable,Enemy,Entity,Leashable,LivingEntity,Lootable,Metadatable,Mob,Monster,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
- 所有已知子接口:
Evoker,Illager,Illusioner,Pillager,Ravager,Spellcaster,Vindicator,Witch
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明获取此实体庆祝时播放的Sound。获取袭击者要巡逻的目标方块.getRaid()获取此袭击者正在参与的Raid(如果有的话)。int获取此生物作为袭击参与者离开村庄边界的时间(以tick为单位)。intgetWave()获取此袭击者生成时所属的袭击波次。boolean获取此生物能否参与一个活跃的袭击.boolean检查此袭击者是否正在庆祝袭击胜利。boolean判断此实体是否为灾厄巡逻队队长(袭击队长).voidsetCanJoinRaid(boolean join) 设置此生物能否参与一个活跃的袭击.voidsetCelebrating(boolean celebrating) 设置此生物是否正在庆祝袭击胜利。voidsetPatrolLeader(boolean leader) 设置此实体是否为袭击队长.voidsetPatrolTarget(@Nullable Block block) 设置袭击者要巡逻的目标方块.void设置此袭击者正在参与的Raid。voidsetTicksOutsideRaid(int ticks) 设置此生物作为袭击参与者离开村庄边界的时间(以tick为单位)。voidsetWave(int wave) 设置此袭击者生成时所属的袭击波次。从接口继承的方法 org.bukkit.attribute.Attributable
getAttribute从接口继承的方法 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
-
方法详细资料
-
setRaid
- 参数:
raid- 要设置的袭击
-
getRaid
- 返回:
- 袭击事件,若未参与则为null
-
getWave
int getWave()获取此袭击者生成时所属的袭击波次。原文:Get the raid wave that this raider spawned as part of.
- 返回:
- 袭击波次,若未参与袭击则为0
-
setWave
void setWave(int wave) 设置此袭击者生成时所属的袭击波次。原文:Set the raid wave that this raider was spawned as part of.
- 参数:
wave- 要设置的袭击波次,必须 >= 0
-
getPatrolTarget
获取袭击者要巡逻的目标方块.原文:Gets the block the raider is targeting to patrol.
- 返回:
- 目标方块或null
-
setPatrolTarget
设置袭击者要巡逻的目标方块.原文:Sets the block the raider is targeting to patrol.
- 参数:
block- 目标方块或null, 此方块所处位置必须与此生物位于同一世界
-
isPatrolLeader
boolean isPatrolLeader()判断此实体是否为灾厄巡逻队队长(袭击队长).原文:Gets whether this entity is a patrol leader.
- 返回:
- 此实体是否为袭击队长
-
setPatrolLeader
void setPatrolLeader(boolean leader) 设置此实体是否为袭击队长.原文:Sets whether this entity is a patrol leader.
- 参数:
leader- 是否为袭击队长
-
isCanJoinRaid
boolean isCanJoinRaid()获取此生物能否参与一个活跃的袭击.原文:Gets whether this mob can join an active raid.
- 返回:
- 能否参与一个活跃的袭击
-
setCanJoinRaid
void setCanJoinRaid(boolean join) 设置此生物能否参与一个活跃的袭击.原文:Sets whether this mob can join an active raid.
- 参数:
join- 能否参与一个活跃的袭击
-
getTicksOutsideRaid
int getTicksOutsideRaid()获取此生物作为袭击参与者离开村庄边界的时间(以tick为单位)。此值仅在生物无动作达到2400 tick时才会增加(根据
LivingEntity.getNoActionTicks())。 当无动作tick达到该值且离开袭击的时间超过30 tick时,该生物将被驱逐出袭击。原文:Get the amount of ticks that this mob has exited the bounds of a village as a raid participant.
This value is increased only when the mob has had no action for 2,400 ticks (according to
LivingEntity.getNoActionTicks()). Once both the no action ticks have reached that value and the ticks outside a raid exceeds 30, the mob will be expelled from the raid.- 返回:
- 离开袭击的时间(以tick为单位)
-
setTicksOutsideRaid
void setTicksOutsideRaid(int ticks) 设置此生物作为袭击参与者离开村庄边界的时间(以tick为单位)。此值仅在生物无动作达到2400 tick时才会被考虑(根据
LivingEntity.getNoActionTicks())。 当无动作tick达到该值且离开袭击的时间超过30 tick时,该生物将被驱逐出袭击。原文:Set the amount of ticks that this mob has exited the bounds of a village as a raid participant.
This value is considered only when the mob has had no action for 2,400 ticks (according to
LivingEntity.getNoActionTicks()). Once both the no action ticks have reached that value and the ticks outside a raid exceeds 30, the mob will be expelled from the raid.- 参数:
ticks- 离开袭击的时间(以tick为单位)
-
isCelebrating
boolean isCelebrating()检查此袭击者是否正在庆祝袭击胜利。原文:Check whether or not this raider is celebrating a raid victory.
- 返回:
- 如果正在庆祝则为true,否则为false
-
setCelebrating
void setCelebrating(boolean celebrating) 设置此生物是否正在庆祝袭击胜利。原文:Set whether or not this mob is celebrating a raid victory.
- 参数:
celebrating- 是否庆祝
-
getCelebrationSound
- 返回:
- 庆祝音效
-