Change visibility on LookBehaviorUtils intenal methods

This commit is contained in:
Howard Stark 2018-08-05 20:42:46 -04:00
parent c1d61a63ae
commit 34dd0f985f
No known key found for this signature in database
GPG Key ID: 9FA4E350B33067F3

View File

@ -72,7 +72,7 @@ public final class LookBehaviorUtils implements Helper{
* @param offset * @param offset
* @return * @return
*/ */
public static Optional<Tuple<Float, Float>> reachableRotation(BlockPos pos, Vec3d offset) { protected static Optional<Tuple<Float, Float>> reachableRotation(BlockPos pos, Vec3d offset) {
Tuple<Float, Float> rotation = Utils.calcRotationFromVec3d(mc.player.getPositionEyes(1.0F), Tuple<Float, Float> rotation = Utils.calcRotationFromVec3d(mc.player.getPositionEyes(1.0F),
offset); offset);
RayTraceResult result = raytraceTowards(rotation); RayTraceResult result = raytraceTowards(rotation);
@ -88,7 +88,7 @@ public final class LookBehaviorUtils implements Helper{
* @param pos * @param pos
* @return * @return
*/ */
public static Optional<Tuple<Float, Float>> reachableCenter(BlockPos pos) { protected static Optional<Tuple<Float, Float>> reachableCenter(BlockPos pos) {
Tuple<Float, Float> rotation = Utils.calcRotationFromVec3d(mc.player.getPositionEyes(1.0F), Tuple<Float, Float> rotation = Utils.calcRotationFromVec3d(mc.player.getPositionEyes(1.0F),
Utils.calcCenterFromCoords(pos, mc.world)); Utils.calcCenterFromCoords(pos, mc.world));
RayTraceResult result = raytraceTowards(rotation); RayTraceResult result = raytraceTowards(rotation);