21w17a
This commit is contained in:
1 parent
624f9973c8
commit
b84478e7db
9 files changed
+27
-27
No files matched your search
@@ -116,8 +116,8 @@ public class EntityPlayerActionPack
|
||||
case SOUTH: return look(0, 0);
|
||||
case EAST: return look(-90, 0);
|
||||
case WEST: return look(90, 0);
|
||||
case UP: return look(player.yaw, -90);
|
||||
case DOWN: return look(player.yaw, 90);
|
||||
case UP: return look(player.method_36454(), -90);
|
||||
case DOWN: return look(player.method_36454(), 90);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
@@ -128,8 +128,8 @@ public class EntityPlayerActionPack
|
||||
|
||||
public EntityPlayerActionPack look(float yaw, float pitch)
|
||||
{
|
||||
player.yaw = yaw % 360;
|
||||
player.pitch = MathHelper.clamp(pitch, -90, 90);
|
||||
player.method_36456(yaw % 360); //setYaw
|
||||
player.method_36457(MathHelper.clamp(pitch, -90, 90)); // setPitch
|
||||
// maybe player.setPositionAndAngles(player.x, player.y, player.z, yaw, MathHelper.clamp(pitch,-90.0F, 90.0F));
|
||||
return this;
|
||||
}
|
||||
@@ -142,7 +142,7 @@ public class EntityPlayerActionPack
|
||||
|
||||
public EntityPlayerActionPack turn(float yaw, float pitch)
|
||||
{
|
||||
return look(player.yaw + yaw, player.pitch + pitch);
|
||||
return look(player.method_36454() + yaw, player.method_36455() + pitch);
|
||||
}
|
||||
|
||||
public EntityPlayerActionPack turn(Vec2f rotation)
|
||||
|
||||
Reference in new issue
Block a user