public class LookAtGoal extends Goal
修飾子とタイプ | フィールドと説明 |
---|---|
protected float |
chance |
protected Entity |
closestEntity |
protected MobEntity |
entity |
protected EntityPredicate |
field_220716_e |
protected float |
maxDistance |
protected java.lang.Class<? extends LivingEntity> |
watchedClass |
コンストラクタと説明 |
---|
LookAtGoal(MobEntity entityIn,
java.lang.Class<? extends LivingEntity> watchTargetClass,
float maxDistance) |
LookAtGoal(MobEntity entityIn,
java.lang.Class<? extends LivingEntity> watchTargetClass,
float maxDistance,
float chanceIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
resetTask()
Reset the task's internal state.
|
boolean |
shouldContinueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
shouldExecute()
Returns whether execution should begin.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
tick()
Keep ticking a continuous task that has already been started
|
getMutexFlags, isPreemptible, setMutexFlags, toString
protected final MobEntity entity
protected Entity closestEntity
protected final float maxDistance
protected final float chance
protected final java.lang.Class<? extends LivingEntity> watchedClass
protected final EntityPredicate field_220716_e
public LookAtGoal(MobEntity entityIn, java.lang.Class<? extends LivingEntity> watchTargetClass, float maxDistance)
public LookAtGoal(MobEntity entityIn, java.lang.Class<? extends LivingEntity> watchTargetClass, float maxDistance, float chanceIn)
public boolean shouldExecute()
shouldExecute
クラス内 Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
クラス内 Goal
public void startExecuting()
startExecuting
クラス内 Goal
public void resetTask()