类 SpiderLarvaEntity.RetreatGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.EscapeDangerGoal
pers.saikel0rado1iu.spontaneousreplace.cobwebbed.entity.mob.SpiderLarvaEntity.RetreatGoal
封闭类:
SpiderLarvaEntity

protected static class SpiderLarvaEntity.RetreatGoal extends net.minecraft.entity.ai.goal.EscapeDangerGoal

撤退目标

如果实体被激怒,实体与目标距离小于撤退范围时逃离,而实体与目标距离大于远程范围则停止撤退
  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraft.entity.ai.goal.Goal

    net.minecraft.entity.ai.goal.Goal.Control
  • 字段概要

    从类继承的字段 net.minecraft.entity.ai.goal.EscapeDangerGoal

    active, mob, RANGE_Y, speed, targetX, targetY, targetZ
  • 构造器概要

    构造器
    构造器
    说明
    RetreatGoal(net.minecraft.entity.mob.PathAwareEntity mob, double speed)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected boolean
     

    从类继承的方法 net.minecraft.entity.ai.goal.EscapeDangerGoal

    canStart, findTarget, isActive, locateClosestWater, shouldContinue, start, stop

    从类继承的方法 net.minecraft.entity.ai.goal.Goal

    canStop, getControls, getTickCount, setControls, shouldRunEveryTick, tick, toGoalTicks, toString

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • RetreatGoal

      public RetreatGoal(net.minecraft.entity.mob.PathAwareEntity mob, double speed)
  • 方法详细资料

    • isInDanger

      protected boolean isInDanger()
      覆盖:
      isInDanger 在类中 net.minecraft.entity.ai.goal.EscapeDangerGoal