minecraft-src/net/minecraft/world/entity/ai/goal/InteractGoal.java
2025-07-04 01:41:11 +03:00

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));
}
}