public class AvoidEntityGoal<T extends LivingEntity> extends Goal
修飾子とタイプ | フィールドと説明 |
---|---|
protected float |
avoidDistance |
protected T |
avoidTarget |
protected java.util.function.Predicate<LivingEntity> |
avoidTargetSelector |
protected java.lang.Class<T> |
classToAvoid
Class of entity this behavior seeks to avoid
|
protected CreatureEntity |
entity |
protected java.util.function.Predicate<LivingEntity> |
field_203784_k |
protected PathNavigator |
navigation |
protected Path |
path |
コンストラクタと説明 |
---|
AvoidEntityGoal(CreatureEntity entityIn,
java.lang.Class<T> classToAvoidIn,
float avoidDistanceIn,
double farSpeedIn,
double nearSpeedIn) |
AvoidEntityGoal(CreatureEntity entityIn,
java.lang.Class<T> avoidClass,
float distance,
double nearSpeedIn,
double farSpeedIn,
java.util.function.Predicate<LivingEntity> targetPredicate) |
AvoidEntityGoal(CreatureEntity entityIn,
java.lang.Class<T> avoidClass,
java.util.function.Predicate<LivingEntity> targetPredicate,
float distance,
double nearSpeedIn,
double farSpeedIn,
java.util.function.Predicate<LivingEntity> p_i48859_9_) |
修飾子とタイプ | メソッドと説明 |
---|---|
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 CreatureEntity entity
protected T extends LivingEntity avoidTarget
protected final float avoidDistance
protected Path path
protected final PathNavigator navigation
protected final java.lang.Class<T extends LivingEntity> classToAvoid
protected final java.util.function.Predicate<LivingEntity> avoidTargetSelector
protected final java.util.function.Predicate<LivingEntity> field_203784_k
public AvoidEntityGoal(CreatureEntity entityIn, java.lang.Class<T> classToAvoidIn, float avoidDistanceIn, double farSpeedIn, double nearSpeedIn)
public AvoidEntityGoal(CreatureEntity entityIn, java.lang.Class<T> avoidClass, java.util.function.Predicate<LivingEntity> targetPredicate, float distance, double nearSpeedIn, double farSpeedIn, java.util.function.Predicate<LivingEntity> p_i48859_9_)
public AvoidEntityGoal(CreatureEntity entityIn, java.lang.Class<T> avoidClass, float distance, double nearSpeedIn, double farSpeedIn, java.util.function.Predicate<LivingEntity> targetPredicate)
public boolean shouldExecute()
shouldExecute
クラス内 Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
クラス内 Goal
public void startExecuting()
startExecuting
クラス内 Goal
public void resetTask()