Control .java

net.minecraft.world.entity.ai.control.Control (interface, 12 lines): interface declaring 1 method. members: rotateTowards. imports: Mth.

net.minecraft.world.entity.ai.controlinterface12 linescommon355 B

API Surface (0)

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

Code Graph: Dependencies (1)

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

Full Source

Control.java12 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity.ai.control;
2
3
import net.minecraft.util.Mth;
4
5
public interface Control {
6
	default float rotateTowards(final float fromAngle, final float toAngle, final float maxRot) {
7
		float diff = Mth.degreesDifference(fromAngle, toAngle);
8
		float diffClamped = Mth.clamp(diff, -maxRot, maxRot);
9
		return fromAngle + diffClamped;
10
	}
11
}
12

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