InteractGoal .java

net.minecraft.world.entity.ai.goal.InteractGoal (class, 18 lines): extends LookAtPlayerGoal. imports: Mob.

net.minecraft.world.entity.ai.goalclass18 linescommonextends LookAtPlayerGoal685 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (3)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

InteractGoal.java18 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity.ai.goal;
2
3
import java.util.EnumSet;
4
import net.minecraft.world.entity.LivingEntity;
5
import net.minecraft.world.entity.Mob;
6
7
public class InteractGoal extends LookAtPlayerGoal {
8
	public InteractGoal(final Mob mob, final Class<? extends LivingEntity> lookAtType, final float lookDistance) {
9
		super(mob, lookAtType, lookDistance);
10
		this.setFlags(EnumSet.of(Goal.Flag.LOOK, Goal.Flag.MOVE));
11
	}
12
13
	public InteractGoal(final Mob mob, final Class<? extends LivingEntity> lookAtType, final float lookDistance, final float probability) {
14
		super(mob, lookAtType, lookDistance, probability);
15
		this.setFlags(EnumSet.of(Goal.Flag.LOOK, Goal.Flag.MOVE));
16
	}
17
}
18

Decompiled Minecraft 26.3 source of InteractGoal (net/minecraft/world/entity/ai/goal/InteractGoal.java) with Mojang official mappings, stored verbatim on the site.