Uses of Class
baritone.api.utils.Rotation
Packages that use Rotation
Package
Description
-
Uses of Rotation in baritone.api.behavior
Methods in baritone.api.behavior with parameters of type RotationModifier and TypeMethodDescriptionvoidILookBehavior.updateTarget(Rotation rotation, boolean blockInteract) Updates the currentILookBehaviortarget to target the specified rotations on the next tick. -
Uses of Rotation in baritone.api.behavior.look
Methods in baritone.api.behavior.look that return RotationModifier and TypeMethodDescriptionITickableAimProcessor.nextRotation(Rotation rotation) Returns the actual rotation as provided byIAimProcessor.peekRotation(Rotation), and then automatically advances the internal state by onetick.IAimProcessor.peekRotation(Rotation desired) Returns the actual rotation that will be used when the desired rotation is requested.Methods in baritone.api.behavior.look with parameters of type RotationModifier and TypeMethodDescriptionITickableAimProcessor.nextRotation(Rotation rotation) Returns the actual rotation as provided byIAimProcessor.peekRotation(Rotation), and then automatically advances the internal state by onetick.IAimProcessor.peekRotation(Rotation desired) Returns the actual rotation that will be used when the desired rotation is requested. -
Uses of Rotation in baritone.api.event.events
Methods in baritone.api.event.events that return Rotation -
Uses of Rotation in baritone.api.utils
Methods in baritone.api.utils that return RotationModifier and TypeMethodDescriptionAdds the yaw/pitch of the specified rotations to this rotation's yaw/pitch, and returns the result.static RotationRotationUtils.calcRotationFromCoords(net.minecraft.core.BlockPos orig, net.minecraft.core.BlockPos dest) Calculates the rotation from BlockPosdest to BlockPosorigstatic RotationRotationUtils.calcRotationFromVec3d(net.minecraft.world.phys.Vec3 orig, net.minecraft.world.phys.Vec3 dest, Rotation current) Calculates the rotation from Vecdest to Vecorig and makes the return value relative to the specified current rotations.Rotation.clamp()Rotation.normalize()Rotation.normalizeAndClamp()default RotationIPlayerContext.playerRotations()Subtracts the yaw/pitch of the specified rotations from this rotation's yaw/pitch, and returns the result.Rotation.withPitch(float pitch) static RotationRotationUtils.wrapAnglesToRelative(Rotation current, Rotation target) Wraps the target angles to a relative value from the current angles.Methods in baritone.api.utils that return types with arguments of type RotationModifier and TypeMethodDescriptionRotationUtils.reachable(IPlayerContext ctx, net.minecraft.core.BlockPos pos) RotationUtils.reachable(IPlayerContext ctx, net.minecraft.core.BlockPos pos, boolean wouldSneak) RotationUtils.reachable(IPlayerContext ctx, net.minecraft.core.BlockPos pos, double blockReachDistance) Determines if the specified entity is able to reach the center of any of the sides of the specified block.RotationUtils.reachable(IPlayerContext ctx, net.minecraft.core.BlockPos pos, double blockReachDistance, boolean wouldSneak) RotationUtils.reachable(net.minecraft.client.player.LocalPlayer entity, net.minecraft.core.BlockPos pos, double blockReachDistance) Deprecated.RotationUtils.reachable(net.minecraft.client.player.LocalPlayer entity, net.minecraft.core.BlockPos pos, double blockReachDistance, boolean wouldSneak) Deprecated.RotationUtils.reachableCenter(IPlayerContext ctx, net.minecraft.core.BlockPos pos, double blockReachDistance, boolean wouldSneak) Determines if the specified entity is able to reach the specified block where it is looking at the direct center of it's hitbox.RotationUtils.reachableCenter(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos pos, double blockReachDistance, boolean wouldSneak) Deprecated.RotationUtils.reachableOffset(IPlayerContext ctx, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.Vec3 offsetPos, double blockReachDistance, boolean wouldSneak) Determines if the specified entity is able to reach the specified block with the given offsetted position.RotationUtils.reachableOffset(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.Vec3 offsetPos, double blockReachDistance, boolean wouldSneak) Deprecated.Methods in baritone.api.utils with parameters of type RotationModifier and TypeMethodDescriptionAdds the yaw/pitch of the specified rotations to this rotation's yaw/pitch, and returns the result.static net.minecraft.world.phys.Vec3RotationUtils.calcLookDirectionFromRotation(Rotation rotation) Calculates the look vector for the specified yaw/pitch rotations.static RotationRotationUtils.calcRotationFromVec3d(net.minecraft.world.phys.Vec3 orig, net.minecraft.world.phys.Vec3 dest, Rotation current) Calculates the rotation from Vecdest to Vecorig and makes the return value relative to the specified current rotations.static net.minecraft.world.phys.Vec3RotationUtils.calcVec3dFromRotation(Rotation rotation) Deprecated.booleanRotation.isReallyCloseTo(Rotation other) Is really close tostatic net.minecraft.world.phys.HitResultRayTraceUtils.rayTraceTowards(net.minecraft.world.entity.Entity entity, Rotation rotation, double blockReachDistance) Performs a block raytrace with the specified rotations.static net.minecraft.world.phys.HitResultRayTraceUtils.rayTraceTowards(net.minecraft.world.entity.Entity entity, Rotation rotation, double blockReachDistance, boolean wouldSneak) Subtracts the yaw/pitch of the specified rotations from this rotation's yaw/pitch, and returns the result.static RotationRotationUtils.wrapAnglesToRelative(Rotation current, Rotation target) Wraps the target angles to a relative value from the current angles.booleanRotation.yawIsReallyClose(Rotation other)