use of net.minecraft.entity.player.PlayerEntity in project AgriCraft by AgriCraft.
the class PlayerAngleLocker method forcePlayerAngles.
public static void forcePlayerAngles() {
PlayerEntity player = AgriCraft.instance.getClientPlayer();
player.rotationYaw = yaw;
player.prevRotationYaw = yaw;
player.cameraYaw = yawCamera;
player.prevCameraYaw = yawCamera;
player.renderYawOffset = yawOffset;
player.prevRenderYawOffset = yawOffset;
player.rotationYawHead = yawHead;
player.prevRotationYawHead = yawHead;
player.rotationPitch = pitch;
player.prevRotationPitch = pitch;
}
Aggregations