17 lines
563 B
Java
17 lines
563 B
Java
package net.minecraft.world.entity.ai.goal;
|
|
|
|
import java.util.EnumSet;
|
|
import net.minecraft.world.entity.LivingEntity;
|
|
import net.minecraft.world.entity.Mob;
|
|
|
|
public class InteractGoal extends LookAtPlayerGoal {
|
|
public InteractGoal(Mob mob, Class<? extends LivingEntity> class_, float f) {
|
|
super(mob, class_, f);
|
|
this.setFlags(EnumSet.of(Goal.Flag.LOOK, Goal.Flag.MOVE));
|
|
}
|
|
|
|
public InteractGoal(Mob mob, Class<? extends LivingEntity> class_, float f, float g) {
|
|
super(mob, class_, f, g);
|
|
this.setFlags(EnumSet.of(Goal.Flag.LOOK, Goal.Flag.MOVE));
|
|
}
|
|
}
|