Class TurtleNearestAttackableGoal<T extends net.minecraft.world.entity.LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.TargetGoal
net.frozenblock.wilderwild.entity.ai.turtle.TurtleNearestAttackableGoal<T>
public class TurtleNearestAttackableGoal<T extends net.minecraft.world.entity.LivingEntity>
extends net.minecraft.world.entity.ai.goal.target.TargetGoal
-
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 TypeFieldDescriptionprotected final intprotected @Nullable net.minecraft.world.entity.LivingEntityprotected net.minecraft.world.entity.ai.targeting.TargetingConditionsFields inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks -
Constructor Summary
ConstructorsConstructorDescriptionTurtleNearestAttackableGoal(@NotNull net.minecraft.world.entity.Mob mob, @NotNull Class<T> class_, boolean bl) TurtleNearestAttackableGoal(@NotNull net.minecraft.world.entity.Mob mob, @NotNull Class<T> class_, int i, boolean bl, boolean bl2, @Nullable Predicate<net.minecraft.world.entity.LivingEntity> predicate) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse()protected voidprotected @NotNull net.minecraft.world.phys.AABBgetTargetSearchArea(double d) voidsetTarget(@Nullable net.minecraft.world.entity.LivingEntity livingEntity) voidstart()Methods inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stopMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Field Details
-
targetType
-
randomInterval
protected final int randomInterval -
target
@Nullable protected @Nullable net.minecraft.world.entity.LivingEntity target -
targetConditions
protected net.minecraft.world.entity.ai.targeting.TargetingConditions targetConditions
-
-
Constructor Details
-
TurtleNearestAttackableGoal
-
TurtleNearestAttackableGoal
-
-
Method Details
-
canUse
public boolean canUse()- Specified by:
canUsein classnet.minecraft.world.entity.ai.goal.Goal
-
getTargetSearchArea
@NotNull protected @NotNull net.minecraft.world.phys.AABB getTargetSearchArea(double d) -
findTarget
protected void findTarget() -
start
public void start()- Overrides:
startin classnet.minecraft.world.entity.ai.goal.target.TargetGoal
-
setTarget
public void setTarget(@Nullable @Nullable net.minecraft.world.entity.LivingEntity livingEntity)
-