Class LookAtEntityGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
com.minecolonies.core.entity.ai.minimal.LookAtEntityGoal
- Direct Known Subclasses:
LookAtEntityInteractGoal
public class LookAtEntityGoal
extends net.minecraft.world.entity.ai.goal.Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.Goal.Flag -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatprotected net.minecraft.world.entity.Entityprotected final Class<? extends net.minecraft.world.entity.LivingEntity> protected final floatprotected final net.minecraft.world.entity.Mobprotected final float -
Constructor Summary
ConstructorsConstructorDescriptionLookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance) LookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance, float probability) LookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance, float probability, boolean p_148122_) -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Field Details
-
DEFAULT_PROBABILITY
public static final float DEFAULT_PROBABILITY- See Also:
-
mob
protected final net.minecraft.world.entity.Mob mob -
lookAt
@Nullable protected net.minecraft.world.entity.Entity lookAt -
lookDistance
protected final float lookDistance -
probability
protected final float probability -
lookAtType
-
-
Constructor Details
-
LookAtEntityGoal
public LookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance) -
LookAtEntityGoal
public LookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance, float probability) -
LookAtEntityGoal
public LookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance, float probability, boolean p_148122_)
-
-
Method Details
-
canUse
public boolean canUse()- Specified by:
canUsein classnet.minecraft.world.entity.ai.goal.Goal
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classnet.minecraft.world.entity.ai.goal.Goal
-
start
public void start()- Overrides:
startin classnet.minecraft.world.entity.ai.goal.Goal
-
stop
public void stop()- Overrides:
stopin classnet.minecraft.world.entity.ai.goal.Goal
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.ai.goal.Goal
-